Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

UI: make the authentication options the first input

adilson5cbc1da0a995
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/TailscaleInputForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/TailscaleInputForm.tsx
index c312dc1289..83b2f95b72 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/TailscaleInputForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/TailscaleInputForm.tsx
@@ -257,29 +257,6 @@ export const TailscaleInputForm = ({
Configuration
</div>
<div className="flex flex-col">
- <Controller
- name="provider.authType"
- control={control}
- render={({ field: { value, onChange }, fieldState: { error } }) => (
- <FormControl
- errorText={error?.message}
- isError={Boolean(error?.message)}
- label="Key Type"
- >
- <Select
- value={value}
- onValueChange={(val) => onChange(val)}
- className="w-full border border-mineshaft-500"
- position="popper"
- dropdownContainerClassName="max-w-none"
- >
- <SelectItem value={TailscaleKeyAuthType.AuthKeys}>Auth Key</SelectItem>
- <SelectItem value={TailscaleKeyAuthType.OAuthKeys}>OAuth Client</SelectItem>
- </Select>
- </FormControl>
- )}
- />
-
<Controller
name="provider.auth.method"
control={control}
@@ -367,6 +344,29 @@ export const TailscaleInputForm = ({
</>
)}
+ <Controller
+ name="provider.authType"
+ control={control}
+ render={({ field: { value, onChange }, fieldState: { error } }) => (
+ <FormControl
+ errorText={error?.message}
+ isError={Boolean(error?.message)}
+ label="Key Type"
+ >
+ <Select
+ value={value}
+ onValueChange={(val) => onChange(val)}
+ className="w-full border border-mineshaft-500"
+ position="popper"
+ dropdownContainerClassName="max-w-none"
+ >
+ <SelectItem value={TailscaleKeyAuthType.AuthKeys}>Auth Key</SelectItem>
+ <SelectItem value={TailscaleKeyAuthType.OAuthKeys}>OAuth Client</SelectItem>
+ </Select>
+ </FormControl>
+ )}
+ />
+
<Controller
control={control}
name="provider.tailnet"
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretTailscaleForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretTailscaleForm.tsx
index 1f701e99f4..02d3b7b1a9 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretTailscaleForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretTailscaleForm.tsx
@@ -269,29 +269,6 @@ export const EditDynamicSecretTailscaleForm = ({
<div>
<div className="mb-4 border-b border-b-mineshaft-600 pb-2">Configuration</div>
<div className="flex flex-col">
- <Controller
- name="inputs.authType"
- control={control}
- render={({ field: { value, onChange }, fieldState: { error } }) => (
- <FormControl
- errorText={error?.message}
- isError={Boolean(error?.message)}
- label="Key Type"
- >
- <Select
- value={value}
- onValueChange={(val) => onChange(val)}
- className="w-full border border-mineshaft-500"
- position="popper"
- dropdownContainerClassName="max-w-none"
- >
- <SelectItem value={TailscaleKeyAuthType.AuthKeys}>Auth Key</SelectItem>
- <SelectItem value={TailscaleKeyAuthType.OAuthKeys}>OAuth Client</SelectItem>
- </Select>
- </FormControl>
- )}
- />
-
<Controller
name="inputs.auth.method"
control={control}
@@ -378,6 +355,29 @@ export const EditDynamicSecretTailscaleForm = ({
</>
)}
+ <Controller
+ name="inputs.authType"
+ control={control}
+ render={({ field: { value, onChange }, fieldState: { error } }) => (
+ <FormControl
+ errorText={error?.message}
+ isError={Boolean(error?.message)}
+ label="Key Type"
+ >
+ <Select
+ value={value}
+ onValueChange={(val) => onChange(val)}
+ className="w-full border border-mineshaft-500"
+ position="popper"
+ dropdownContainerClassName="max-w-none"
+ >
+ <SelectItem value={TailscaleKeyAuthType.AuthKeys}>Auth Key</SelectItem>
+ <SelectItem value={TailscaleKeyAuthType.OAuthKeys}>OAuth Client</SelectItem>
+ </Select>
+ </FormControl>
+ )}
+ />
+
<Controller
control={control}
name="inputs.tailnet"