Skip to content

Commit

Permalink
Set SSH_AUTHORIZED_KEYS_BACKUP to false (#25412)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
techknowlogick authored Jul 1, 2023
1 parent de981c3 commit 469d89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/setting/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 469d89b

Please sign in to comment.