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
To doc: Add support for templated secrets and configs #6207
Comments
Wrote down a basic example here; moby/moby#37377 (comment) |
@ahh-docker PTAL |
Closing this ticket due to its age, and the impending refactor. If you think this is in error, feel free to reopen. Thanks! |
This blog offers decent documentation in the meantime. |
Does that mean usage of this feature will be changing? Any details of the referenced refactor? |
docker/docker.github.io#6207 (comment) Signed-off-by: Artem Ivanov <artem@side.co>
docker/docker.github.io#6207 (comment) Signed-off-by: Artem Ivanov <artem@side.co>
Hi, long time listener, first time caller. Sorry to revive an old thread, but I am trying to find more details around this very topic. I was hoping to find out what the expected scope of the template would be in the case of a service or a stack deployment. For example, could I:
I understand that other platforms (terraform/ansible/puppet) could most likely provide what I'm looking for here, but there's a unique position that the config level templating provides here that those platforms would end up using or accomplishing via other means. If I can get some initial pointers on where to start (new to this code base), I'd be more than happy to dig into it and generate the documentation around it if it is indeed possible. Thanks for your time! |
Hi, view templates {
"ConnectionStrings": {
"Oracle": "uid=CA;pwd={{secret "user_setup_pass"}};direct=true;"
}
} |
Hit same issue as @dmitriy-shleht
|
So I tried to use a My template
but:
So it looks like its not possible to safely use secrets in templates of json files at the moment, but perhaps someone can clarify. In the meantime, I will instead add support to my application for utilising secrets mounted into |
References:
https://github.com/docker/docker-ce/blob/v18.03.0-ce-rc3/CHANGELOG.md
docker/cli#896
moby/moby#33702
moby/moby#36366
moby/swarmkit#2133
Possible doc locations:
https://docs.docker.com/engine/swarm/secrets/
The text was updated successfully, but these errors were encountered: