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:
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'));
|
||||
Reference in new issue
Block a user