feat(judgement,connectors): guard extension contract; every running guard judges with the built-ins and records its name and digest (archie #1986)

This commit is contained in:
sam committed 2026-11-16 05:17:58 +11:00
1 parent 400699cfbb
commit 55077620bb
11 files changed
+1750 -17

No files matched your search

@@ -0,0 +1,12 @@
-- +goose Up
-- A guard extension is an accepted package like a connector or a secret engine.
ALTER TABLE connectors.accepted DROP CONSTRAINT accepted_contract_check;
ALTER TABLE connectors.accepted
ADD CONSTRAINT accepted_contract_check
CHECK (contract IN ('connector', 'secretengine', 'mcp', 'guard'));
-- +goose Down
DELETE FROM connectors.accepted WHERE contract = 'guard';
ALTER TABLE connectors.accepted DROP CONSTRAINT accepted_contract_check;
ALTER TABLE connectors.accepted
ADD CONSTRAINT accepted_contract_check CHECK (contract IN ('connector', 'secretengine', 'mcp'));