Skip to content

Provide API Key in a Separate File #232

Description

@foster-hangdaan

Add a configuration option called *-api-key-file to its corresponding *-api-key field. The *-api-key-file designates the path to the text file containing the API key. *-api-key will take priority over *-api-key-file if both are provided.

This is a more secure method of providing secrets, such as API keys, since they are declared outside of the configuration file and can be excluded from version control.

Example entry in wegorc:

# openweathermap backend: the path to a text file containing the API key
owm-api-key-file=/home/user/.config/wego/owm-key.txt

Activity

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