Skip to content

Instantly share code, notes, and snippets.

View PatrickMunsey's full-sized avatar

Patrick Munsey PatrickMunsey

View GitHub Profile
@PatrickMunsey
PatrickMunsey / azure-keyvault-env-file-sync.md
Last active May 21, 2024 14:11
Azure Keyvault Env File Sync - A shell script that allows keyvault secrets to be synced to local .env files to streamline secret management for local development

Azure Keyvault Env File Sync

This script allows keyvault secrets to be synced to local .env files.

  • Enables local development and secret synchronization amongst multiple team members and devices.
  • Keep development secrets centralised in Azure Keyvaults and out of git or floating around other platforms
  • Protect sensitive information with Azures keyvault IAM (local dev secrets should be completely different from other environment keyvaults)

Usage

./azure-keyvault-env-file-sync.sh -k keyvault-name