Update format of secret to return both raw and decoded when possible (#1372)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-06-30 18:02:03 -04:00
1 parent 77bafcab71
commit 7c3d5be4f6
15 files changed
+409 -327

No files matched your search

@@ -35,13 +35,23 @@ message CredentialLibrary{
string type = 60;
}
// The actual secret for a session credential.
message SessionSecret {
// Output only. The base64-encoded value representing the raw bytes from the
// credential provider.
string raw = 10;
// Output only. The decoded raw string, if a JSON object.
google.protobuf.Struct decoded = 20;
}
// A credential for a session.
message SessionCredential {
// Output only. The library which generated this credential.
CredentialLibrary credential_library = 10;
// Output only. The secret of this credential base64 encoded.
string secret = 30;
SessionSecret secret = 20;
}
// Target contains all fields related to a Target resource