2021-06-14 13:20:49 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package accessbox;
|
|
|
|
|
2023-03-07 14:38:08 +00:00
|
|
|
option go_package = "git.frostfs.info/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;
|
|
|
|
}
|
|
|
|
|
2023-10-06 11:00:37 +00:00
|
|
|
bytes seedKey = 1 [json_name = "seedKey"];
|
2021-06-17 16:45:50 +00:00
|
|
|
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 {
|
2023-10-02 09:42:02 +00:00
|
|
|
bytes secretKey = 1 [json_name = "secretKey"];
|
2021-06-17 16:45:50 +00:00
|
|
|
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
|
|
|
}
|