Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: tokenserver/api/admin/v1/config.proto

Issue 2785973002: token-server: Add protos for new API for generating service account tokens. (Closed)
Patch Set: more nits Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tokenserver/api/admin/v1/config.proto
diff --git a/tokenserver/api/admin/v1/config.proto b/tokenserver/api/admin/v1/config.proto
index 6c52e3bbe4a5050af4357feed973378d73aad145..db59203bdebcdc580104deb2c9b7082d3e565f78 100644
--- a/tokenserver/api/admin/v1/config.proto
+++ b/tokenserver/api/admin/v1/config.proto
@@ -158,3 +158,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 owns this rule, to know who to contact.
+ repeated string owner = 2;
+}

Powered by Google App Engine
This is Rietveld 408576698