azure-key-vault
A Dagger module to integrate with Azure Key Vault https://azure.microsoft.com/en-us/products/key-vaultInstallation
dagger install github.com/mustafayildirim/daggerverse/azure-key-vault@b3d60db7d217146341ef3f8fb9a509897f686b10
Entrypoint
Return Type
AzureKeyVault
Example
dagger -m github.com/mustafayildirim/daggerverse/azure-key-vault@b3d60db7d217146341ef3f8fb9a509897f686b10 call \
func (m *myModule) example() *AzureKeyVault {
return dag.
AzureKeyVault()
}
@function
def example() -> dag.AzureKeyVault:
return (
dag.azure_key_vault()
)
@func()
example(): AzureKeyVault {
return dag
.azureKeyVault()
}
Types
AzureKeyVault 🔗
getSecret() 🔗
Example: dagger call get-secret –tenant-id=env:AZURE_TENANT_ID –client-id=env:AZURE_CLIENT_ID –client-secret=env:AZURE_CLIENT_SECRET –key-vault-name quickstart-kv –secret-name test-secret1
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
keyVaultName | String ! | - | No description provided |
secretName | String ! | - | No description provided |
tenantId | Secret ! | - | No description provided |
clientId | Secret ! | - | No description provided |
clientSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/mustafayildirim/daggerverse/azure-key-vault@b3d60db7d217146341ef3f8fb9a509897f686b10 call \
get-secret --key-vault-name string --secret-name string --tenant-id env:MYSECRET --client-id env:MYSECRET --client-secret env:MYSECRET
func (m *myModule) example(ctx context.Context, keyVaultName string, secretName string, tenantId *Secret, clientId *Secret, clientSecret *Secret) string {
return dag.
AzureKeyVault().
GetSecret(ctx, keyVaultName, secretName, tenantId, clientId, clientSecret)
}
@function
async def example(key_vault_name: str, secret_name: str, tenant_id: dagger.Secret, client_id: dagger.Secret, client_secret: dagger.Secret) -> str:
return await (
dag.azure_key_vault()
.get_secret(key_vault_name, secret_name, tenant_id, client_id, client_secret)
)
@func()
async example(keyVaultName: string, secretName: string, tenantId: Secret, clientId: Secret, clientSecret: Secret): Promise<string> {
return dag
.azureKeyVault()
.getSecret(keyVaultName, secretName, tenantId, clientId, clientSecret)
}