#greentic #secret #kubernetes #cloud #envelope

bin+lib greentic-secrets-broker

HTTP and NATS broker exposing Greentic secrets to applications

6 releases

Uses new Rust 2024

new 0.5.0 Apr 19, 2026
0.4.26 Mar 20, 2026
0.4.23 Feb 18, 2026

#2491 in Authentication

Download history 7/week @ 2026-03-22 27/week @ 2026-03-29 9/week @ 2026-04-05 11/week @ 2026-04-12

54 downloads per month
Used in greentic-secrets

MIT license

350KB
9K SLoC

greentic-secrets-broker

The Greentic secrets broker exposes the core secrets engine over HTTP and NATS so applications can fetch, rotate, and manage secrets via a central service.

HTTP API

The broker exposes two equivalent HTTP prefixes:

  • /v1/... (existing canonical paths)
  • /admin/v1/... (admin alias paths, same handlers/auth/contracts)

Supported operations (with and without {team} segment):

  • PUT /{prefix}/{env}/{tenant}/{category}/{name}
  • GET /{prefix}/{env}/{tenant}/{category}/{name}
  • DELETE /{prefix}/{env}/{tenant}/{category}/{name}
  • GET /{prefix}/{env}/{tenant}/_list?prefix=<category[/name]>
  • GET /{prefix}/{env}/{tenant}/{category}/{name}/_versions
  • POST /{prefix}/{env}/{tenant}/_rotate/{category}

Team-scoped variants:

  • /{prefix}/{env}/{tenant}/{team}/{category}/{name}
  • /{prefix}/{env}/{tenant}/{team}/_list
  • /{prefix}/{env}/{tenant}/{team}/{category}/{name}/_versions
  • /{prefix}/{env}/{tenant}/{team}/_rotate/{category}

Local E2E Smoke

For a no-cargo test HTTP alias smoke (/admin/v1 vs /v1 parity), run:

./scripts/e2e_broker_admin_api.sh

Details and overrides are documented in:

  • docs/broker_admin_api_e2e.md

Dependencies

~46–70MB
~1M SLoC