Skip to main content

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

  1. 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)"
  }
}
  1. 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_...
  1. Create IAM user or role according to your need.

Metadata

Release files for docker-credential-aws-sm 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docker-credential-aws-sm 0.1
File Size Uploaded
docker-credential-aws-sm-0.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docker-credential-aws-sm 0.1
File Interpreter ABI Platform
docker_credential_aws_sm-0.1-py2-none-any.whl Python 2 none any Details

Total release size: 8.0 kB

Release files / docker-credential-aws-sm-0.1.tar.gz

Download URL docker-credential-aws-sm-0.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6ab1a35e9bd3a0bb5c21b4ddf7271e82d72c87424e83148a4b608c58f618f970
BLAKE2b-256 checksum
How to use checksums
6c41fe1aced5f8c18a56f5699decb6703d70861d611eb7ceae2aa1b6edd6dbaa
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / docker_credential_aws_sm-0.1-py2-none-any.whl

Download URL docker_credential_aws_sm-0.1-py2-none-any.whl
Size 4.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
03408840360a42487bf8406b703fd4c314440f4da8792c3b86406108e3145c4d
BLAKE2b-256 checksum
How to use checksums
747a2e09cd0b3fcb513fe1c218f41aaa2337801b3495807a0dc0c5682f9df393
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page