| OLD | NEW |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 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 """Adapter between config service client and the rest of auth_service. | 5 """Adapter between config service client and the rest of auth_service. |
| 6 | 6 |
| 7 Basically a cron job that each minute refetches config files from config service | 7 Basically a cron job that each minute refetches config files from config service |
| 8 and modifies auth service datastore state if anything changed. | 8 and modifies auth service datastore state if anything changed. |
| 9 | 9 |
| 10 Following files are fetched: | 10 Following files are fetched: |
| 11 imports.cfg - configuration for group importer cron job. | 11 imports.cfg - configuration for group importer cron job. |
| 12 ip_whitelist.cfg - IP whitelists. | 12 ip_whitelist.cfg - IP whitelists. |
| 13 oauth.cfg - OAuth client_id whitelist. | 13 oauth.cfg - OAuth client_id whitelist. |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 try: | 550 try: |
| 551 location = gitiles.Location.parse(configs_url) | 551 location = gitiles.Location.parse(configs_url) |
| 552 return str(gitiles.Location( | 552 return str(gitiles.Location( |
| 553 hostname=location.hostname, | 553 hostname=location.hostname, |
| 554 project=location.project, | 554 project=location.project, |
| 555 treeish=rev, | 555 treeish=rev, |
| 556 path=posixpath.join(location.path, path))) | 556 path=posixpath.join(location.path, path))) |
| 557 except ValueError: | 557 except ValueError: |
| 558 # Not a gitiles URL, return as is. | 558 # Not a gitiles URL, return as is. |
| 559 return configs_url | 559 return configs_url |
| OLD | NEW |