kms

package
v1.786.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package kms is the Fiber-facing subsystem that exposes the embedded luxfi/kms secrets-manager as /v1/kms/* on the unified Hanzo Cloud binary (HIP-0106).

It re-declares luxfi/kms's REST surface (cmd/kms is package main with no mountable handler) on cloud's Fiber app, backed by the SAME embedded SecretStore the in-process cloud.KMSClient uses (clients/kmsembed.Client, built in build.go and handed through deps.KMS), and gated by cloud's ONE auth boundary (SanitizeIdentity → c.Org()/c.IsAdmin()) — never a parallel JWT stack.

GET    /v1/kms/health                 — real probe (503 in health-only mode); public
GET    /v1/kms/config                 — SPA runtime config;                    public
GET    /v1/kms/orgs/:org/secrets      — list a path's secret metadata;         JWT, org-scoped
GET    /v1/kms/orgs/:org/secrets/*    — read one secret value;                 JWT, org-scoped
POST   /v1/kms/orgs/:org/secrets      — upsert a secret (sealed);              JWT, org-scoped
DELETE /v1/kms/orgs/:org/secrets/*    — delete a secret;                       JWT, org-scoped

ORG SCOPING — {org} must equal the caller's validated org (c.Org()); a global admin (c.IsAdmin()) may act on any org. The org is folded into the store PATH as /orgs/{org}{subpath}, so one org can never address another org's records. This mirrors clients/paassvc and clients/admin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(app *zip.App, deps cloud.Deps) error

Mount wires /v1/kms/* onto app.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL