Allows storing Docker registry credentials using AWS SecretsManager
Project description
About
This helper is suitable for storing Docker registry credentials for distributed Docker installations across AWS EC2 clouds. It stores all necessary information in JSON in single secret managed by AWS SecretsManager service.
Requirements
The only required software is boto3
Installation
Install package using pip
pip install docker-credential-aws-sm
Setup
There are 3 steps required before you can use the helper in the cloud
To register helper for current user edit $HOME/.docker.config.json and place configuration required configuration:
{
"credStore": "aws-sm"
}
For automatic repository discovery configuration should also contain "HttpHeaders" key:
{
"credStore": "aws-sm",
"HttpHeaders": {
"User-Agent": "Docker-Client/18.09.1 (linux)"
}
}
Export necessary environmental variables. DOCKER_SECRETSMANAGER_NAME is mandatory, AWS_ variables should be set according to needs:
# (required) DOCKER_SECRETSMANAGER_NAME points the secret name under which the tool stores credentials
export DOCKER_SECRETSMANAGER_NAME='my_docker_sercret'
# (optional)
export AWS_...
Create IAM user or role according to your need.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file docker-credential-aws-sm-0.1.tar.gz
.
File metadata
- Download URL: docker-credential-aws-sm-0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ab1a35e9bd3a0bb5c21b4ddf7271e82d72c87424e83148a4b608c58f618f970 |
|
MD5 | 671e026c2638c693e8ffa676ebbec1d5 |
|
BLAKE2b-256 | 6c41fe1aced5f8c18a56f5699decb6703d70861d611eb7ceae2aa1b6edd6dbaa |
File details
Details for the file docker_credential_aws_sm-0.1-py2-none-any.whl
.
File metadata
- Download URL: docker_credential_aws_sm-0.1-py2-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03408840360a42487bf8406b703fd4c314440f4da8792c3b86406108e3145c4d |
|
MD5 | 1f44a448fb10ed18e328a471b7ed1cf3 |
|
BLAKE2b-256 | 747a2e09cd0b3fcb513fe1c218f41aaa2337801b3495807a0dc0c5682f9df393 |