mirror of
https://github.com/caprover/caprover
synced 2026-05-03 18:20:32 +00:00
This commit is contained in:
@@ -395,13 +395,28 @@ router.post('/update/', function (req, res, next) {
|
||||
) {
|
||||
res.send(
|
||||
new BaseApi(
|
||||
ApiStatusCodes.STATUS_ERROR_GENERIC,
|
||||
ApiStatusCodes.ILLEGAL_PARAMETER,
|
||||
'Missing required Github/BitBucket/Gitlab field'
|
||||
)
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
if (
|
||||
repoInfo &&
|
||||
repoInfo.sshKey &&
|
||||
repoInfo.sshKey.indexOf('ENCRYPTED') > 0 &&
|
||||
!CaptainConstants.configs.disableEncryptedCheck
|
||||
) {
|
||||
res.send(
|
||||
new BaseApi(
|
||||
ApiStatusCodes.ILLEGAL_PARAMETER,
|
||||
'You cannot use encrypted SSH keys'
|
||||
)
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
if (
|
||||
repoInfo &&
|
||||
repoInfo.sshKey &&
|
||||
|
||||
@@ -58,6 +58,9 @@ const configs = {
|
||||
certbotImageName: 'caprover/certbot-sleeping:v2.11.0',
|
||||
|
||||
certbotCertCommandRules: undefined as CertbotCertCommandRule[] | undefined,
|
||||
|
||||
// this is added in 1.13 just as a safety - remove this after 1.14
|
||||
disableEncryptedCheck: false,
|
||||
}
|
||||
|
||||
export interface CertbotCertCommandRule {
|
||||
|
||||
Reference in New Issue
Block a user