fix(oci): use home region for identity bootstrap (#12909)

Co-authored-by: Pedro Martín <pedromarting3@gmail.com>
This commit is contained in:
Prowler BotandPedro Martín authored and GitHub committed 2026-09-29 18:08:45 +02:00
1 parent f23b38a269
commit 01d7df6fce
26 files changed
+383 -60

No files matched your search

@@ -4,6 +4,9 @@ import {
WizardInputField,
WizardTextareaField,
} from "@/components/providers/workflow/forms/fields";
import { Combobox } from "@/components/shadcn/combobox";
import { FormControl, FormField, FormMessage } from "@/components/shadcn/form";
import { OCI_REGION_GROUPS } from "@/lib/provider-credentials/oci-regions";
import { ProviderCredentialFields } from "@/lib/provider-credentials/provider-credential-fields";
import { OCICredentials } from "@/types";
@@ -48,6 +51,34 @@ export const OracleCloudCredentialsForm = ({
variant="bordered"
isRequired
/>
<FormField
control={control}
name={ProviderCredentialFields.OCI_REGION}
render={({ field }) => (
<div className="flex flex-col gap-1.5">
<span className="text-text-neutral-tertiary text-xs font-light tracking-tight">
Home Region<span className="text-text-error-primary">*</span>
</span>
<FormControl>
<Combobox
aria-label="Home Region"
value={field.value ?? ""}
onValueChange={field.onChange}
groups={OCI_REGION_GROUPS}
placeholder="Select your tenancy home region"
searchPlaceholder="Search region..."
emptyMessage="No region found."
contentClassName="z-[60] sm:w-(--radix-popover-trigger-width) sm:max-w-none"
/>
</FormControl>
<span className="text-text-neutral-tertiary text-xs">
Shown in the OCI Console under Tenancy Details. Used only to
validate the credentials: all subscribed regions are scanned.
</span>
<FormMessage className="text-text-error-primary max-w-full text-xs" />
</div>
)}
/>
<WizardTextareaField
control={control}
name={ProviderCredentialFields.OCI_KEY_CONTENT}