ContainerAnalysisNote
Property | Value |
---|---|
Google Cloud Service Name | Container Analysis |
Google Cloud Service Documentation | /container-analysis/docs/ |
Google Cloud REST Resource Name | v1.projects.notes |
Google Cloud REST Resource Documentation | /container-analysis/docs/reference/rest/v1/projects.notes |
Config Connector Resource Short Names | gcpcontaineranalysisnote gcpcontaineranalysisnotes containeranalysisnote |
Config Connector Service Name | containeranalysis.googleapis.com |
Config Connector Resource Fully Qualified Name | containeranalysisnotes.containeranalysis.cnrm.cloud.google.com |
Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Annotations
Fields | |
---|---|
cnrm.cloud.google.com/project-id |
Spec
Schema
attestation:
hint:
humanReadableName: string
build:
builderVersion: string
deployment:
resourceUri:
- string
discovery:
analysisKind: string
expirationTime: string
image:
fingerprint:
v1Name: string
v2Blob:
- string
resourceUrl: string
longDescription: string
package:
distribution:
- architecture: string
cpeUri: string
description: string
latestVersion:
epoch: integer
fullName: string
kind: string
name: string
revision: string
maintainer: string
url: string
name: string
relatedNoteNames:
- external: string
name: string
namespace: string
relatedUrl:
- label: string
url: string
resourceID: string
shortDescription: string
vulnerability:
cvssScore: float
cvssV3:
attackComplexity: string
attackVector: string
availabilityImpact: string
baseScore: float
confidentialityImpact: string
exploitabilityScore: float
impactScore: float
integrityImpact: string
privilegesRequired: string
scope: string
userInteraction: string
details:
- affectedCpeUri: string
affectedPackage: string
affectedVersionEnd:
epoch: integer
fullName: string
kind: string
name: string
revision: string
affectedVersionStart:
epoch: integer
fullName: string
kind: string
name: string
revision: string
description: string
fixedCpeUri: string
fixedPackage: string
fixedVersion:
epoch: integer
fullName: string
kind: string
name: string
revision: string
isObsolete: boolean
packageType: string
severityName: string
sourceUpdateTime: string
severity: string
sourceUpdateTime: string
windowsDetails:
- cpeUri: string
description: string
fixingKbs:
- name: string
url: string
name: string
Fields | |
---|---|
Optional |
A note describing an attestation role. |
Optional |
Hint hints at the purpose of the attestation authority. |
Required* |
Required. The human readable name of this attestation authority, for example "qa". |
Optional |
A note describing build provenance for a verifiable build. |
Required* |
Required. Immutable. Version of the builder which produced this build. |
Optional |
A note describing something that can be deployed. |
Required* |
Required. Resource URI for the artifact being deployed. |
Required* |
|
Optional |
A note describing the initial analysis of a resource. |
Required* |
The kind of analysis that is handled by this discovery. Possible values: NOTE_KIND_UNSPECIFIED, VULNERABILITY, BUILD, IMAGE, PACKAGE, DEPLOYMENT, DISCOVERY, ATTESTATION, UPGRADE |
Optional |
Time of expiration for this note. Empty if note does not expire. |
Optional |
A note describing a base image. |
Required* |
Required. Immutable. The fingerprint of the base image. |
Required* |
Required. The layer ID of the final layer in the Docker image's v1 representation. |
Required* |
Required. The ordered list of v2 blobs that represent a given image. |
Required* |
|
Required* |
Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. |
Optional |
A detailed description of this note. |
Optional |
Required for non-Windows OS. The package this Upgrade is for. |
Optional |
The various channels by which a package is distributed. |
Optional |
|
Optional |
The CPU architecture for which packages in this distribution channel were built Possible values: ARCHITECTURE_UNSPECIFIED, X86, X64 |
Required* |
The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
Optional |
The distribution channel-specific description of this package. |
Optional |
The latest available version of this package in this distribution channel. |
Optional |
Used to correct mistakes in the version numbering scheme. |
Optional |
Human readable version string. This string is of the form :- and is only set when kind is NORMAL. |
Required* |
Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored. Possible values: VERSION_KIND_UNSPECIFIED, NORMAL, MINIMUM, MAXIMUM |
Optional |
The main part of the version name. |
Optional |
The iteration of the package build from the above version. |
Optional |
A freeform string denoting the maintainer of this package. |
Optional |
The distribution channel-specific homepage for this package. |
Required* |
The name of the package. |
Optional |
|
Optional |
|
Optional |
Allowed value: The Google Cloud resource name of a `ContainerAnalysisNote` resource (format: `projects/{{project}}/notes/{{name}}`). |
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
Optional |
URLs associated with this note. |
Optional |
|
Optional |
Label to describe usage of the URL |
Optional |
Specific URL to associate with the note |
Optional |
Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. |
Optional |
A one sentence description of this note. |
Optional |
A note describing a package vulnerability. |
Optional |
The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity. |
Optional |
The full description of the CVSSv3 for this vulnerability. |
Optional |
Possible values: ATTACK_COMPLEXITY_UNSPECIFIED, ATTACK_COMPLEXITY_LOW, ATTACK_COMPLEXITY_HIGH |
Optional |
Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. Possible values: ATTACK_VECTOR_UNSPECIFIED, ATTACK_VECTOR_NETWORK, ATTACK_VECTOR_ADJACENT, ATTACK_VECTOR_LOCAL, ATTACK_VECTOR_PHYSICAL |
Optional |
Possible values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE |
Optional |
The base score is a function of the base metric scores. |
Optional |
Possible values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE |
Optional |
|
Optional |
|
Optional |
Possible values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE |
Optional |
Possible values: PRIVILEGES_REQUIRED_UNSPECIFIED, PRIVILEGES_REQUIRED_NONE, PRIVILEGES_REQUIRED_LOW, PRIVILEGES_REQUIRED_HIGH |
Optional |
Possible values: SCOPE_UNSPECIFIED, SCOPE_UNCHANGED, SCOPE_CHANGED |
Optional |
Possible values: USER_INTERACTION_UNSPECIFIED, USER_INTERACTION_NONE, USER_INTERACTION_REQUIRED |
Optional |
Details of all known distros and packages affected by this vulnerability. |
Optional |
|
Required* |
Required. The (https://cpe.mitre.org/specification/) this vulnerability affects. |
Required* |
Required. The package this vulnerability affects. |
Optional |
The version number at the end of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: ) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail. |
Optional |
Used to correct mistakes in the version numbering scheme. |
Optional |
Human readable version string. This string is of the form :- and is only set when kind is NORMAL. |
Required* |
Required. Distinguishes between sentinel MIN/MAX versions and normal versions. Possible values: NOTE_KIND_UNSPECIFIED, VULNERABILITY, BUILD, IMAGE, PACKAGE, DEPLOYMENT, DISCOVERY, ATTESTATION, UPGRADE |
Optional |
Required only when version kind is NORMAL. The main part of the version name. |
Optional |
The iteration of the package build from the above version. |
Optional |
The version number at the start of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: ) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail. |
Optional |
Used to correct mistakes in the version numbering scheme. |
Optional |
Human readable version string. This string is of the form :- and is only set when kind is NORMAL. |
Required* |
Required. Distinguishes between sentinel MIN/MAX versions and normal versions. Possible values: NOTE_KIND_UNSPECIFIED, VULNERABILITY, BUILD, IMAGE, PACKAGE, DEPLOYMENT, DISCOVERY, ATTESTATION, UPGRADE |
Optional |
Required only when version kind is NORMAL. The main part of the version name. |
Optional |
The iteration of the package build from the above version. |
Optional |
A vendor-specific description of this vulnerability. |
Optional |
The distro recommended (https://cpe.mitre.org/specification/) to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_cpe_uri. |
Optional |
The distro recommended package to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_package. |
Optional |
The distro recommended version to update to that contains a fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no such version is yet available. |
Optional |
Used to correct mistakes in the version numbering scheme. |
Optional |
Human readable version string. This string is of the form :- and is only set when kind is NORMAL. |
Required* |
Required. Distinguishes between sentinel MIN/MAX versions and normal versions. Possible values: NOTE_KIND_UNSPECIFIED, VULNERABILITY, BUILD, IMAGE, PACKAGE, DEPLOYMENT, DISCOVERY, ATTESTATION, UPGRADE |
Optional |
Required only when version kind is NORMAL. The main part of the version name. |
Optional |
The iteration of the package build from the above version. |
Optional |
Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. |
Optional |
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). |
Optional |
The distro assigned severity of this vulnerability. |
Optional |
The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. |
Optional |
The note provider assigned severity of this vulnerability. Possible values: SEVERITY_UNSPECIFIED, MINIMAL, LOW, MEDIUM, HIGH, CRITICAL |
Optional |
The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. |
Optional |
Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version. |
Optional |
|
Required* |
Required. The (https://cpe.mitre.org/specification/) this vulnerability affects. |
Optional |
The description of this vulnerability. |
Required* |
Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed KBs presence is considered a fix. |
Required* |
|
Optional |
The KB name (generally of the form KB+ (e.g., KB123456)). |
Optional |
A link to the KB in the (https://www.catalog.update.microsoft.com/). |
Required* |
Required. The name of this vulnerability. |
* Field is required when parent field is specified
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
createTime: string
image:
fingerprint:
v2Name: string
observedGeneration: integer
updateTime: string
Fields | |
---|---|
conditions |
Conditions represent the latest available observation of the resource's current state. |
conditions[] |
|
conditions[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions[].message |
Human-readable message indicating details about last transition. |
conditions[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions[].type |
Type is the type of the condition. |
createTime |
Output only. The time this note was created. This field can be used as a filter in list requests. |
image |
|
image.fingerprint |
|
image.fingerprint.v2Name |
Output only. The name of the image's v2 blobs computed via: ) Only the name of the final blob is kept. |
observedGeneration |
ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. |
updateTime |
Output only. The time this note was last updated. This field can be used as a filter in list requests. |
Sample YAML(s)
Typical Use Case
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: containeranalysis.cnrm.cloud.google.com/v1beta1
kind: ContainerAnalysisNote
metadata:
name: containeranalysisnote-sample
spec:
shortDescription: "short description"
longDescription: "long description"
relatedUrl:
- url: "some.url"
label: "test"
- url: "google.com"
label: "google"
attestation:
hint:
humanReadableName: "Attestor Note"