Skip to content

Support env vars with _FILE suffix pointing to file with secret value #22

@makukha

Description

@makukha

Many Docker images allow setting env vars pointing to specific secret file.

For example, official PostgreSQL docker image, in addition to env var POSTGRES_PASSWORD, allows setting POSTGRES_PASSWORD_FILE, which, if set, must point to a file containing secret value.

All env vars in official PostgreSQL image, that allow _FILE override, are

  • POSTGRES_INITDB_ARGS -> POSTGRES_INITDB_ARGS_FILE
  • POSTGRES_PASSWORD -> POSTGRES_PASSWORD_FILE
  • POSTGRES_USER -> POSTGRES_USER_FILE
  • POSTGRES_DB -> POSTGRES_DB_FILE

This feature makes sense for secrets other than regular settings, that's why it might be a good idea to add it to this package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions