mirror of
https://github.com/Such-Software/adaptive-multi-protocol-gateway.git
synced 2026-11-29 11:24:18 +01:00
Require approved artifact digests for apply
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
|
||||
AMPG keeps managed daemon state under `gateway.state_dir`. The state contract describes
|
||||
which files AMPG owns, which files daemons or adapters write, which paths may contain
|
||||
private keys, and which public address files `addresses capture` reads.
|
||||
private keys, which artifact approvals AMPG records, and which public address files
|
||||
`addresses capture` reads.
|
||||
|
||||
## Command
|
||||
|
||||
@@ -22,6 +23,9 @@ Each `AMPG_STATE` row includes:
|
||||
- `sensitive`: whether the path may contain private identity material.
|
||||
- `path`: resolved path under `gateway.state_dir` unless an adapter documents otherwise.
|
||||
|
||||
AMPG also stores `approvals.json` under `gateway.state_dir`. It records reviewed
|
||||
generated-artifact digests and contains no private daemon identity keys.
|
||||
|
||||
## Address Capture
|
||||
|
||||
`addresses capture` uses the same contract. For each enabled protocol it checks explicit
|
||||
@@ -39,8 +43,8 @@ Current managed defaults:
|
||||
|
||||
AMPG must never delete sensitive contract paths without an explicit destructive command.
|
||||
`apply --dry-run --write-artifacts` prints `AMPG_APPLY_STATE_COPY` rows that show which
|
||||
reviewed artifacts would be copied into managed state and `AMPG_APPLY_SUPERVISOR` rows
|
||||
approved artifacts would be copied into managed state and `AMPG_APPLY_SUPERVISOR` rows
|
||||
for the services that would be registered or started. The accompanying
|
||||
`AMPG_APPLY_PREFLIGHT` verdict includes those rows so live apply can refuse mutation when
|
||||
state or supervisor inputs still need review. Live apply should perform reviewed copies,
|
||||
state or supervisor inputs still need review. Live apply should perform approved copies,
|
||||
start daemons, capture public addresses, and then run published health checks.
|
||||
|
||||
Reference in New Issue
Block a user