-
-
Couldn't load subscription status.
- Fork 6.2k
Closed
Labels
type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Description
Feature Description
TLDR: LFS_JWT_SECRT should be able to be stored in a separate file outlined by outlined by LFS_JWT_SECRET_URI
Secrets in the [security] section of config allow providing both an inline secret as well as a file where the secret is stored with the _URI suffix.
For example
# /etc/gitea/app.ini
[security]
INTERNAL_TOKEN=#SOME_SECRET_VALUE
# Can be replaced by:
# /etc/bites/app.ini
[security]
INTERNAL_TOKEN_URL=/etc/gitea/secrets/internal_token
# /etc/gitea/secrets/internal_token then contains the #SOME_SECRET_VALUE
This allows for better installation/maintenance of Gitea, as /etc/gitea/app.ini could be stored in version control, as all secrets would be outlined separately.
Proposal:
I propose adding a new config key LFW_JWT_SECRET_URI that would work the same as INTERNAL_TOKEN_URI by allowing users to specify a separate file where the LFS_JWT_SECRET is stored
Screenshots
No response
lonix1
Metadata
Metadata
Assignees
Labels
type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.