Crates.io | azure-sdk-keyvault |
lib.rs | azure-sdk-keyvault |
version | 0.1.13 |
source | src |
created_at | 2020-05-25 01:27:43.245572 |
updated_at | 2020-05-30 01:07:44.388194 |
description | Rust wrapper around Microsoft Azure REST APIs for Azure Key Vault |
homepage | https://github.com/guywaldman/azure-sdk-keyvault |
repository | https://github.com/guywaldman/azure-sdk-keyvault |
max_upload_size | |
id | 245414 |
size | 98,548 |
🚧 Work in progress, do not use in production. 🚧
Azure Key Vault is a service in Microsoft Azure for securely storing and accessing secrets, credentials and certificates in the cloud. This crate exposes Rust bindings for the Azure Key Vault REST API.
This was started as a standalone contribution to MindFlavor/AzureSDKForRust, which has many other useful Azure REST API bindings for Rust.
I am a Microsoft employee, but this is not an official Microsoft product nor an endorsed product. Purely a project for fun and for learning Rust.
use azure_sdk_keyvault::KeyVaultClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut client = KeyVaultClient::new(&"c1a6d79b-082b-4798-b362-a77e96de50db", &"SUPER_SECRET_KEY", &"bc598e67-03d8-44d5-aa46-8289b9a39a14", &"test-keyvault");
// Set a secret.
client.set_secret("test-secret", "42").await?;
// Get a secret.
let secret = client.get_secret("test-secret").await?;
assert_eq!("42", secret.value());
Ok(())
}
...are welcome! Currently the repo exposes a very small number of operations.
This project was started from the fantastic MindFlavor/AzureSDKForRust repo.