[security issue] app.ini stores smtp auth info in plaintext #4765

Closed
opened 2025-11-02 06:02:14 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @andrewzah on GitHub (Jan 31, 2020).

The app.ini stores the mailer info like:

[mailer]
ENABLED = true
HOST    =
FROM    =
USER    =
PASSWD  =

This is a security issue. Is it not possible to load environment variables in the app.ini?

Originally created by @andrewzah on GitHub (Jan 31, 2020). The `app.ini` stores the mailer info like: ``` [mailer] ENABLED = true HOST = FROM = USER = PASSWD = ``` This is a security issue. Is it not possible to load environment variables in the app.ini?
GiteaMirror added the issue/not-a-bug label 2025-11-02 06:02:14 -06:00
Author
Owner

@ykcab commented on GitHub (Jan 31, 2020):

@azah is there an application that you have seen which uses a config file with encrypted secrets?
Please do enlight if there is one. Even if you load it via an environment variable, it will still leaven in the same server regardless.

Maybe we want to propose to load all these secrets at initial /install and have them saved in MySQL?

@ykcab commented on GitHub (Jan 31, 2020): @azah is there an application that you have seen which uses a config file with encrypted secrets? Please do enlight if there is one. Even if you load it via an environment variable, it will still leaven in the same server regardless. Maybe we want to propose to load all these secrets at initial /install and have them saved in MySQL?
Author
Owner

@techknowlogick commented on GitHub (Jan 31, 2020):

This is not a security issue as it is assumed that you have the configuration protected appropriately as the DB credentials are also stored there. Environment variables would also need to be protected in a similar fashion.

Closing this issue.

@techknowlogick commented on GitHub (Jan 31, 2020): This is not a security issue as it is assumed that you have the configuration protected appropriately as the DB credentials are also stored there. Environment variables would also need to be protected in a similar fashion. Closing this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4765