From 9260e3e3081641558b0c186bc51f1ea849f2ee03 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Mon, 16 Nov 2026 23:18:06 +1100 Subject: [PATCH] Set public RPM metadata, note imported key rotation and tested versions --- README.md | 5 ++++- docs/keys.md | 3 +++ scripts/build-rpm.sh | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 596a2e0..d095455 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,8 @@ To manage the engine's mounts and keys from Terraform or OpenTofu, use ## Requirements -- HashiCorp Vault 1.12+ or OpenBao 2.x. The same binary works on both. +- HashiCorp Vault or OpenBao. The same binary works on both. The end-to-end + tests run against Vault 1.18 and the latest OpenBao release. - Go 1.25+ (only if you build from source) ## Installation @@ -34,6 +35,8 @@ make build # -> dist/vault-plugin-secrets-gpg Copy the binary into the server's `plugin_directory`, then register it in the plugin catalog and enable the engine. On OpenBao, run the same commands with `bao` in place of `vault`. +The example assumes `plugin_directory = "/etc/vault/plugins"`; use the +directory set in your server config. ```sh SHA256=$(sha256sum /etc/vault/plugins/vault-plugin-secrets-gpg | cut -d' ' -f1) diff --git a/docs/keys.md b/docs/keys.md index 6f002ca..8ea1bf0 100644 --- a/docs/keys.md +++ b/docs/keys.md @@ -93,6 +93,9 @@ latest version. Older versions are kept, so older ciphertext still decrypts and older signatures still verify. Decryption is limited to versions at or above `min_decryption_version`. +Imported keys cannot be rotated; the request fails with +`cannot rotate an imported key`. + ```sh vault write -field=latest_version gpg/keys/app/rotate ``` diff --git a/scripts/build-rpm.sh b/scripts/build-rpm.sh index 63c3538..d59afd2 100755 --- a/scripts/build-rpm.sh +++ b/scripts/build-rpm.sh @@ -24,8 +24,8 @@ export PACKAGE_RELEASE="1" export PACKAGE_ARCH="amd64" export PACKAGE_PLATFORM="linux" export PACKAGE_DESCRIPTION="Vault/OpenBao secrets engine for GPG/OpenPGP keys (sign/verify/encrypt/decrypt)" -export PACKAGE_MAINTAINER="Ben Vincent " -export PACKAGE_HOMEPAGE="https://git.unkin.net/unkin/vault-plugin-secrets-gpg" +export PACKAGE_MAINTAINER="IUCLabs" +export PACKAGE_HOMEPAGE="https://github.com/IUCLabs/vault-plugin-secrets-gpg" export PACKAGE_LICENSE="MIT" build_flavor() {