feat: convert secret-sources into a plugin (B20)

This commit is contained in:
LukeGus committed 2026-09-24 16:20:20 -05:00
1 parent 2ac7779eda
commit f4f26a9b8b
72 files changed
+18843 -933

No files matched your search

-26
View File
@@ -31,8 +31,6 @@ type GeneralSettingsSectionProps = {
onSaveNotificationPrivateEndpoints: (hosts: string[]) => void;
stepCaPrivateEndpoints: string[];
onSaveStepCaPrivateEndpoints: (hosts: string[]) => void;
secretSourcePrivateEndpoints: string[];
onSaveSecretSourcePrivateEndpoints: (hosts: string[]) => void;
stepCaSettings: { caUrl: string; fingerprint: string; provisioner: string };
setStepCaSettings: Dispatch<
SetStateAction<{ caUrl: string; fingerprint: string; provisioner: string }>
@@ -72,8 +70,6 @@ export function AdminGeneralSettingsSection({
onSaveNotificationPrivateEndpoints,
stepCaPrivateEndpoints,
onSaveStepCaPrivateEndpoints,
secretSourcePrivateEndpoints,
onSaveSecretSourcePrivateEndpoints,
stepCaSettings,
setStepCaSettings,
handleSaveStepCaSettings,
@@ -167,28 +163,6 @@ export function AdminGeneralSettingsSection({
/>
</div>
<div className="flex flex-col gap-1.5 py-2">
<span className="text-xs font-medium">
{t("admin.secretSourcePrivateEndpoints")}
</span>
<span className="text-[11px] leading-snug text-muted-foreground">
{t("admin.secretSourcePrivateEndpointsDesc")}
</span>
<Input
className="rounded-none"
defaultValue={secretSourcePrivateEndpoints.join(", ")}
placeholder="connect.internal, 10.0.0.5"
onBlur={(event) =>
onSaveSecretSourcePrivateEndpoints(
event.target.value
.split(",")
.map((entry) => entry.trim())
.filter(Boolean),
)
}
/>
</div>
<div className="flex flex-col gap-2 border-t border-border pt-3 mt-2">
<span className="text-[10px] font-bold uppercase tracking-widest text-muted-foreground">
{t("admin.stepCa")}