This introduces `atmos auth` the single best way t...
# atmos
e
This introduces
atmos auth
the single best way to handle authentication and identities across all clouds. It supports SSO, SAML, OIDC, and IAM Users. Manage all your IAM configuration in `atmos.yaml`; no more messing around with AWS profiles. Centralize all your identity configuration in one place. Makes it easy for all users to authenticate without any manual configuration. https://atmos.tools/cli/commands/auth/usage
m
Is there a migration guide from leapp? How does the secret storage work, if atmos is running inside a geodesic container? It won't be able to use the OS secret storage, I guess?
e
There’s unfortunately not a great story for working with it inside of a container. We decided to leave it out of this initial release. We could add a key vault file.
We are adding native toolchain support to atmos very soon.
This makes it easier to run atmos natively without a “devcontainer”
m
soo, the future path is to drop geodesic if we want to use auth in atmos?
e
I can’t say that conclusively. Just that we are prioritizing running atmos natively over running atmos inside of a container. It wouldn’t be a lot of work to add support for an encrypted file instead of a keychains. github.com/99designs/keyring supports this
👀 1
Just don’t think the experience is as good as running natively.
It’s really hard to do automated testing between atmos and geodesic. While we can do complete end to end integration testing the more we put into atmos.
Migration guide is coming soon. Cc @Ben Smith (Cloud Posse)
🙌 1
j
I've just been playing with the new auth feature. Its great. Do you know if it is suppose to work for
!terraform.state
functions? When I have one set and run
atmos
it does not use the auth identity that is set and fails to read the state. Any pointers? Thanks.
e
it could be an oversight. Let me check.
Do you have a different identity required to access that state?
j
no its the same identity. Its just by default aws profile, set in
.aws/config
is not the identity I want to use.
e
aha! yes, so we have a bug fix for that coming out
do you also happen to have
AWS_PROFILE
set?
j
oh cool 🙂 - yes probably.
e
ok, temporary workaround is to run atmos like this:
Copy code
AWS_PROFILE= atmos ...
This will be fixed in 1.196.0
Also, I realized I said that we were going to be posting a migration guide and didn't add it here. So here's the link to the migration guide. https://atmos.tools/blog/auth-tutorials-geodesic-leapp
j
the
AWS_PROFILE= atmos ...
doesn't seem to work for me. It only works if I set the
AWS_PROFILE=
to be a valid profile already in my
.aws/config
file.
its like the
!terraform.state
functions runs before the auth functions take effect.
e
ok, that's helpful.