GUACAMOLE-641: Retrieve secrets from Azure Key Vault.

This commit is contained in:
Michael Jumper
2022-01-21 15:23:40 -08:00
parent cab29bacf7
commit e56becc258

View File

@@ -83,8 +83,9 @@ public class AzureKeyVaultSecretService extends CachedVaultSecretService {
KeyVaultClient client = new KeyVaultClient(credentialProvider.get());
SecretBundle secret = client.getSecret(url, name);
// FIXME: STUB
return new CachedSecret(null, ttl);
// Cache retrieved value
String value = (secret != null) ? secret.value() : null;
return new CachedSecret(value, ttl);
}
catch (AzureKeyVaultAuthenticationException e) {