Encrypt LDAP bind password in db with SECRET_KEY #15547

Merged
lunny merged 9 commits from fix-15460-encrypt-ldap-bind-password-in-db into main 2021-05-20 08:29:57 +00:00
Contributor

The LDAP source bind password are currently stored in plaintext in the db
This PR simply encrypts them with the setting.SECRET_KEY.

Fix #15460

⚠️ WARNING ⚠️

Changing the SECRET_KEY in the app.ini will now cause these passwords to become unreadable.

Signed-off-by: Andrew Thornton art27@cantab.net

The LDAP source bind password are currently stored in plaintext in the db This PR simply encrypts them with the setting.SECRET_KEY. Fix #15460 ## :warning: WARNING :warning: Changing the `SECRET_KEY` in the app.ini will now cause these passwords to become unreadable. Signed-off-by: Andrew Thornton <art27@cantab.net>
lunny approved these changes 2021-04-19 23:37:59 +00:00
noerw (Migrated from github.com) approved these changes 2021-05-16 11:00:58 +00:00
justusbunsi (Migrated from github.com) reviewed 2021-05-18 15:23:10 +00:00
justusbunsi (Migrated from github.com) commented 2021-05-18 15:23:10 +00:00
Owner

is stored ~in~ encrypted with the. Although it seems to work with/without the "in". ?

_is stored ~in~ encrypted with the_. Although it seems to work with/without the "in". ?
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
2 Participants
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: lunny/gitea#15547
No description provided.