You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--profile global flag not applied for auth exec and auth shell commands #1973
The --profile global flag is not being applied when running atmos auth exec or atmos auth shell, causing "identity not found" errors even when the identity exists in the specified profile. The ATMOS_PROFILE environment variable works correctly as a workaround.
The profile is correctly loaded for other auth subcommands (auth list, auth env, auth whoami), but not for auth exec and auth shell.
The --profile flag is documented as a global flag and appears in atmos auth exec --help output. The flag works correctly for auth list, auth env, and auth whoami, but fails silently for auth exec and auth shell (the profile simply isn't loaded).
This suggests the profile loading logic may be missing or bypassed in the code paths for auth exec and auth shell commands specifically.
Brian Ojeda (@sgtoj) are you able to help us validate that #1919 also resolves this issue? This PR refactors auth to use our new flag handler to ensure issues like this don't happen.
Activity
osterman commentedon Jan 15, 2026
Brian Ojeda (@sgtoj) are you able to help us validate that #1919 also resolves this issue? This PR refactors auth to use our new flag handler to ensure issues like this don't happen.
test: Add tests for --profile flag in auth commands (fixes #1973)
sgtoj commentedon Jan 15, 2026
Confirmed 👍
test(auth): add regression tests for issues #1973 and #2392
test(auth): address review comments and push coverage from 47% to 78%
refactor: Migrate atmos auth to Command Registry with StandardParser (#…