9 Commits

Author SHA1 Message Date
unkin-agent a94472cbef Install plugin under /usr/libexec (#7)
ci / pre-commit (push) Has been cancelled
ci / lint (push) Has been cancelled
ci / test (push) Has been cancelled
ci / build (push) Has been cancelled
release / release (push) Has been cancelled
Plugin binaries are internal executables run by Vault/OpenBao, not by users, so FHS places them under /usr/libexec (which also gives them the SELinux bin_t label).

- vault RPM installs to /usr/libexec/vault-plugins, openbao RPM to /usr/libexec/openbao-plugins
- preinstall scripts create the new directories
- README install example uses the packaged path

Reviewed-on: #7
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
v0.2.0
2026-11-19 22:31:46 +11:00
unkin-agent 681bd8264f Add GitHub Actions CI and GoReleaser release (#6)
ci / pre-commit (push) Has been cancelled
ci / lint (push) Has been cancelled
ci / test (push) Has been cancelled
ci / build (push) Has been cancelled
Releases move to the GitHub IUCLabs mirror so a `v*` tag publishes signed x86_64 RPMs as GitHub release assets; Woodpecker keeps PR CI only.

- `ci.yml` runs pre-commit, vet, test and build on PRs and main
- `release.yml` runs goreleaser on `v*` tags and signs SHA256SUMS via the Vault GPG engine (`scripts/sign.sh`)
- `.goreleaser.yml` builds linux/amd64 and packages the vault and openbao RPMs via nfpms; no binary archives
- `make rpm` builds a local goreleaser snapshot; `build-rpm.sh`, the nfpm template and `.woodpecker/release.yml` are removed
- `.github/CODEOWNERS` assigns `@IUCLabs/maintainers`

Reviewed-on: #6
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-19 22:26:22 +11:00
unkin-agent 53227f9126 Prepare for public release (#5)
The engine is being published as github.com/IUCLabs/vault-plugin-secrets-gpg, so the module path, docs and examples must stand alone without private infrastructure references.

- move the Go module to github.com/IUCLabs/vault-plugin-secrets-gpg
- replace private identities in examples and tests with example.com
- add MIT LICENSE
- rewrite README: overview, install for Vault and OpenBao, usage, link to terraform-provider-vault-secrets-gpg
- add per-path reference docs under docs/
- correct min_decryption_version description (decryption only)

Reviewed-on: #5
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-17 23:12:37 +11:00
unkin-agent a037ce4e49 ci: authenticate artifactapi rpm upload with a vault token (#4)
artifactapi is about to enforce auth on file uploads (`ARTIFACTAPI_AUTH_UPLOADS`), and the release upload currently PUTs anonymously.

- mint an `artifactapi-writer` OIDC token via Vault k8s auth (role `woodpecker_artifactapi_writer`) using the step SA token
- fail the step if minting fails (`set -o pipefail`)
- send the token as `Authorization: Bearer` via a header file, never in argv or logs

Reviewed-on: #4
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-10-25 23:08:22 +11:00
unkin-agent 6b12d89054 ci: use container-rpmbuilder image (#3)
CI images move off the packer-images monorepo to semver-released container-* repos.

- run RPM build steps on docker-internal/rpmbuilder:0.1.0-alma9

Reviewed-on: #3
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-10-05 21:35:18 +11:00
unkin-agent 9e4d7cdacc ci: move Go steps to gobuilder, enable S3 build cache (#2)
Why: standardize Go CI on the estate gobuilder image and cut cold build/test
time with the shared S3 build cache.

- build/test/pre-commit/release(build) now use gobuilder:0.1.2-alma9
- add GOCACHE_* env + AWS creds (org secrets) to those steps
- cache dir is absolute (/tmp/gocache), metrics enabled
- bump k8s resource requests/limits for compile+cache overhead
- packaging/upload steps (nfpm, no Go) left untouched

Reviewed-on: #2
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-10-03 00:15:28 +10:00
benvin eb35aa7a43 Merge pull request 'Add GPG/OpenPGP secrets engine' (#1) from benvin/gpg-engine into main
ci/woodpecker/tag/release Pipeline was successful
Reviewed-on: #1
v0.1.0
2026-07-15 21:30:26 +10:00
unkinben 71cc398197 Add GPG/OpenPGP secrets engine
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Provide a transit-style Vault/OpenBao secrets engine whose key material is
OpenPGP, so services can sign/verify/encrypt/decrypt with GPG keys that never
leave the barrier — and so tools like pass can encrypt to an exported public
key while delegating decryption back to Vault.

- Add versioned key management (keys/<name> CRUD+list, config, rotate, import)
  with private material seal-wrapped under key/ and per-key locking.
- Add sign/verify (detached OpenPGP) and encrypt/decrypt paths; decrypt
  auto-detects armored vs raw-binary ciphertext (what pass/gpg write).
- Add export/<public-key|private-key>/<name>; public always exportable,
  private only when the key is marked exportable.
- Use ProtonMail go-crypto for OpenPGP; support rsa-2048/3072/4096 and ed25519.
- Clone the sibling plugin's build/packaging/CI: dual-target RPMs
  (vault + openbao plugin dirs), Woodpecker PR/release pipelines, and a
  Vault+OpenBao e2e harness. Unit tests include real gpg and pass interop.
2026-07-15 21:25:41 +10:00
gitadmin a92b5f100f Initial commit 2026-07-15 20:54:24 +10:00