-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use
DefaultAzureCredential
in Azure Key Vault (#82)
* feat: use DefaultAzureCredential in Azure Key Vault * add documentation
- Loading branch information
1 parent
6e23ec4
commit 61e5eb8
Showing
13 changed files
with
119 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Azure Key Vault Extension | ||
|
||
The extension provides a `Vault` implementation interfacing with an Azure Key Vault. | ||
|
||
## Authentication | ||
|
||
This extension connects to Azure Key Vault using the | ||
standard `AzureDefaultCredential` | ||
provided by the Azure Identity library. This generic credential fits most use-cases and will attempt to authenticate via | ||
a predefined chain of methods until one is successful. More details about the authentication methods used can be found | ||
in | ||
this [page]([DefaultAzureCredential](https://learn.microsoft.com/en-gb/java/api/com.azure.identity.defaultazurecredential?view=azure-java-stable)). | ||
|
||
### Example 1: connect with Principal client id and a client secret (see [EnvironmentCredential](https://learn.microsoft.com/en-gb/java/api/com.azure.identity.environmentcredential?view=azure-java-stable)) | ||
|
||
The following environments variables must be set: | ||
|
||
- `AZURE_CLIENT_ID` | ||
- `AZURE_CLIENT_SECRET` | ||
- `AZURE_TENANT_ID` | ||
- | ||
|
||
### Example 2: connect with Principal client id and a client certificate (see [EnvironmentCredential](https://learn.microsoft.com/en-gb/java/api/com.azure.identity.environmentcredential?view=azure-java-stable)) | ||
|
||
The following environments variables must be set: | ||
|
||
- `AZURE_CLIENT_ID` | ||
- `AZURE_CLIENT_CERTIFICATE_PATH` | ||
- `AZURE_CLIENT_CERTIFICATE_PASSWORD` | ||
- `AZURE_TENANT_ID` | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
...mmon/vault/vault-azure/src/main/java/org/eclipse/edc/vault/azure/AzureVaultException.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.