Package google.cloud.binaryauthorization.v1alpha2

Index

ValidationHelperV1Alpha2

BinAuthz Attestor verification

TestAttestationOccurrence

rpc TestAttestationOccurrence(TestAttestationOccurrenceRequest) returns (TestAttestationOccurrenceResponse)

Returns whether the given Attestation for the given image URI was signed by the given Attestor

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

TestAttestationOccurrenceRequest

Request message for ValidationHelperV1Alpha2.TestAttestationOccurrence.

Fields
name

string

Required. The resource name of the [Attestor][Attestor] of the occurrence, in the format projects/*/attestors/*.

attestation

AttestationOccurrence

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

occurrence_note_name

string

Required. The resource name of the Note to which the containing Occurrence is associated.

occurrence_resource_uri

string

Required. The URI of the artifact (e.g. container image) that is the subject of the containing Occurrence.

TestAttestationOccurrenceResponse

Response message for ValidationHelperV1Alpha2.TestAttestationOccurrence.

Fields
result

Result

The result of the Attestation validation.

denial_reason

string

The reason for denial if the Attestation couldn't be validated.

Result

The enum returned in the "result" field.

Enums
RESULT_UNSPECIFIED Unspecified.
VERIFIED The Attestation was able to verified by the Attestor.
ATTESTATION_NOT_VERIFIABLE The Attestation was not able to verified by the Attestor.