docker-okta-aws-sso
Docker image for AWS Single Sign-On with Okta
2.5K
Dockerized (devopsinfra/docker-okta-aws-sso) Single Sign-On solution for Amazon Web Services via Okta.
Okta is one of the leaders of SSO solutions, but lacks native CLI tools.
The best, in my humble opinion, tool that fixes that problem is gimme-aws-creds made by Nike Inc.. More of their interesting work can be found on Nike-Inc.
For details information about gimme-aws-creds's configuration please refer to README.md.
Docker's entrypoint is the binary of gimme-aws-creds and can accept any parameters, even when running as an alias, or a function (check usage below).
It supports Multi Factor Authentication. Not only with authenticator app but even with Yubikey (without PIN).
This Docker image just packs the tool to quickly reuse it without the need of installing with Python.
It should have access only to following configuration files:
~/.okta_aws_login_config~/.aws/credentialsFor ease of reuse create alias or a function in your shell. For example in ~/.profile enter following:
function okta-aws() {
docker run --rm \
--user $(id -u):$(id -g) \
--volume $(pwd)/.okta_aws_login_config:/.okta_aws_login_config \
--volume $(pwd)/.aws/credentials:/.aws/credentials \
-it devopsinfra/docker-okta-aws-sso:latest "$@";
}
Run the interactive installer by executing: okta-aws --action-configure.
For more information run okta-aws --help.
Simplest configuration file:
[DEFAULT]
okta_username = [email protected]
aws_rolename =
cred_profile = default
aws_default_duration = 3600
okta_org_url = https://dev-123456.okta.com
app_url = https://dev-123456.okta.com/home/amazon_aws/1fD3c8s3mfhMHxF1o9id/272
preferred_mfa_type = token:software:totp
device_token =
gimme_creds_server = appurl
write_aws_creds = True
resolve_aws_alias = True
remember_device = True
output_format = json
Parameters, like password, can be also passed via environment variables for reuse. But keep in mind security concerns.
Depending on the configuration (above) new AWS credentials can be obtained by running:
okta-awsokta-aws --profile AdministratorContent type
Image
Digest
sha256:538ee0847…
Size
476.8 MB
Last updated
9 months ago
docker pull devopsinfra/docker-okta-aws-sso:test-latestPulls:
215
Last week