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

Unified Diff: appengine/swarming/handlers_bot.py

Issue 2984843002: swarming: switch to a 'capability focused' ACL system (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « no previous file | appengine/swarming/handlers_endpoints.py » ('j') | appengine/swarming/server/acl.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/handlers_bot.py
diff --git a/appengine/swarming/handlers_bot.py b/appengine/swarming/handlers_bot.py
index a15ed7302dfdd1b862567273b1510b30e4e09956..f293036b823aa1e9fbafb9c5a1b16f3acd52d8ab 100644
--- a/appengine/swarming/handlers_bot.py
+++ b/appengine/swarming/handlers_bot.py
@@ -151,7 +151,7 @@ class _BotAuthenticatingHandler(auth.AuthenticatingHandler):
# TODO(vadimsh): Remove is_ip_whitelisted_machine check once all bots are
# using auth for bootstrap and updating.
- if (not acl.is_bootstrapper() and
+ if (not acl.can_bot_create() and
not acl.is_ip_whitelisted_machine() and
not (bot_id and bot_auth.is_authenticated_bot(bot_id, machine_type))):
raise auth.AuthorizationError('Not allowed to access the bot code')
« no previous file with comments | « no previous file | appengine/swarming/handlers_endpoints.py » ('j') | appengine/swarming/server/acl.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698