Roman Loginov
7301ca52ab
All checks were successful
/ Vulncheck (pull_request) Successful in 1m30s
/ DCO (pull_request) Successful in 1m29s
/ Builds (1.20) (pull_request) Successful in 2m13s
/ Builds (1.21) (pull_request) Successful in 1m52s
/ Lint (pull_request) Successful in 3m59s
/ Tests (1.20) (pull_request) Successful in 2m11s
/ Tests (1.21) (pull_request) Successful in 2m33s
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
29 lines
771 B
Protocol Buffer
29 lines
771 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package accessbox;
|
|
|
|
option go_package = "git.frostfs.info/TrueCloudLab/frostfs-s3-gw/creds/tokenbox;accessbox";
|
|
|
|
|
|
|
|
message AccessBox {
|
|
message Gate {
|
|
bytes tokens = 1 [json_name = "tokens"];
|
|
bytes gatePublicKey = 2 [json_name = "gatePublicKey"];
|
|
}
|
|
|
|
message ContainerPolicy {
|
|
string locationConstraint = 1;
|
|
bytes policy = 2;
|
|
}
|
|
|
|
bytes seedKey = 1 [json_name = "seedKey"];
|
|
repeated Gate gates = 2 [json_name = "gates"];
|
|
repeated ContainerPolicy containerPolicy = 3 [json_name = "containerPolicy"];
|
|
}
|
|
|
|
message Tokens {
|
|
bytes secretKey = 1 [json_name = "secretKey"];
|
|
bytes bearerToken = 2 [json_name = "bearerToken"];
|
|
repeated bytes sessionTokens = 3 [json_name = "sessionTokens"];
|
|
}
|