mirror of
https://github.com/hanzoai/kms.git
synced 2026-10-17 11:18:16 +00:00
Following the earlier AdminShell+CollectionCRUD rewrite (PR #14) which already deleted backend/, backend-go/, cloudformation/, helm-charts/, nginx/, sink/, wasm/, upgrade-impact/, e2e/, migration/, package.json and switched the frontend to a 184K Hanzo-first build, complete the cleanup by deleting the remaining Infisical-era residue: - docs/ (1.0G Infisical mintlify docs) - .env.example, .env.dev.example, .env.migration.example, .env.test.example (legacy Postgres/Redis envs; no Go code references them) - .eslintignore, .husky/ (TS toolchain leftovers) - CODE_OF_CONDUCT.md, CONTRIBUTING.md, SECURITY.md (Infisical repo boilerplate) Working tree drops from ~1.0G to <600K of content (1.5G total is .git/ which `git gc --aggressive --prune=now` shrinks locally; the remote keeps its history shape — anyone pulling gets the lean checkout). Build + test verification: go build ./... (4 cmd binaries: green) go test ./... -count=1 -short (all packages: ok) Kept: cmd/, pkg/, sdk/, frontend/ (AdminShell), schema/, examples/, root Go (audit.go, auth.go, consensus.go, embed.go, jwks.go, mount.go, versioning.go + tests), Dockerfile, Dockerfile.kms-fetch, Makefile, LLM.md, CLAUDE.md, DEPRECATED.md, SOVEREIGN-KMS-ARCHITECTURE.md, TFHE-KMS-ARCHITECTURE.md, LICENSE, README.md, VERSION, .github/ (8 Hanzo workflows: build, build-kms-fetch, check-fe-ts-and-lint, ci, pr-preview, release, validate-pr-title, workflow-sanity).
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
# Hanzo KMS — ZAP Schema
|
|
#
|
|
# Server: kms (Go) at kms.hanzo.svc.cluster.local or via the unified
|
|
# cloud binary at api.hanzo.ai/v1/kms.
|
|
#
|
|
# This schema is the minimum ZAP-typed public surface needed for the
|
|
# HIP-0106 Mount() contract. The full HTTP surface is documented in
|
|
# pkg/kms/CLAUDE.md and remains the source of truth for /v1/kms/*
|
|
# routes. Wider ZAP-typed handlers (PutSecret, Sign, RotateKeys, …)
|
|
# will land as separate schema PRs.
|
|
#
|
|
# Code generation:
|
|
# zapc generate schema/kms.zap --lang go --out ./gen/zap/
|
|
# zapc generate schema/kms.zap --lang ts --out ./gen/zap/
|
|
|
|
# ── Health ────────────────────────────────────────────────────────────────
|
|
|
|
struct HealthRequest
|
|
# No fields. Probe is a side-effect-free GET.
|
|
|
|
struct HealthResponse
|
|
status Text
|
|
service Text
|
|
version Text
|
|
|
|
# ── Service interface ────────────────────────────────────────────────────
|
|
|
|
interface KMSService
|
|
# Liveness probe. Always answers ok unless the process is unreachable.
|
|
# Mounted at GET /v1/kms/health by Mount(app, deps).
|
|
health (request HealthRequest) -> (response HealthResponse)
|