diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-07-01 00:07:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 04:07:48 +0000 |
commit | 469d89b95a1ce18dd34808a95c7230375e828e24 (patch) | |
tree | 5c9f4647275fa9f08d0b487469ab03e04ff23d42 /modules | |
parent | de981c39e642c9df77881aa3dc8161b1a2ae64c6 (diff) | |
download | gitea-469d89b95a1ce18dd34808a95c7230375e828e24.tar.gz gitea-469d89b95a1ce18dd34808a95c7230375e828e24.zip |
Set SSH_AUTHORIZED_KEYS_BACKUP to false (#25412)
This prevents the disk from overflowing with auth keys file
Fixes #17117
## ⚠️ BREAKING
This changes the default option for creating a backup of the authorized
key file when an update is made to default to false.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/ssh.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/ssh.go b/modules/setting/ssh.go index a5a9da0b36..bbb7f5ab6c 100644 --- a/modules/setting/ssh.go +++ b/modules/setting/ssh.go @@ -173,7 +173,7 @@ func loadSSHFrom(rootCfg ConfigProvider) { } } - SSH.AuthorizedKeysBackup = sec.Key("SSH_AUTHORIZED_KEYS_BACKUP").MustBool(true) + SSH.AuthorizedKeysBackup = sec.Key("SSH_AUTHORIZED_KEYS_BACKUP").MustBool(false) SSH.CreateAuthorizedKeysFile = sec.Key("SSH_CREATE_AUTHORIZED_KEYS_FILE").MustBool(true) SSH.AuthorizedPrincipalsBackup = false |