2021-06-14 13:20:49 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package accessbox;
|
|
|
|
|
2022-12-14 16:58:00 +00:00
|
|
|
option go_package = "github.com/TrueCloudLab/frostfs-s3-gw/creds/tokenbox;accessbox";
|
2021-06-14 13:20:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message AccessBox {
|
2021-06-17 16:45:50 +00:00
|
|
|
message Gate {
|
|
|
|
bytes tokens = 1 [json_name = "tokens"];
|
2021-06-14 13:20:49 +00:00
|
|
|
bytes gatePublicKey = 2 [json_name = "gatePublicKey"];
|
|
|
|
}
|
|
|
|
|
2021-07-16 12:35:07 +00:00
|
|
|
message ContainerPolicy {
|
|
|
|
string locationConstraint = 1;
|
|
|
|
bytes policy = 2;
|
|
|
|
}
|
|
|
|
|
2021-06-17 16:45:50 +00:00
|
|
|
bytes ownerPublicKey = 1 [json_name = "ownerPublicKey"];
|
|
|
|
repeated Gate gates = 2 [json_name = "gates"];
|
2021-07-16 12:35:07 +00:00
|
|
|
repeated ContainerPolicy containerPolicy = 3 [json_name = "containerPolicy"];
|
2021-06-17 16:45:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Tokens {
|
|
|
|
bytes accessKey = 1 [json_name = "accessKey"];
|
|
|
|
bytes bearerToken = 2 [json_name = "bearerToken"];
|
2022-01-26 09:04:10 +00:00
|
|
|
repeated bytes sessionTokens = 3 [json_name = "sessionTokens"];
|
2021-06-14 13:20:49 +00:00
|
|
|
}
|
|
|
|
|