Skip to content

Commit

Permalink
feat: Add a new field token_type to TokenOptions message proto
Browse files Browse the repository at this point in the history
chore: remove backend configuration from the service config

PiperOrigin-RevId: 581042395
  • Loading branch information
Google APIs authored and Copybara-Service committed Nov 9, 2023
1 parent b92caff commit 2a4cbb9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 0 additions & 1 deletion google/cloud/confidentialcomputing/v1/BUILD.bazel
Expand Up @@ -320,7 +320,6 @@ load(

csharp_proto_library(
name = "confidentialcomputing_csharp_proto",
extra_opts = [],
deps = [":confidentialcomputing_proto"],
)

Expand Down
Expand Up @@ -16,17 +16,6 @@ documentation:
- selector: google.cloud.location.Locations.ListLocations
description: Lists information about the supported locations for this service.

backend:
rules:
- selector: google.cloud.confidentialcomputing.v1.ConfidentialComputing.CreateChallenge
deadline: 60.0
- selector: google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyAttestation
deadline: 60.0
- selector: google.cloud.location.Locations.GetLocation
deadline: 60.0
- selector: google.cloud.location.Locations.ListLocations
deadline: 60.0

http:
rules:
- selector: google.cloud.location.Locations.GetLocation
Expand Down
13 changes: 13 additions & 0 deletions google/cloud/confidentialcomputing/v1/service.proto
Expand Up @@ -71,6 +71,16 @@ enum SigningAlgorithm {
ECDSA_P256_SHA256 = 3;
}

// Token type enum contains the different types of token responses Confidential
// Space supports
enum TokenType {
// Unspecified token type
TOKEN_TYPE_UNSPECIFIED = 0;

// OpenID Connect (OIDC) token type
TOKEN_TYPE_OIDC = 1;
}

// A Challenge from the server used to guarantee freshness of attestations
message Challenge {
option (google.api.resource) = {
Expand Down Expand Up @@ -173,6 +183,9 @@ message TokenOptions {
// claim in the output token. The minimum size for JSON-encoded EATs is 10
// bytes and the maximum size is 74 bytes.
repeated string nonce = 2 [(google.api.field_behavior) = OPTIONAL];

// Optional. Optional token type to select what type of token to return.
TokenType token_type = 3 [(google.api.field_behavior) = OPTIONAL];
}

// TPM2 data containing everything necessary to validate any platform state
Expand Down

0 comments on commit 2a4cbb9

Please sign in to comment.