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

WIP: use secrets for postgres creds #145

Closed
wants to merge 2 commits into from
Closed

WIP: use secrets for postgres creds #145

wants to merge 2 commits into from

Commits on Sep 26, 2016

  1. Get initial credentials also from secrets

    Secrets are supposed to be mounted in subdirectories of /run/secrets/pgusers/.
    They should have `username` and `password` keys.
    
    Limitations: It does not check for duplicate user names or overlap with
    (legacy) environment variables setting credentials.
    
    Regarding startup works similar to the previous environment variable based logic.
    It will only start if one or both of the following is true.
    
     * `/run/secrets/pguser/user` are valid credentials and POSTGRESQL_DATABASE is set
       (a database will be created).
    
     * `/run/secrets/pguser/admin` are valid credentials and the username is `postgres`.
    
    `/run/secrets/pguser/master` is supposed to be the replication master user, if mounted.
    ibotty committed Sep 26, 2016
    Configuration menu
    Copy the full SHA
    70ade32 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2016

  1. Configuration menu
    Copy the full SHA
    28ec496 View commit details
    Browse the repository at this point in the history