Chromium Code Reviews| 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; |
| +} |