Skip to content

Does _FILE work for REPLICATION_PASSWORD for using docker secrets #3

Open

Description

@dave08

Thanks for the great implementation! This is the best, most non-intrusive I've found after lots of googling. The main image translates any environment variable with _FILE extension to the value contained in the file. This allows for not exposing secrets on production servers. Does this image also do that?

Thanks again!

Activity

  1. nebirhos commented on Jun 28, 2017

    @nebirhos
    Owner

    Hi @dave08, and thanks for your interest in this project!

    It does't work out of the box, but I think we can import the function from https://github.com/docker-library/postgres/blob/master/9.6/docker-entrypoint.sh#L8.

    I never tried the file_env feature. Why not setting the password at runtime with -e REPLICATION_PASSWORD="xxx"?

  2. dave08 commented on Jun 28, 2017

    @dave08
    Author

    See: https://diogomonica.com/2017/03/27/why-you-shouldnt-use-env-variables-for-secret-data/ for explanation of why, and: DanielDent/docker-postgres-replication#7 for possible how.. I just don't understand enough about replication and pg, and am very limited for time (like everybody :) ) to actually make these changes with a pull.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions