Skip to content

Commit

Permalink
fix(vaultform): fix compatibility of STS endpoint url in Konnect (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
TT1228 authored Aug 1, 2024
1 parent f2eb083 commit 43ede4a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ const configFields = reactive<ConfigFields>({
endpoint_url: '',
assume_role_arn: '',
role_session_name: 'KongVault',
sts_endpoint_url: '',
} as AWSVaultConfig,
[VaultProviders.GCP]: {
project_id: '',
Expand Down Expand Up @@ -683,7 +682,6 @@ const originalConfigFields = reactive<ConfigFields>({
endpoint_url: '',
assume_role_arn: '',
role_session_name: 'KongVault',
sts_endpoint_url: '',
} as AWSVaultConfig,
[VaultProviders.GCP]: {
project_id: '',
Expand Down Expand Up @@ -964,7 +962,7 @@ const getPayload = computed((): Record<string, any> => {
...configFields[vaultProvider.value],
endpoint_url: (configFields[vaultProvider.value] as AWSVaultConfig).endpoint_url || null,
assume_role_arn: (configFields[vaultProvider.value] as AWSVaultConfig).assume_role_arn || null,
sts_endpoint_url: (configFields[vaultProvider.value] as AWSVaultConfig).sts_endpoint_url || null,
...(props.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: (configFields[vaultProvider.value] as AWSVaultConfig).sts_endpoint_url || null } : {}),
}
let config: VaultPayload['config'] = configFields[vaultProvider.value]
Expand Down

0 comments on commit 43ede4a

Please sign in to comment.