mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 09:26:47 +00:00
added import support
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ const AzureAppConfigurationSyncDestinationConfigSchema = z.object({
|
|||||||
label: z.string().optional()
|
label: z.string().optional()
|
||||||
});
|
});
|
||||||
|
|
||||||
const AzureAppConfigurationSyncOptionsConfig: TSyncOptionsConfig = { canImportSecrets: false };
|
const AzureAppConfigurationSyncOptionsConfig: TSyncOptionsConfig = { canImportSecrets: true };
|
||||||
|
|
||||||
export const AzureAppConfigurationSyncSchema = BaseSecretSyncSchema(
|
export const AzureAppConfigurationSyncSchema = BaseSecretSyncSchema(
|
||||||
SecretSync.AzureAppConfiguration,
|
SecretSync.AzureAppConfiguration,
|
||||||
|
|||||||
@@ -238,8 +238,7 @@ export const azureKeyVaultSecretSyncFactory = ({
|
|||||||
|
|
||||||
Object.keys(vaultSecrets).forEach((key) => {
|
Object.keys(vaultSecrets).forEach((key) => {
|
||||||
if (!disabledAzureKeyVaultSecretKeys.includes(key)) {
|
if (!disabledAzureKeyVaultSecretKeys.includes(key)) {
|
||||||
const underscoredKey = key.replace(/-/g, "_");
|
secretMap[key] = {
|
||||||
secretMap[underscoredKey] = {
|
|
||||||
value: vaultSecrets[key].value
|
value: vaultSecrets[key].value
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const AzureKeyVaultSyncDestinationConfigSchema = z.object({
|
|||||||
vaultBaseUrl: z.string().url("Invalid vault base URL format").min(1, "Vault base URL required")
|
vaultBaseUrl: z.string().url("Invalid vault base URL format").min(1, "Vault base URL required")
|
||||||
});
|
});
|
||||||
|
|
||||||
const AzureKeyVaultSyncOptionsConfig: TSyncOptionsConfig = { canImportSecrets: false };
|
const AzureKeyVaultSyncOptionsConfig: TSyncOptionsConfig = { canImportSecrets: true };
|
||||||
|
|
||||||
export const AzureKeyVaultSyncSchema = BaseSecretSyncSchema(
|
export const AzureKeyVaultSyncSchema = BaseSecretSyncSchema(
|
||||||
SecretSync.AzureKeyVault,
|
SecretSync.AzureKeyVault,
|
||||||
|
|||||||
Reference in New Issue
Block a user