Allow to supply tokens by file #10

Open
opened 2024-01-15 21:45:48 +01:00 by florian · 0 comments
Owner

In the Docker world it is commonplace to allow for sensitive Environment Variables to be supplied via a file to facilitate using features like Docker (Swarm) Secrets. General best practice is to supply a filename via a ${{ENV}}_FILE environment variable.

I would propose adding the following environment varaibles:

DISCORD_TOKEN_FILE
GITEA_TOKEN_FILE
GITEA_URL_FILE

which will point to a file (or Secret for that matter) where the bot will use the contents of each file to read its

DISCORD_TOKEN
GITEA_TOKEN
GITEA_URL
In the Docker world it is commonplace to allow for sensitive Environment Variables to be supplied via a file to facilitate using features like Docker (Swarm) Secrets. General best practice is to supply a filename via a `${{ENV}}_FILE` environment variable. I would propose adding the following environment varaibles: ```bash DISCORD_TOKEN_FILE GITEA_TOKEN_FILE GITEA_URL_FILE ``` which will point to a file (or Secret for that matter) where the bot will use the contents of each file to read its ```bash DISCORD_TOKEN GITEA_TOKEN GITEA_URL ```
florian added this to the v0.1 milestone 2024-01-15 21:45:48 +01:00
florian added the
Kind/Feature
label 2024-01-15 21:45:48 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: beisel.org/gitea-register-account-bot#10
No description provided.