Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
add frontend warning
Matheus Nogueira52c711e66ec4
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsxindex 7c964dcef6..277954658a 100644--- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx+++ b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx@@ -208,6 +208,27 @@ const RuleFormContent = ({);return Boolean(hasRegex && hasLength);})();++ const watchedProviders = form.watch("enforcement.inputs.providers" as "enforcement.inputs") as+ | string[]+ | undefined;+ // Oracle 12c and older limits passwords to 30 characters. Show a heads-up+ // when OracleDB is selected and a constraint actually exceeds that limit:+ // min/max length > 30, or any regex (whose output length can't be checked+ // statically).+ const ORACLE_12C_MAX_PASSWORD_LENGTH = 30;+ const showOracleLengthWarning = (() => {+ if (watchedRuleType !== RuleType.SecretRotations) return false;+ const hasOracle = watchedProviders?.includes(SecretRotationRuleProvider.OracleDBCredentials);+ if (!hasOracle) return false;+ return watchedConstraints?.some((c) => {+ if (c.type === ConstraintType.RegexPattern) return true;+ if (c.type === ConstraintType.MinLength || c.type === ConstraintType.MaxLength) {+ return Number(c.value) > ORACLE_12C_MAX_PASSWORD_LENGTH;+ }+ return false;+ });+ })();const availableConstraintOptions = CONSTRAINT_OPTIONS.filter((opt) => {if (disallowedConstraintTypes.includes(opt.type)) return false;const targets = isGeneratedCredentialRule@@ -399,6 +420,18 @@ const RuleFormContent = ({</Alert>)}+ {showOracleLengthWarning && (+ <Alert variant="warning">+ <TriangleAlertIcon />+ <AlertTitle>Oracle 12c password length limitation</AlertTitle>+ <AlertDescription>+ If you are using Oracle 12c or older, passwords are limited to 30 characters. Make+ sure your length and pattern constraints stay within this limit to avoid rotation+ failures.+ </AlertDescription>+ </Alert>+ )}+{/* Constraints */}<div><div className="mb-3 flex items-center justify-between">