Fetches secrets from Azure Key Vault and weaves them into a convenient .env file
Find a file
2023-11-06 00:38:39 +01:00
.github/workflows feat: workflow for release deployment 2023-11-06 00:34:45 +01:00
src feat: implementation of secret fetching 2023-11-06 00:33:42 +01:00
.gitignore feat: ignore .env files 2023-11-06 00:38:39 +01:00
Cargo.lock feat: implementation of secret fetching 2023-11-06 00:33:42 +01:00
Cargo.toml feat: implementation of secret fetching 2023-11-06 00:33:42 +01:00
LICENSE feat: added author and package information 2023-11-06 00:38:05 +01:00
README.md docs: added sections for installation and usage 2023-11-06 00:34:29 +01:00

Cluster

Keyweave

Keyweave is an open-source tool designed to seamlessly fetch secrets from Azure Key Vault and weave them into a convenient .env file. Developed in Rust, Keyweave is efficient and easy to use, making it an ideal choice for managing your application's secrets.

Features

  • Fetch Secrets: Retrieve secrets securely from Azure Key Vault.
  • Filtering: Optionally filter the secrets to be retrieved by name.
  • Output Customization: Choose the name of the output file, defaulting to .env.
  • Azure Default Credentials: Utilizes Azure default credentials for authentication.

Prerequisites

  • Rust: Ensure you have Rust installed on your system. If not, you can install it using rustup.
  • Azure Account: Log into your Azure tenant and set up the right subscription.

Installation

Clone the repository to your local machine:

git clone https://github.com/your-username/keyweave.git
cd keyweave

Build the project:

cargo build --release

Usage

After building the project, you can run Keyweave using the following command:

cargo run -- --vault_name <VAULT_NAME> [--output <FILE>] [--filter <FILTER>]
  • --vault_name <VAULT_NAME>: Sets the name of the Azure Key Vault.
  • --output <FILE>: (Optional) Sets the name of the output file (default: .env).
  • --filter <FILTER>: (Optional) Filters the secrets to be retrieved by name.

Example

cargo run -- --vault_name my-key-vault --output my-env-file.env --filter my-secret

License

Keyweave is licensed under the MIT License. See LICENSE for more details.

Contributing

We welcome contributions! Please feel free to submit pull requests, report issues, or suggest new features.