Skip to content

Instantly share code, notes, and snippets.

@aphorise
aphorise / vault-1.20.0_spiffe.sh
Last active November 4, 2025 12:49
Vault 1.21.0 Testing SPIFFE Auth with SPIRE
# // a simple demo / mock of
# https://developer.hashicorp.com/vault/docs/v1.21.x/auth/spiffe
# https://developer.hashicorp.com/vault/api-docs/v1.21.x/auth/spiffe
#// arm64 or amd64 (x86_64) SPIRE version:
SV=1.12.5 ;
SVA=$(uname -m) ; if [[ ${SVA} == "x86_64" ]] ; then SVA="amd64" ; fi ;
SDURL=https://github.com/spiffe/spire/releases/download ;
curl -s -N -L ${SDURL}/v${SV}/spire-${SV}-linux-${SVA}-musl.tar.gz | tar xz && cd spire-${SV} ;
@aphorise
aphorise / vault_k8s-auth_kind-cluster.sh
Last active July 30, 2024 11:30
Quick steps with a mockup of HashiCorp Vault Enterprise using a kind Kubernetes 3 node cluster & k8s authentication
#!/usr/bin/env bash
# // Steps for creating a k8s cluster & deploying HashiCorps Vault helm
# // --------------------------------------------------------------------------
# // Thank you to the below users for their helpful tips:
# // - martinhristov90 (https://github.com/martinhristov90)
# // - rowansmithhc (https://github.com/rowansmithhc)
# // --------------------------------------------------------------------------
# // Prerequisite - ensure that these CLI utilties are already installed:
# // - * OS: git & jq.
# // - * Kubectl (see: https://kubernetes.io/docs/tasks/tools/).