|
Protocol, UI and smoke test for Primary <-> Replica linking process.
The workflow to add a new auth db replica:
1. Admin of Primary goes to 'Services' page, enters app_id of the replica
and clicks 'Generate linking URL'.
2. Auth service generates a link that looks like
https://<replica-id>.appspot.com/auth/link?t=<base64>.
3. Admin (in GAE sense) of replica clicks this link and sees confirmation page.
4. Upon confirmation, replica contacts primary (via urlfetch), and if
everything looks correct, they are now linked (know about each other and
have a shared secret).
R=maruel@chromium.org
BUG=
Committed: https://code.google.com/p/swarming/source/detail?repo=default&r=01004cb
Total comments: 15
Total comments: 22
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1294 lines, -27 lines) |
Patch |
|
M |
PRESUBMIT.py
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
services/auth_service/PRESUBMIT.py
|
View
|
1
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
|
A |
services/auth_service/common/replication.py
|
View
|
1
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
|
M |
services/auth_service/frontend/handlers.py
|
View
|
1
2
|
3 chunks |
+174 lines, -0 lines |
0 comments
|
Download
|
|
M |
services/auth_service/frontend/static/js/services.js
|
View
|
|
1 chunk |
+79 lines, -1 line |
0 comments
|
Download
|
|
M |
services/auth_service/frontend/templates/services.html
|
View
|
1
2
3
|
1 chunk |
+77 lines, -1 line |
0 comments
|
Download
|
|
A |
services/auth_service/tests/replica_app/app.yaml
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/auth_service/tests/replica_app/components
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
services/auth_service/tests/replica_app/main.py
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/auth_service/tests/replication_smoke_test.py
|
View
|
1
2
3
|
1 chunk |
+349 lines, -0 lines |
0 comments
|
Download
|
|
A + |
services/auth_service/tools/compile_proto.py
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
services/components/PRESUBMIT.py
|
View
|
1
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
services/components/components/auth/model.py
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
services/components/components/auth/proto/__init__.py
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
A |
services/components/components/auth/proto/replication.proto
|
View
|
1
|
1 chunk |
+73 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/components/components/auth/proto/replication_pb2.py
|
View
|
1
|
1 chunk |
+194 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/components/components/auth/replication.py
|
View
|
1
2
3
|
1 chunk |
+101 lines, -0 lines |
0 comments
|
Download
|
|
M |
services/components/components/auth/ui/static/js/api.js
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/components/components/auth/ui/templates/linking.html
|
View
|
1
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/components/components/auth/ui/templates/linking_done.html
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
services/components/components/auth/ui/ui.py
|
View
|
1
2
3
|
4 chunks |
+60 lines, -14 lines |
0 comments
|
Download
|
|
M |
services/components/support/gae_sdk_utils.py
|
View
|
1
2
3
|
2 chunks |
+17 lines, -4 lines |
0 comments
|
Download
|
|
M |
services/isolate/PRESUBMIT.py
|
View
|
1
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
services/swarming/PRESUBMIT.py
|
View
|
1
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
Total messages: 18
|