OLD | NEW |
1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 from components import auth | 5 from components import auth |
6 from components import utils | 6 from components import utils |
7 | 7 |
8 | 8 |
9 # Group with read and write access. | 9 # Group with read and write access. |
10 FULL_ACCESS_GROUP = 'isolate-access' | 10 FULL_ACCESS_GROUP = 'isolate-access' |
11 # Group with read only access (in addition to isolate-access). | 11 # Group with read only access (in addition to isolate-access). |
12 READONLY_ACCESS_GROUP = 'isolate-readonly-access' | 12 READONLY_ACCESS_GROUP = 'isolate-readonly-access' |
13 | 13 |
(...skipping 25 matching lines...) Expand all Loading... |
39 # Allow local bots full access. | 39 # Allow local bots full access. |
40 bots = auth.bootstrap_loopback_ips() | 40 bots = auth.bootstrap_loopback_ips() |
41 auth.bootstrap_group( | 41 auth.bootstrap_group( |
42 FULL_ACCESS_GROUP, bots, 'Can read and write from/to Isolate') | 42 FULL_ACCESS_GROUP, bots, 'Can read and write from/to Isolate') |
43 | 43 |
44 # Add a fake admin for local dev server. | 44 # Add a fake admin for local dev server. |
45 auth.bootstrap_group( | 45 auth.bootstrap_group( |
46 auth.ADMIN_GROUP, | 46 auth.ADMIN_GROUP, |
47 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], | 47 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], |
48 'Users that can manage groups') | 48 'Users that can manage groups') |
OLD | NEW |