Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1015 Bytes

File metadata and controls

47 lines (36 loc) · 1015 Bytes

OpenApprove v0.1.0

OpenApprove v0.1.0 is the canonical authority mint for deterministic execution under the OpenExec protocol. This implementation is centralized and API-key gated. Federation is not supported in this version.

Endpoints

  • GET /health — Returns {"status": "ok"}
  • GET /version — Returns service name, version, issuer, and public key
  • POST /mint-approval — Mints a signed approval artifact

Mint Request Body

{
  "tenant_id": "tenant_1",
  "action": "echo",
  "payload_hash": "abc123",
  "nonce": "unique_nonce_1",
  "ttl_seconds": 60
}

Environment Variables

Variable Required Default
OPENAPPROVE_PRIVATE_KEY_BASE64 Yes
OPENAPPROVE_KEY_ID No ed25519-key-001
OPENAPPROVE_ISSUER No openapprove
OPENAPPROVE_MAX_TTL_SECONDS No 600

Dependencies

  • fastapi
  • uvicorn
  • pydantic
  • pynacl
  • python-dotenv
  • sqlite3 (stdlib)

Run

uvicorn app.main:app --host 0.0.0.0 --port 5000