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
Address PR comments
Carlos Monastyrski2260389877c0
diff --git a/backend/src/services/app-connection/ultradns/ultradns-connection-fns.ts b/backend/src/services/app-connection/ultradns/ultradns-connection-fns.tsindex 267594de89..2539358115 100644--- a/backend/src/services/app-connection/ultradns/ultradns-connection-fns.ts+++ b/backend/src/services/app-connection/ultradns/ultradns-connection-fns.ts@@ -19,6 +19,8 @@ const MAX_ZONE_PAGES = 100;export const ULTRADNS_REQUEST_TIMEOUT_MS = 10_000;+const TWO_FACTOR_ERROR_FRAGMENT = "two factor mobile authentication";+export const ultraDNSRequest = createRequestClient({ timeout: ULTRADNS_REQUEST_TIMEOUT_MS });export const ultraDNSSingleAttemptRequest = createRequestClient(@@ -39,6 +41,9 @@ export const getUltraDNSErrorMessage = (error: unknown) => {| { errorMessage?: string }[]| undefined;const apiMessage = Array.isArray(data) ? data[0]?.errorMessage : (data?.errorMessage ?? data?.error_description);+ if (apiMessage?.toLowerCase().includes(TWO_FACTOR_ERROR_FRAGMENT)) {+ return "This UltraDNS user has Two Factor Mobile Authentication enabled, and UltraDNS blocks API access for those users. Turn it off for this user in the UltraDNS Portal, or connect with a different user.";+ }return apiMessage || error.message || "Unknown error";}return error instanceof Error ? error.message : "Unknown error";diff --git a/backend/src/services/certificate-authority/acme/dns-providers/ultradns.ts b/backend/src/services/certificate-authority/acme/dns-providers/ultradns.tsindex a022ae1b02..b8ade81895 100644--- a/backend/src/services/certificate-authority/acme/dns-providers/ultradns.ts+++ b/backend/src/services/certificate-authority/acme/dns-providers/ultradns.ts@@ -90,6 +90,7 @@ const applyToTxtRecordSet = async (let accessToken: string | undefined;let lastError: Error | undefined;let shouldWaitBeforeRetry = false;+ let hasUnconfirmedWrite = false;for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt += 1) {if (shouldWaitBeforeRetry) await delay(RETRY_DELAY_MS * 2 ** (attempt - 2));@@ -101,8 +102,14 @@ const applyToTxtRecordSet = async (if (!nextValues) return { isConfirmed: true, lastError };- const status = await writeTxtRecordValues(url, accessToken, nextValues, currentValues.length === 0);- shouldWaitBeforeRetry = status === APPLY_PENDING_STATUS;+ if (hasUnconfirmedWrite) {+ hasUnconfirmedWrite = false;+ shouldWaitBeforeRetry = true;+ } else {+ const status = await writeTxtRecordValues(url, accessToken, nextValues, currentValues.length === 0);+ hasUnconfirmedWrite = true;+ shouldWaitBeforeRetry = status === APPLY_PENDING_STATUS;+ }} catch (error) {if (isNonRetryableError(error)) throw error;lastError = toError(error);diff --git a/docs/integrations/app-connections/ultradns.mdx b/docs/integrations/app-connections/ultradns.mdxindex 5e84e6b7de..320b9c4e1f 100644--- a/docs/integrations/app-connections/ultradns.mdx+++ b/docs/integrations/app-connections/ultradns.mdx@@ -26,6 +26,14 @@ Infisical connects to UltraDNS with the username and password of an UltraDNS use<Step title="Confirm the zone type">Only zones of type **Primary** are available to Infisical, because secondary zones can't accept record changes.</Step>+ <Step title="Allow Infisical's IP addresses">+ Skip this step unless your UltraDNS account limits REST API access to allowed IP ranges. With that limit in place,+ UltraDNS rejects every request from an address outside the ranges, including the credential check when you create+ the connection. Add Infisical's outbound IP addresses to the allowed ranges:++ - **Infisical Cloud**: the addresses for your region, listed in [Infisical IP addresses](/documentation/setup/networking).+ - **Self-hosted Infisical**: the public IP address your Infisical server uses for outbound traffic.+ </Step></Steps>## Setup UltraDNS connection in Infisicaldiff --git a/frontend/public/images/integrations/UltraDNS.on-light.png b/frontend/public/images/integrations/UltraDNS.on-light.pngnew file mode 100644index 0000000000..43280bed93Binary files /dev/null and b/frontend/public/images/integrations/UltraDNS.on-light.png differdiff --git a/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts b/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.tsindex 354816aad4..474dd9d9c5 100644--- a/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts+++ b/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts@@ -21,6 +21,7 @@ export const PROVIDER_ICON_VARIANTS: Record<string, ProviderIconVariants> = {"Railway.png": { onLight: "Railway.on-light.png" },"Remix.png": { onLight: "Remix.on-light.png" },"SSH.png": { onLight: "SSH.on-light.png" },+ "UltraDNS.png": { onLight: "UltraDNS.on-light.png" },"Venafi.png": { onLight: "Venafi.on-light.png" }};diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/AcmeFields.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/AcmeFields.tsxindex 91d5454881..1186860123 100644--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/AcmeFields.tsx+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/AcmeFields.tsx@@ -127,6 +127,15 @@ export const AcmeFields = ({<Field className="mb-4"><FieldLabel>Zone <span className="text-danger">*</span>+ <Tooltip>+ <TooltipTrigger asChild>+ <Info />+ </TooltipTrigger>+ <TooltipContent className="max-w-md">+ The DNS zone where Infisical creates the challenge TXT records. It must contain+ the domains you request certificates for.+ </TooltipContent>+ </Tooltip></FieldLabel><FilterableSelectisLoading={isZonesPending && !!dnsAppConnection.id}@@ -157,6 +166,15 @@ export const AcmeFields = ({<Field className="mb-4"><FieldLabel>Directory URL <span className="text-danger">*</span>+ <Tooltip>+ <TooltipTrigger asChild>+ <Info />+ </TooltipTrigger>+ <TooltipContent className="max-w-md">+ The ACME directory of the CA that issues your certificates, such as Let's+ Encrypt or ZeroSSL.+ </TooltipContent>+ </Tooltip></FieldLabel><Input{...field}@@ -182,6 +200,15 @@ export const AcmeFields = ({<Field className="mb-4"><FieldLabel>Account Email <span className="text-danger">*</span>+ <Tooltip>+ <TooltipTrigger asChild>+ <Info />+ </TooltipTrigger>+ <TooltipContent className="max-w-md">+ The email address registered with the CA for this ACME account. CAs such as+ Let's Encrypt use it for expiry and account notices.+ </TooltipContent>+ </Tooltip></FieldLabel><Input {...field} placeholder="[email protected]" isError={Boolean(error)} /><FieldError errors={[error]} />diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/UltraDNSConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/UltraDNSConnectionForm.tsxindex b33e086576..21f29d7bd5 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/UltraDNSConnectionForm.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/UltraDNSConnectionForm.tsx@@ -5,7 +5,6 @@ import { z } from "zod";import {Field,- FieldDescription,FieldError,FieldLabel,Input,@@ -119,11 +118,18 @@ export const UltraDNSConnectionForm = ({ appConnection, onSubmit }: Props) => {shouldUnregisterrender={({ field: { value, onChange }, fieldState: { error } }) => (<Field className="mb-4">- <FieldLabel htmlFor="username">Username</FieldLabel>- <FieldDescription>- An UltraDNS user without Two Factor Mobile Authentication, which the UltraDNS REST- API doesn't support.- </FieldDescription>+ <FieldLabel htmlFor="username">+ Username+ <Tooltip>+ <TooltipTrigger asChild>+ <Info />+ </TooltipTrigger>+ <TooltipContent className="max-w-sm">+ UltraDNS blocks API access for users with Two Factor Mobile Authentication+ turned on, so use a user that has it off.+ </TooltipContent>+ </Tooltip>+ </FieldLabel><Inputid="username"value={value}