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

Unified Diff: appengine/auth_service/proto/config.proto

Issue 1148073005: Use luci-config for infrequently changing settings, part 2. (Closed) Base URL: git@github.com:luci/luci-py@master
Patch Set: keep old config around Created 5 years, 7 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: appengine/auth_service/proto/config.proto
diff --git a/appengine/auth_service/proto/config.proto b/appengine/auth_service/proto/config.proto
new file mode 100644
index 0000000000000000000000000000000000000000..6d7a6d0b80ddac6594b21d6818ddffedb405d45b
--- /dev/null
+++ b/appengine/auth_service/proto/config.proto
@@ -0,0 +1,43 @@
+// Copyright 2015 The Swarming Authors. All rights reserved.
+// Use of this source code is governed by the Apache v2.0 license that can be
+// found in the LICENSE file.
+
+// Configuration schema for configs fetched via luci-config.
nodir 2015/06/02 00:19:20 very nit: say "config service" in code hosted in l
Vadim Sh. 2015/06/02 00:52:17 Done.
+
+package auth_service;
+
+
+// Configuration of cron job that imports groups from external sources.
+message GroupImporterConfig {
+ // Import groups stored as files in a tarball.
+ message TarballEntry {
+ // Where to import data from.
+ optional string url = 1;
+ // List of OAuth scopes to use for authentication (or empty to skip auth).
+ repeated string oauth_scopes = 2;
+ // Email domain to append to imported identities.
+ optional string domain = 3;
+ // List of group systems expected to be found in the archive. They act as
+ // prefixes to group names, e.g 'ldap'. Each system corresponds to
+ // a subdirectory in the tarball.
nodir 2015/06/02 00:19:20 In your particular import.cfg, groups are full fil
Vadim Sh. 2015/06/02 00:52:17 tl;dr It is not just prefix. See module docstring
Vadim Sh. 2015/06/02 00:54:17 Err.. "In that case not only groups are synchroniz
nodir 2015/06/02 16:52:29 Acknowledged.
+ repeated string systems = 4;
+ // List of groups to import from the tarball. If empty, imports all groups.
nodir 2015/06/02 00:19:20 Are these full filenames relative to the root of t
Vadim Sh. 2015/06/02 00:52:17 Done.
+ repeated string groups = 5;
+ }
+
+ // Import a single group stored as a plain list of identities.
+ message PlainlistEntry {
+ // Where to import data from.
+ optional string url = 1;
+ // List of OAuth scopes to use for authentication (or empty to skip auth).
+ repeated string oauth_scopes = 2;
+ // Email domain to append to imported identities.
+ optional string domain = 3;
+ // For PLAINLIST imports, a name of imported group. The full group name will
+ // be 'external/<group>'.
+ optional string group = 4;
nodir 2015/06/02 00:19:21 Why you are putting "external" in plainlist and no
Vadim Sh. 2015/06/02 00:52:17 external/* is special - it is reserved for groups
nodir 2015/06/02 16:52:29 Acknowledged.
+ }
+
+ repeated TarballEntry tarball = 1;
+ repeated PlainlistEntry plainlist = 2;
+}

Powered by Google App Engine
This is Rietveld 408576698