Attestor
An attestor that attests to container image artifacts.
To get more information about Attestor, see:
- API documentation
- How-to Guides
Create a Attestor Resource
new Attestor(name: string, args: AttestorArgs, opts?: CustomResourceOptions);def Attestor(resource_name, opts=None, attestation_authority_note=None, description=None, name=None, project=None, __props__=None);func NewAttestor(ctx *Context, name string, args AttestorArgs, opts ...ResourceOption) (*Attestor, error)public Attestor(string name, AttestorArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AttestorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AttestorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AttestorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Attestor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Attestor resource accepts the following input properties:
-
Attestor
Attestation Authority Note Args A Container Analysis ATTESTATION_AUTHORITY Note, created by the user. Structure is documented below.
- Description string
A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.
- Name string
The resource name.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
Attestor
Attestation Authority Note A Container Analysis ATTESTATION_AUTHORITY Note, created by the user. Structure is documented below.
- Description string
A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.
- Name string
The resource name.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
Attestor
Attestation Authority Note A Container Analysis ATTESTATION_AUTHORITY Note, created by the user. Structure is documented below.
- description string
A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.
- name string
The resource name.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
Dict[Attestor
Attestation Authority Note] A Container Analysis ATTESTATION_AUTHORITY Note, created by the user. Structure is documented below.
- description str
A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.
- name str
The resource name.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Attestor resource produces the following output properties:
Look up an Existing Attestor Resource
Get an existing Attestor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AttestorState, opts?: CustomResourceOptions): Attestorstatic get(resource_name, id, opts=None, attestation_authority_note=None, description=None, name=None, project=None, __props__=None);func GetAttestor(ctx *Context, name string, id IDInput, state *AttestorState, opts ...ResourceOption) (*Attestor, error)public static Attestor Get(string name, Input<string> id, AttestorState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
-
Attestor
Attestation Authority Note Args A Container Analysis ATTESTATION_AUTHORITY Note, created by the user. Structure is documented below.
- Description string
A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.
- Name string
The resource name.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
Attestor
Attestation Authority Note A Container Analysis ATTESTATION_AUTHORITY Note, created by the user. Structure is documented below.
- Description string
A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.
- Name string
The resource name.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
Attestor
Attestation Authority Note A Container Analysis ATTESTATION_AUTHORITY Note, created by the user. Structure is documented below.
- description string
A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.
- name string
The resource name.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
Dict[Attestor
Attestation Authority Note] A Container Analysis ATTESTATION_AUTHORITY Note, created by the user. Structure is documented below.
- description str
A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.
- name str
The resource name.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Supporting Types
AttestorAttestationAuthorityNote
- Note
Reference string The resource name of a ATTESTATION_AUTHORITY Note, created by the user. If the Note is in a different project from the Attestor, it should be specified in the format
projects/*/notes/*(or the legacyproviders/*/notes/*). This field may not be updated. An attestation by this attestor is stored as a Container Analysis ATTESTATION_AUTHORITY Occurrence that names a container image and that links to this Note.- Delegation
Service stringAccount Email - This field will contain the service account email address that this Attestor will use as the principal when querying Container Analysis. Attestor administrators must grant this service account the IAM role needed to read attestations from the noteReference in Container Analysis (containeranalysis.notes.occurrences.viewer). This email address is fixed for the lifetime of the Attestor, but callers should not make any other assumptions about the service account email; future versions may use an email based on a different naming pattern.
- Public
Keys List<AttestorAttestation Authority Note Public Key Args> Public keys that verify attestations signed by this attestor. This field may be updated. If this field is non-empty, one of the specified public keys must verify that an attestation was signed by this attestor for the image specified in the admission request. If this field is empty, this attestor always returns that no valid attestations exist. Structure is documented below.
- Note
Reference string The resource name of a ATTESTATION_AUTHORITY Note, created by the user. If the Note is in a different project from the Attestor, it should be specified in the format
projects/*/notes/*(or the legacyproviders/*/notes/*). This field may not be updated. An attestation by this attestor is stored as a Container Analysis ATTESTATION_AUTHORITY Occurrence that names a container image and that links to this Note.- Delegation
Service stringAccount Email - This field will contain the service account email address that this Attestor will use as the principal when querying Container Analysis. Attestor administrators must grant this service account the IAM role needed to read attestations from the noteReference in Container Analysis (containeranalysis.notes.occurrences.viewer). This email address is fixed for the lifetime of the Attestor, but callers should not make any other assumptions about the service account email; future versions may use an email based on a different naming pattern.
- Public
Keys []AttestorAttestation Authority Note Public Key Public keys that verify attestations signed by this attestor. This field may be updated. If this field is non-empty, one of the specified public keys must verify that an attestation was signed by this attestor for the image specified in the admission request. If this field is empty, this attestor always returns that no valid attestations exist. Structure is documented below.
- note
Reference string The resource name of a ATTESTATION_AUTHORITY Note, created by the user. If the Note is in a different project from the Attestor, it should be specified in the format
projects/*/notes/*(or the legacyproviders/*/notes/*). This field may not be updated. An attestation by this attestor is stored as a Container Analysis ATTESTATION_AUTHORITY Occurrence that names a container image and that links to this Note.- delegation
Service stringAccount Email - This field will contain the service account email address that this Attestor will use as the principal when querying Container Analysis. Attestor administrators must grant this service account the IAM role needed to read attestations from the noteReference in Container Analysis (containeranalysis.notes.occurrences.viewer). This email address is fixed for the lifetime of the Attestor, but callers should not make any other assumptions about the service account email; future versions may use an email based on a different naming pattern.
- public
Keys AttestorAttestation Authority Note Public Key[] Public keys that verify attestations signed by this attestor. This field may be updated. If this field is non-empty, one of the specified public keys must verify that an attestation was signed by this attestor for the image specified in the admission request. If this field is empty, this attestor always returns that no valid attestations exist. Structure is documented below.
- note
Reference str The resource name of a ATTESTATION_AUTHORITY Note, created by the user. If the Note is in a different project from the Attestor, it should be specified in the format
projects/*/notes/*(or the legacyproviders/*/notes/*). This field may not be updated. An attestation by this attestor is stored as a Container Analysis ATTESTATION_AUTHORITY Occurrence that names a container image and that links to this Note.- delegation
Service strAccount Email - This field will contain the service account email address that this Attestor will use as the principal when querying Container Analysis. Attestor administrators must grant this service account the IAM role needed to read attestations from the noteReference in Container Analysis (containeranalysis.notes.occurrences.viewer). This email address is fixed for the lifetime of the Attestor, but callers should not make any other assumptions about the service account email; future versions may use an email based on a different naming pattern.
- public
Keys List[AttestorAttestation Authority Note Public Key] Public keys that verify attestations signed by this attestor. This field may be updated. If this field is non-empty, one of the specified public keys must verify that an attestation was signed by this attestor for the image specified in the admission request. If this field is empty, this attestor always returns that no valid attestations exist. Structure is documented below.
AttestorAttestationAuthorityNotePublicKey
- Ascii
Armored stringPgp Public Key ASCII-armored representation of a PGP public key, as the entire output by the command
gpg --export --armor foo@example.com(either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.- Comment string
A descriptive comment. This field may be updated.
- Id string
The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on publicKey cases below for details.
- Pkix
Public AttestorKey Attestation Authority Note Public Key Pkix Public Key Args A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key. Structure is documented below.
- Ascii
Armored stringPgp Public Key ASCII-armored representation of a PGP public key, as the entire output by the command
gpg --export --armor foo@example.com(either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.- Comment string
A descriptive comment. This field may be updated.
- Id string
The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on publicKey cases below for details.
- Pkix
Public AttestorKey Attestation Authority Note Public Key Pkix Public Key A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key. Structure is documented below.
- ascii
Armored stringPgp Public Key ASCII-armored representation of a PGP public key, as the entire output by the command
gpg --export --armor foo@example.com(either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.- comment string
A descriptive comment. This field may be updated.
- id string
The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on publicKey cases below for details.
- pkix
Public AttestorKey Attestation Authority Note Public Key Pkix Public Key A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key. Structure is documented below.
- ascii
Armored strPgp Public Key ASCII-armored representation of a PGP public key, as the entire output by the command
gpg --export --armor foo@example.com(either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.- comment str
A descriptive comment. This field may be updated.
- id str
The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on publicKey cases below for details.
- pkix
Public Dict[AttestorKey Attestation Authority Note Public Key Pkix Public Key] A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key. Structure is documented below.
AttestorAttestationAuthorityNotePublicKeyPkixPublicKey
- Public
Key stringPem A PEM-encoded public key, as described in
https://tools.ietf.org/html/rfc7468#section-13- Signature
Algorithm string The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in publicKeyPem (i.e. this algorithm must match that of the public key).
- Public
Key stringPem A PEM-encoded public key, as described in
https://tools.ietf.org/html/rfc7468#section-13- Signature
Algorithm string The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in publicKeyPem (i.e. this algorithm must match that of the public key).
- public
Key stringPem A PEM-encoded public key, as described in
https://tools.ietf.org/html/rfc7468#section-13- signature
Algorithm string The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in publicKeyPem (i.e. this algorithm must match that of the public key).
- public
Key strPem A PEM-encoded public key, as described in
https://tools.ietf.org/html/rfc7468#section-13- signature
Algorithm str The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in publicKeyPem (i.e. this algorithm must match that of the public key).
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.