ebf8e5308a
* port SSCT OSS * port header hmac key to ent and generate token proto without make command * remove extra nil check in request handling * add changelog * add comment to router.go * change test var to use length constants * remove local index is 0 check and extra defer which can be removed after use of ExternalID
18 lines
489 B
Protocol Buffer
18 lines
489 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "github.com/hashicorp/vault/vault/tokens";
|
|
|
|
package tokens;
|
|
|
|
// SignedToken
|
|
message SignedToken {
|
|
uint64 token_version = 1; // always 1 for now
|
|
bytes hmac = 2; // HMAC of token
|
|
bytes token = 3; // protobuf-marshalled Token message
|
|
}
|
|
|
|
message Token {
|
|
string random = 1; // unencoded equiv of former $randbase62
|
|
uint64 local_index = 2; // required storage state to have this token
|
|
uint32 index_epoch = 3;
|
|
} |