OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Swarming Authors. All rights reserved. | |
2 // Use of this source code is governed by the Apache v2.0 license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // 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.
| |
6 | |
7 package auth_service; | |
8 | |
9 | |
10 // Configuration of cron job that imports groups from external sources. | |
11 message GroupImporterConfig { | |
12 // Import groups stored as files in a tarball. | |
13 message TarballEntry { | |
14 // Where to import data from. | |
15 optional string url = 1; | |
16 // List of OAuth scopes to use for authentication (or empty to skip auth). | |
17 repeated string oauth_scopes = 2; | |
18 // Email domain to append to imported identities. | |
19 optional string domain = 3; | |
20 // List of group systems expected to be found in the archive. They act as | |
21 // prefixes to group names, e.g 'ldap'. Each system corresponds to | |
22 // 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.
| |
23 repeated string systems = 4; | |
24 // 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.
| |
25 repeated string groups = 5; | |
26 } | |
27 | |
28 // Import a single group stored as a plain list of identities. | |
29 message PlainlistEntry { | |
30 // Where to import data from. | |
31 optional string url = 1; | |
32 // List of OAuth scopes to use for authentication (or empty to skip auth). | |
33 repeated string oauth_scopes = 2; | |
34 // Email domain to append to imported identities. | |
35 optional string domain = 3; | |
36 // For PLAINLIST imports, a name of imported group. The full group name will | |
37 // be 'external/<group>'. | |
38 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.
| |
39 } | |
40 | |
41 repeated TarballEntry tarball = 1; | |
42 repeated PlainlistEntry plainlist = 2; | |
43 } | |
OLD | NEW |