Skip to content

Support for secret files (Docker secrets) #10874

Description

@Gabgobie

Describe feature

I'd like to see support for the environment variable suffix _FILE to securely handle secrets such as the TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHCLIENTSECRET.

When encountering TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHCLIENTSECRET_FILE: string, Trilium would treat the string as a path and load the secret from the file.

Additional Information

Storing secrets in environment variables is not considered secure and easy to mess up. Smallstep has written about why to avoid them here and there:

I didn't see any mention of this feature in the docs and looked for any previous feature requests with the search terms:

  • _FILE
  • docker secret
  • secret

Since the introduction of GitHub semantic search, my personal success rate in searching for issues has experienced a sharp decline though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    containerIssues related to containers, DockerHub or GHCR

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions