-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowing service accounts to become admins in appengine (#4326)
### Motivation Sync admins only replicates admins to datastore if they conform to 'user:{email}', but it is interesting to allow service accounts for monitoring purposes (uptime) of the form 'serviceAccount:{email}'. This PR fixes that. Part of #4271
- Loading branch information
1 parent
fdd0c7d
commit 1b79928
Showing
2 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,8 +71,12 @@ def setUp(self): | |
'members': ['user:[email protected]',] | ||
}, | ||
{ | ||
'role': 'roles/viewer', | ||
'members': ['user:[email protected]',] | ||
'role': | ||
'roles/viewer', | ||
'members': [ | ||
'user:[email protected]', | ||
'serviceAccount:[email protected]' | ||
] | ||
}, | ||
] | ||
} | ||
|
@@ -87,4 +91,5 @@ def test_sync_admins(self): | |
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
], [admin.email for admin in admins]) |