Repository navigation
Concurrent assume runs fail to write the shared SSO token to the keychain (-25299)
#976
Replies: 1 comment
|
I traced the first warning and your reading looks right. On every Your change skips the write when the stored token already matches, which removes the contention in the steady state. One gap: right after a fresh assume act-01/myrole --exec true # syncs the keychain copy once
for p in act-02/myrole act-03/myrole; do
assume "$p" --exec true &
done
waitOn v0.39.0 as released, the warning is harmless: assume "$p" --exec true 2> >(grep -v 'storing sso token from the credentials cache' >&2) & |
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
When several
assumeprocesses run at the same time (e.g. a script running a command across many accounts), nearly all of them print a warning:and occasionally:
The commands still succeed, but the warnings clutter script output. (Same second message as #781/#844, but a different cause.)
Suggested fix: replace the lines
granted/pkg/cfaws/assumer_aws_sso.go
Lines 160 to 163 in 9339cff
Expected Behavior
No warnings are printed.
Actual Behavior
Said warnings are printed.
Reproduction Steps
Make sure the AWS CLI has a valid SSO token for the start URL in
~/.aws/sso/cache(e.g.aws sso login --sso-session my-sso).Run
assumefor several profiles at the same time:With 19 profiles, 18 runs print the -25299 warning. Running them one at a time prints nothing.
Granted Logs
No response
Granted Version
OS Version Information
macOS (Darwin 27.0.0, arm64)
Minimal Granted & AWS Config Configuration
Additional Relevant Configuration
~/.granted/config:I acknowledge that:
```) on separate lines.All reactions