open-vault/vault/tokens/token.proto
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

21 lines
559 B
Protocol Buffer

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
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;
}