Skip to content

Support for secrets #296

Closed
Closed
@surajssd

Description

Right now there is no way I can specify secrets from docker-compose which then maps to kubernetes. This would be great thing to have.

For using this feature I had to manually create secret object and then add it to container spec in deployment.

Activity

sebgoa

sebgoa commented on Nov 21, 2016

@sebgoa
Contributor

Docker does not yet have a concept of secrets, does it ? I think they are working on it , but it is not there yet and not in compose AFAIK.

jamstar

jamstar commented on Feb 27, 2017

@jamstar

So one instance that would be supported now would be in use of environmental variables. the docker compose for my project i just converted sets stuff like the username and pass for a database as env variables. ill convert them over to using secrets

surajssd

surajssd commented on Mar 1, 2017

@surajssd
MemberAuthor

@jamstar yeah that needs to be done manually!

added this to the 1.1.0 release milestone on Jul 25, 2017
cdrage

cdrage commented on Jul 25, 2017

@cdrage
Member

Secrets are able to be defined in Docker Compose Version 3: https://docs.docker.com/compose/compose-file/#secrets-configuration-reference and thus we can map this to Kubernetes much easier than expected.

cdrage

cdrage commented on Aug 18, 2017

@cdrage
Member

Since Docker Compose now has secrets, the best way (from my research) would be to use secrets as well as the file option of import. Unfortunately using external will not work as secrets stored within swarm are encrypted Raft variables (no idea what they mean by that in the documentation).

See: https://stackoverflow.com/questions/42139605/how-do-you-manage-secret-values-with-docker-compose-v3-1 for some context.

modified the milestones: 1.1.0 release, 1.2.0 release on Aug 30, 2017
surajnarwade

surajnarwade commented on Aug 31, 2017

@surajnarwade
Contributor

FYI, secrets is supported in docker-compose version 3.1

43 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    kind/discusskind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Support for secrets · Issue #296 · kubernetes/kompose