0.01
No commit activity in last 3 years
No release in over 3 years
Ruby Client for Azure Key Vault
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

azure-key-vault

Gem Version

Ruby wrapper for Azure Key Vault REST API

Examples

Get an access token

bearer_token = KeyVault::Auth.new(tenant_id, client_id, client_secret).bearer_token

Get an access token using Managed Identity

bearer_token = KeyVault::ManagedIdentityAuth.new().bearer_token

Get client for and existing Azure Key Vault

vault = KeyVault::Client.new(vault_name, bearer_token)

or

vault = KeyVault::Client.new(vault_name, bearer_token, api_version: '<other _api_version>')

Get the most recent version of a secret

vault.get_secret(secret_name)

Get a specific version of a secret

vault.get_secret(secret_name, secret_version)