Skip to content

Instantly share code, notes, and snippets.

View ggouzi's full-sized avatar

Gaëtan GOUZI ggouzi

View GitHub Profile
@ggouzi
ggouzi / initialize-and-unseal-openbao.sh
Created September 27, 2026 17:39
Initialize and unseal Openbao
#!/usr/bin/env bash
# Init, unseal and authorize the OpenBao machine charm.
# https://canonical-openbao.readthedocs-hosted.com/en/latest/how-to/unseal_machine/
set -euo pipefail
usage() {
cat <<EOF
Usage: $0 [-m model] [-u unit] [-a app] [-k keys_file] [-A] [-S] [-h]
-m juju model (default: current model)
-u unit to unseal, e.g. openbao/2 or 2 (default: <app>/leader)