Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions packages/entities/entities-vaults/docs/vault-form.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ A form component for Vaults.
- *Specific to Konnect*. Show/hide Azure option.
- **Note:** This is experimental and not supported by the backend right now

- `konnectConfigStoreAvailable`
- type: `boolean`
- required: `false`
- default: `undefined`
- *Specific to Konnect*. Show/hide Konnect Config Store option.

- `ttl`
- type: `boolean`
- required: `true`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const konnectConfig = ref<KonnectVaultFormConfig>({
azureVaultProviderAvailable: true,
ttl: true,
hcvAppRoleMethodAvailable: true,
konnectConfigStoreAvailable: true,
conjurVaultProviderAvailable: true,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const baseConfigKonnect: KonnectVaultFormConfig = {
apiBaseUrl: '/us/kong-api',
cancelRoute,
azureVaultProviderAvailable: false,
konnectConfigStoreAvailable: true,
ttl: true,
}

Expand All @@ -21,7 +20,6 @@ const baseConfigKonnectTurnOffTTL: KonnectVaultFormConfig = {
apiBaseUrl: '/us/kong-api',
cancelRoute,
azureVaultProviderAvailable: false,
konnectConfigStoreAvailable: true,
ttl: false,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ const originalFields = reactive<VaultStateFields>({
tags: '',
})
const vaultProvider = ref<VaultProviders>(props.config.konnectConfigStoreAvailable ? VaultProviders.KONNECT : VaultProviders.ENV)
const vaultProvider = ref<VaultProviders>(props.config.app === 'konnect' ? VaultProviders.KONNECT : VaultProviders.ENV)
const originalVaultProvider = ref<VaultProviders | null>(null)
const configStoreId = ref<string>()
Expand All @@ -774,7 +774,7 @@ const isAvailableTTLConfig = computed(() => {
const providers = computed<Array<{ label: string, value: VaultProviders }>>(() => {
return [
...(
props.config.konnectConfigStoreAvailable
props.config.app === 'konnect'
? [{
label: t('form.config.konnect.label'),
value: VaultProviders.KONNECT,
Expand Down
9 changes: 3 additions & 6 deletions packages/entities/entities-vaults/src/types/vault-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ export interface BaseVaultFormConfig extends Omit<BaseFormConfig, 'cancelRoute'>
* Show/hide cert option and corresponding fields
*/
hcvCertMethodAvailable?: boolean

/**
* Show/hide Konnect Config Store option
*/
konnectConfigStoreAvailable?: boolean
/**
* Show/hide AWS StsEndpointUrl field
*/
* Show/hide AWS StsEndpointUrl field
*/
awsStsEndpointUrlAvailable?: boolean

/**
Expand Down
Loading