Kasra Bigdeli
2024-10-05 12:47:29 -07:00
parent 60a01a0377
commit 92b5ffdd15
2 changed files with 19 additions and 1 deletions
@@ -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 &&
+3
View File
@@ -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 {