Skip to content

Commit

Permalink
feat: Added support for signed container image and custom audience an…
Browse files Browse the repository at this point in the history
…d nonce requests (#6491)

New fields have been incorporated into the VerifyAttestationRequest proto message to accommodate two additional features: signed container image and custom audience and nonce.
PiperOrigin-RevId: 551026956
Source-Link: googleapis/googleapis@a31b53e
Source-Link: googleapis/googleapis-gen@640cd43
Copy-Tag: eyJwIjoiQ29uZmlkZW50aWFsQ29tcHV0aW5nLy5Pd2xCb3QueWFtbCIsImgiOiI2NDBjZDQzNGZjM2I0NjliYmMyMzZmYzRkNTI1MWI2OTZiMTgwMWI2In0=
Co-authored-by: Yash Sahu <[email protected]>
  • Loading branch information
gcf-owl-bot[bot] authored Jul 27, 2023
1 parent 5fa1d05 commit 168fd7f
Show file tree
Hide file tree
Showing 8 changed files with 636 additions and 0 deletions.
Binary file modified ConfidentialComputing/metadata/V1/Service.php
Binary file not shown.
72 changes: 72 additions & 0 deletions ConfidentialComputing/src/V1/ConfidentialSpaceInfo.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

202 changes: 202 additions & 0 deletions ConfidentialComputing/src/V1/ContainerImageSignature.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
use Google\ApiCore\ValidationException;
use Google\Auth\FetchAuthTokenInterface;
use Google\Cloud\ConfidentialComputing\V1\Challenge;
use Google\Cloud\ConfidentialComputing\V1\ConfidentialSpaceInfo;
use Google\Cloud\ConfidentialComputing\V1\CreateChallengeRequest;
use Google\Cloud\ConfidentialComputing\V1\GcpCredentials;
use Google\Cloud\ConfidentialComputing\V1\TokenOptions;
use Google\Cloud\ConfidentialComputing\V1\TpmAttestation;
use Google\Cloud\ConfidentialComputing\V1\VerifyAttestationRequest;
use Google\Cloud\ConfidentialComputing\V1\VerifyAttestationResponse;
Expand Down Expand Up @@ -384,6 +386,11 @@ public function createChallenge(
* @type GcpCredentials $gcpCredentials
* Optional. Credentials used to populate the "emails" claim in the
* claims_token.
* @type ConfidentialSpaceInfo $confidentialSpaceInfo
* Optional. Optional information related to the Confidential Space TEE.
* @type TokenOptions $tokenOptions
* Optional. A collection of optional, workload-specified claims that modify
* the token output.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand All @@ -408,6 +415,16 @@ public function verifyAttestation(
$request->setGcpCredentials($optionalArgs['gcpCredentials']);
}

if (isset($optionalArgs['confidentialSpaceInfo'])) {
$request->setConfidentialSpaceInfo(
$optionalArgs['confidentialSpaceInfo']
);
}

if (isset($optionalArgs['tokenOptions'])) {
$request->setTokenOptions($optionalArgs['tokenOptions']);
}

$requestParams = new RequestParamsHeaderDescriptor(
$requestParamHeaders
);
Expand Down
72 changes: 72 additions & 0 deletions ConfidentialComputing/src/V1/SignedEntity.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 168fd7f

Please sign in to comment.