Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto3"; | 5 syntax = "proto3"; |
| 6 | 6 |
| 7 package tokenserver.admin; | 7 package tokenserver.admin; |
| 8 | 8 |
| 9 | 9 |
| 10 // TokenServerConfig is read from tokenserver.cfg in luci-config. | 10 // TokenServerConfig is read from tokenserver.cfg in luci-config. |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 // * A service identity string ("service:<id>"). | 146 // * A service identity string ("service:<id>"). |
| 147 // * A special token "*" that mean "any LUCI service should accept the | 147 // * A special token "*" that mean "any LUCI service should accept the |
| 148 // token". | 148 // token". |
| 149 repeated string target_service = 6; | 149 repeated string target_service = 6; |
| 150 | 150 |
| 151 // Maximum allowed validity duration (sec) of minted delegation tokens. | 151 // Maximum allowed validity duration (sec) of minted delegation tokens. |
| 152 // | 152 // |
| 153 // Default is 12 hours. | 153 // Default is 12 hours. |
| 154 int64 max_validity_duration = 7; | 154 int64 max_validity_duration = 7; |
| 155 } | 155 } |
| 156 | |
| 157 | |
| 158 // ServiceAccountsPermissions is read from service_accounts.cfg in luci-config. | |
| 159 message ServiceAccountsPermissions { | |
| 160 // Rules specify how MintOAuthTokenViaGrant can be used. | |
| 161 // | |
| 162 // Rules are evaluated independently. One and only one rule should match the | |
| 163 // request to allow the operation. If none rules or more than one rule match, | |
| 164 // the request will be denied. | |
| 165 // | |
| 166 // See ServiceAccountRule comments for more details. | |
| 167 repeated ServiceAccountRule rules = 1; | |
| 168 } | |
| 169 | |
| 170 | |
| 171 // ServiceAccountRule describes a single allowed case of using service accounts. | |
| 172 // | |
| 173 // TODO(vadimsh): Implement. | |
| 174 message ServiceAccountRule { | |
| 175 // A descriptive name of this rule, for the audit log. | |
| 176 string name = 1; | |
| 177 | |
| 178 // 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.
| |
| 179 repeated string owner = 2; | |
| 180 } | |
| OLD | NEW |