Chromium Code Reviews| Index: tokenserver/api/admin/v1/config.proto |
| diff --git a/tokenserver/api/admin/v1/config.proto b/tokenserver/api/admin/v1/config.proto |
| index 10705b5bd5d003014d6d54eef953e36753019222..e842c1b5771b313cf282a899dd5fc802f79399bd 100644 |
| --- a/tokenserver/api/admin/v1/config.proto |
| +++ b/tokenserver/api/admin/v1/config.proto |
| @@ -153,3 +153,28 @@ message DelegationRule { |
| // Default is 12 hours. |
| int64 max_validity_duration = 7; |
| } |
| + |
| + |
| +// ServiceAccountsPermissions is read from service_accounts.cfg in luci-config. |
| +message ServiceAccountsPermissions { |
| + // Rules specify how MintOAuthTokenViaGrant can be used. |
| + // |
| + // Rules are evaluated independently. One and only one rule should match the |
| + // request to allow the operation. If none rules or more than one rule match, |
| + // the request will be denied. |
| + // |
| + // See ServiceAccountRule comments for more details. |
| + repeated ServiceAccountRule rules = 1; |
| +} |
| + |
| + |
| +// ServiceAccountRule describes a single allowed case of using service accounts. |
| +// |
| +// TODO(vadimsh): Implement. |
| +message ServiceAccountRule { |
| + // A descriptive name of this rule, for the audit log. |
| + string name = 1; |
| + |
| + // Email of developers that added this rule, to know who to contact. |
|
nodir
2017/04/03 22:51:55
s/added/own
added can be derived from git log
Vadim Sh.
2017/07/28 22:44:46
Done.
|
| + repeated string owner = 2; |
| +} |