Authentication for a multi-cluster workflow » History » Revision 3
« Previous |
Revision 3/4
(diff)
| Next »
Tom Clegg, 06/25/2018 07:25 PM
Authentication for a multi-cluster workflow¶
(work in progress)
Scenarios:
user uuid | workflow uuid | cluster running parent workflow | cluster running child container | |
uuuuu | uuuuu | uuuuu | uuuuu | degenerate case (no federation) |
uuuuu | wwwww | uuuuu | uuuuu | A |
uuuuu | uuuuu | rrrrr | rrrrr | B |
uuuuu | wwwww | rrrrr | rrrrr | C |
uuuuu | wwwww | rrrrr | ccccc | D |
A: Proxy "GET workflow" request on behalf of local user¶
Cluster uuuuu makes a salted token for wwwww when proxying the client's "GET workflow wwwww-*" request.
Cluster wwwww calls back to uuuuu to verify the salted token.
B: Proxy "GET workflow" request on behalf of remote user (authenticated by same remote cluster that hosts workflow)¶
- token issued by uuuuu
- workflow hosted by uuuuu
- a-c-r connects to rrrrr
- Todo: during login, uuuuu asks the user to choose between single-cluster and all-clusters token.
- Todo: uuuuu issues v2 tokens, so rrrrr knows where to perform the verify callback.
- Todo: v2 tokens indicate whether or not they are salted (e.g., len(secret)==40 iff salted).
- Todo: rrrrr salts the supplied token when doing the verify callback, if it's not already salted.
- Todo: uuuuu accepts self-issued tokens that have been uuuuu-salted (for regular requests, not verify callbacks).
(Alternatively, cluster rrrrr, when proxying a "GET workflow uuuuu-*" request with a token issued by uuuuu, passes through the supplied token without salting it -- but this needlessly sends a more powerful token over the network.)
C: Proxy "GET workflow" request on behalf of user authenticated by different remote cluster¶
- token issued by uuuuu
- workflow hosted by wwwww
- a-c-r connects to rrrrr
- (as in scenario B)
Cluster rrrrr makes a salted token for wwwww when proxying the "GET workflow wwwww-*" request.
Cluster wwwww calls back to uuuuu to verify the token.
D: Parent (workflow) container submits child container to a fourth cluster¶
(tbd)
Updated by Tom Clegg over 6 years ago · 4 revisions