Conversation
|
Skipping CI for Draft Pull Request. |
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
d329f19 to
e8ccdaa
Compare
|
Images are ready for the commit at 0247e0a. To use with deploy scripts, first |
e8ccdaa to
a4f066b
Compare
acf1c82 to
09b4eee
Compare
f6aa2fc to
58077c8
Compare
09b4eee to
c4c3867
Compare
58077c8 to
61cdd30
Compare
c4c3867 to
fa3c7b4
Compare
61cdd30 to
ab80f8d
Compare
0b1f2e2 to
5fd57f5
Compare
msugakov
left a comment
There was a problem hiding this comment.
Sharing as much as I could go through today, not the complete code.
5fd57f5 to
b93280a
Compare
c3a491c to
73dfd50
Compare
4c2fc46 to
adf6a46
Compare
adf6a46 to
b30c12c
Compare
|
/retest |
janisz
left a comment
There was a problem hiding this comment.
I'm not a fan of using mutexes to lock databases read/writes.
25d655c to
82fb93a
Compare
b30c12c to
5ad07de
Compare
82fb93a to
d038085
Compare
5ad07de to
2627aa2
Compare
d038085 to
b1b0bf2
Compare
2627aa2 to
dc0e50e
Compare
dc0e50e to
0247e0a
Compare
|
@dhaus67: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |

Description
This is the second and final PR in a series of PRs to allow Central to issue short-lived tokens for machine to machine access (i.e. within CI environments) by exchanging an ID token for a Central token (also referred to as Rox token).
This PR contains:
Checklist
If any of these don't apply, please comment below.
Testing Performed
Here I tell how I validated my change
Additionally, since this is always hard with OIDC/ identity related changes, did the following manual tests:
roxctl central whoamioutput, which refers to the github actor as user ID.For a generic config:
roxctl central whoami:General config tests for the API:
roxcurl v1/auth/m2m { "configs": [ { "id": "fcffb2fc-7d40-4ebd-986f-839f6fdbfdbe", "type": "GENERIC", "tokenExpirationDuration": "5m", "mappings": [ { "key": "sub", "valueExpression": "my-subject", "role": "Analyst" } ], "issuer": "<redacted>" }, { "id": "4d6f5c69-3121-4d75-a77f-b5c41083dfc5", "type": "GITHUB_ACTIONS", "tokenExpirationDuration": "5m", "mappings": [ { "key": "sub", "valueExpression": "my-subject", "role": "Analyst" } ], "issuer": "https://token.actions.githubusercontent.com" } ] }roxcurl v1/auth/m2m/4d6f5c69-3121-4d75-a77f-b5c41083dfc5 { "config": { "id": "4d6f5c69-3121-4d75-a77f-b5c41083dfc5", "type": "GITHUB_ACTIONS", "tokenExpirationDuration": "5m", "mappings": [ { "key": "sub", "valueExpression": "my-subject", "role": "Analyst" } ], "issuer": "https://token.actions.githubusercontent.com" } }roxcurl v1/auth/m2m -d '{"config": {"type": "GITHUB_ACTIONS", "id": "4d6f5c69-3121-4d75-a77f-b5c41083dfc5","tokenExpirationDuration": "10m", "mappings":[{"key": "sub", "valueExpression": "my-subject", "role": "Analyst"}]}}' -X POSTReminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.