feat: implement license platform business flows and delivery tooling
Add admin and customer interfaces, orders, signed activation and leases, protected package delivery, keyring verification, migrations, security controls, tests and deployment documentation. Co-Authored-By: Craft Agent <agents-noreply@craft.do>
This commit is contained in:
11
docs/signing-key-operations.md
Normal file
11
docs/signing-key-operations.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Signing key operations (development boundary)
|
||||
|
||||
The v6 smoke launcher generated a fresh P-256 private key in memory on every process start. This is test-only behavior: every restart changes the public key, so certificates and lease signatures issued before restart must not be treated as verifiable across the restart.
|
||||
|
||||
For persistent development and production, inject `LICENSE_SIGNING_PRIVATE_KEY_PEM` from a secret manager or protected process environment. Do not put private keys in Git, database rows, browser storage, `.env` files, logs, crash dumps, or HTTP responses. Restart acceptance requires the same protected key to be injected and `/api/v1/activation/public-key` to remain stable.
|
||||
|
||||
`LICENSE_SIGNING_PRIVATE_KEY_FILE` now supports an absolute protected PEM file path; configuring both file and PEM sources is rejected. The file must be readable, nonempty and at most 16 KiB. Host ACL enforcement, secret-manager provisioning and startup cryptographic format validation are not provided by this config loader; signing handlers still enforce P-256 format. File content is read once at startup, not hot-reloaded. Compose mounts this file read-only. The existing 18081 process has not been restarted or rotated.
|
||||
|
||||
`key_id`, public-key sets and overlapping verification windows are NOT implemented. The current public-key response contains a single public key, and certificate/lease payloads do not carry a key identifier. No persistent key was created or provisioned during this slice.
|
||||
|
||||
Planned rotation contract: add an immutable `key_id` to activation certificates and lease payloads, publish a public-key set by `key_id`, and retain old public keys for the certificate/lease verification window. Rotation and revocation ownership remain pending T01/T02 approval; no automatic key replacement is implemented by this slice.
|
||||
Reference in New Issue
Block a user