Skip to content

Loading Auth Tokens from a file #338

@nydragon

Description

@nydragon

I am using agenix to encrypt my secrets. Agenix only exposes the path to the decrypted file, and not the content itself, necessitating to give an application the path to the file at runtime.

Since rustypaste either loads the auth token from the AUTH_TOKEN env var or the configuration file, I find myself unable to pass multiple auth tokens to the server.

I'd be interested in adding the parsing of an authentication file at server start, this authentication file could be provided via an AUTH_FILE env var, which holds the path, and the file itself could have a newline separated list of authentication tokens.

If there is a different or better method of implementing this feature I'd gladly hear about it.

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