Implement hashicorp vault
This commit is contained in:
		| @@ -23,8 +23,8 @@ namespace Core.Blueprint.KeyVault.Configuration | ||||
|             { | ||||
|                 var vaultSettings = configuration.GetSection("Vault").Get<VaultOptions>(); | ||||
|  | ||||
|                 if (string.IsNullOrEmpty(vaultSettings?.Address) || string.IsNullOrEmpty(vaultSettings.Token) || | ||||
|                     string.IsNullOrEmpty(vaultSettings?.SecretPath) || string.IsNullOrEmpty(vaultSettings.SecretMount)) | ||||
|                 if (string.IsNullOrEmpty(vaultSettings?.Address) || string.IsNullOrEmpty(vaultSettings.Token) | ||||
|                     || string.IsNullOrEmpty(vaultSettings.SecretMount)) | ||||
|                 { | ||||
|                     throw new ArgumentNullException("Vault options are not configured correctly."); | ||||
|                 } | ||||
|   | ||||
| @@ -11,6 +11,5 @@ namespace Core.Blueprint.KeyVault.Configuration | ||||
|         public string Address { get; set; } = string.Empty; | ||||
|         public string Token { get; set; } = string.Empty; | ||||
|         public string SecretMount { get; set; } = string.Empty; | ||||
|         public string SecretPath { get; set; } = string.Empty; | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user