STS: New internalized STS provider#13737
Conversation
Test Results (amd64) - Integration, Bootstrap 5 files ±0 5 suites ±0 2h 41m 10s ⏱️ - 2m 4s For more details on these failures, see this check. Results for commit bca7f0d. ± Comparison against base commit 69158c9. ♻️ This comment has been updated with latest results. |
LocalStack Community integration with Pro 2 files ±0 2 suites ±0 1h 33m 19s ⏱️ - 33m 30s For more details on these failures and errors, see this check. Results for commit bca7f0d. ± Comparison against base commit 69158c9. ♻️ This comment has been updated with latest results. |
a2a079c to
37f4eb0
Compare
ceda2be to
19e5d68
Compare
cdcd4df to
4526785
Compare
7211a8d to
aabae16
Compare
19e5d68 to
de9bf7a
Compare
49e13e2 to
cbcd0f4
Compare
de9bf7a to
8ffa1ee
Compare
|
ℹ️ @pinzon I've changed the milestone to playground for now. |
b1990ab to
4b158e1
Compare
|
|
||
| # For permanent access keys (AKIA prefix), extract account from the key | ||
| # In LocalStack, we often encode the account ID in the access key | ||
| if access_key_id.startswith("AKIA"): |
There was a problem hiding this comment.
In LocalStack, this is LKIA - we should use the PARITY_AWS_ACCESS_KEY_ID variable here as well!
There was a problem hiding this comment.
My bad. I mixed up this comment with the comment about using config var to generate the Key
There was a problem hiding this comment.
I'm removing that condition. It provides no value.
1751aaf to
2347778
Compare
8ffa1ee to
34c2712
Compare
34c2712 to
3a2a336
Compare
dfangl
left a comment
There was a problem hiding this comment.
Looks good, I have some more suggestions/questions, then it's good to merge from my side!
| role_id = generate_role_id(target_account_id) | ||
| if role := self._get_role_from_arn(role_arn): | ||
| role_id = role["RoleId"] | ||
| role_id = role_id.replace("AROA", "ARO1") |
There was a problem hiding this comment.
From the test test_sts.TestSTSIntegrations.test_assume_role_with_web_identity. It's marked as only_localstack so it could be wrong but it was migrated from moto
|
|
||
| # For permanent access keys (AKIA prefix), extract account from the key | ||
| # In LocalStack, we often encode the account ID in the access key | ||
| if access_key_id.startswith("AKIA"): |
Motivation
With the objective to internalize the STS service. This PR implements a new service provider based on ASF and LocalStack stores, completly independent of the Moto library.
Changes
providers.py