Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECR credentials for AWS using Vault #7832

Open
fairbairn opened this issue Apr 29, 2020 · 1 comment
Open

ECR credentials for AWS using Vault #7832

fairbairn opened this issue Apr 29, 2020 · 1 comment
Labels
theme/docs Documentation issues and enhancements theme/environment-aws theme/vault

Comments

@fairbairn
Copy link

We've been trying to ascertain a clean way in which we can leverage Vault to provide credentials (or scripts or syntax) to a nomad job through the template, without physically colocating AWS keys/secrets onto the nomad host itself.

Is there no way to do this without touching the actual nomad server?

We'd like to be able to plan out job/tasks that cross over several ECR repositories, and private repos, not just one, and although we could put numerous profiles in the /root/.aws/credentials file, that pretty much defeats the use of Vault to keep this information out of people's hands.

We haven't found a clean way to do this.

Is this possible?

Existing cluster, already integrated with Vault. Leave it untouched. We have a new task that needs to pull the image from ECR.

@tgross
Copy link
Member

tgross commented Jun 22, 2020

Hi @fairbairn! We don't have a published example of that, but it seems like an obvious gap in the docs! I think you'd want to implement this as a Docker auth helper: https://www.nomadproject.io/docs/drivers/docker/#authentication, especially given the need to cross over multiple registries.

That being said, given that you're on AWS and using ECR, you might find better results from assigning an IAM role to the client nodes that has a restrictive set of permissions to pull from the ECR registry and nothing else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/docs Documentation issues and enhancements theme/environment-aws theme/vault
Projects
None yet
Development

No branches or pull requests

2 participants