mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 20:28:17 +00:00
Address PR suggestions
This commit is contained in:
@@ -187,24 +187,6 @@ export enum CertificateRenewalErrorType {
|
||||
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
||||
}
|
||||
|
||||
export const CERTIFICATE_RENEWAL_ERROR_MESSAGES = {
|
||||
[CertificateRenewalErrorType.TEMPLATE_VALIDATION_FAILED]:
|
||||
"Auto-renewal failed: certificate template policy has changed and this certificate no longer meets the requirements",
|
||||
[CertificateRenewalErrorType.CA_NOT_FOUND]:
|
||||
"Auto-renewal failed: Certificate Authority for this certificate is no longer available",
|
||||
[CertificateRenewalErrorType.CA_INACTIVE]: "Auto-renewal failed: Certificate Authority is currently inactive",
|
||||
[CertificateRenewalErrorType.CERTIFICATE_OUTLIVES_CA]:
|
||||
"Auto-renewal failed: certificate would outlive the Certificate Authority",
|
||||
[CertificateRenewalErrorType.TTL_TOO_SHORT]:
|
||||
"Auto-renewal failed: certificate validity period is too short for the renewal threshold",
|
||||
[CertificateRenewalErrorType.NOT_ELIGIBLE]: "Auto-renewal failed: certificate is not eligible for automatic renewal",
|
||||
[CertificateRenewalErrorType.VALIDITY_EXCEEDS_MAXIMUM]:
|
||||
"Auto-renewal failed: certificate validity period exceeds the maximum allowed by the profile template",
|
||||
[CertificateRenewalErrorType.NOT_ALLOWED_BY_TEMPLATE]:
|
||||
"Auto-renewal failed: certificate settings are no longer allowed by the profile template",
|
||||
[CertificateRenewalErrorType.UNKNOWN_ERROR]: "Auto-renewal failed: an unexpected error occurred"
|
||||
} as const;
|
||||
|
||||
export const CERTIFICATE_RENEWAL_CONFIG = {
|
||||
MIN_RENEW_BEFORE_DAYS: 1,
|
||||
MAX_RENEW_BEFORE_DAYS: 30,
|
||||
|
||||
Reference in New Issue
Block a user