Merge pull request #497: idempotent 022 canonical facts
masterplan-lock / check (push) Successful in 4s
CI (SIAX Cloud) / Component conformance (blocking) (push) Successful in 10s
CI (SIAX Cloud) / security (push) Successful in 19s
Security Scan (SIAX Cloud) / security (push) Successful in 19s
Release chain (G17, ADR-W16-003) / Build, push, G17 (SBOM/scan/attest/verify/evidence) (push) Successful in 1m11s
Deploy to Coolify / deploy (push) Successful in 1m14s
CI (SIAX Cloud) / sonar (push) Successful in 1m15s
CI (SIAX Cloud) / quality (push) Successful in 10m1s
CI (SIAX Cloud) / integration (push) Successful in 10m5s
masterplan-lock / check (push) Successful in 4s
CI (SIAX Cloud) / Component conformance (blocking) (push) Successful in 10s
CI (SIAX Cloud) / security (push) Successful in 19s
Security Scan (SIAX Cloud) / security (push) Successful in 19s
Release chain (G17, ADR-W16-003) / Build, push, G17 (SBOM/scan/attest/verify/evidence) (push) Successful in 1m11s
Deploy to Coolify / deploy (push) Successful in 1m14s
CI (SIAX Cloud) / sonar (push) Successful in 1m15s
CI (SIAX Cloud) / quality (push) Successful in 10m1s
CI (SIAX Cloud) / integration (push) Successful in 10m5s
Retry-safe RLS policies (DROP POLICY IF EXISTS) + header fix.
This commit was merged in pull request #497.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
-- 020_canonical_facts.sql — 0pt canonical structured observations (X-800 / Scrape).
|
-- 022_canonical_facts.sql — 0pt canonical structured observations (X-800 / Scrape).
|
||||||
--
|
--
|
||||||
-- 0pt owns normalized OBSERVED facts (what a source said, when, from which
|
-- 0pt owns normalized OBSERVED facts (what a source said, when, from which
|
||||||
-- artifact). L0RE owns epistemic propositions/assertions and projections; it
|
-- artifact). L0RE owns epistemic propositions/assertions and projections; it
|
||||||
@@ -82,18 +82,21 @@ CREATE INDEX IF NOT EXISTS idx_canonical_relations_object
|
|||||||
|
|
||||||
ALTER TABLE opt_canonical_entities ENABLE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_entities ENABLE ROW LEVEL SECURITY;
|
||||||
ALTER TABLE opt_canonical_entities FORCE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_entities FORCE ROW LEVEL SECURITY;
|
||||||
|
DROP POLICY IF EXISTS opt_canonical_entities_tenant ON opt_canonical_entities;
|
||||||
CREATE POLICY opt_canonical_entities_tenant ON opt_canonical_entities
|
CREATE POLICY opt_canonical_entities_tenant ON opt_canonical_entities
|
||||||
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
||||||
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
||||||
|
|
||||||
ALTER TABLE opt_canonical_facts ENABLE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_facts ENABLE ROW LEVEL SECURITY;
|
||||||
ALTER TABLE opt_canonical_facts FORCE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_facts FORCE ROW LEVEL SECURITY;
|
||||||
|
DROP POLICY IF EXISTS opt_canonical_facts_tenant ON opt_canonical_facts;
|
||||||
CREATE POLICY opt_canonical_facts_tenant ON opt_canonical_facts
|
CREATE POLICY opt_canonical_facts_tenant ON opt_canonical_facts
|
||||||
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
||||||
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
||||||
|
|
||||||
ALTER TABLE opt_canonical_relations ENABLE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_relations ENABLE ROW LEVEL SECURITY;
|
||||||
ALTER TABLE opt_canonical_relations FORCE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_relations FORCE ROW LEVEL SECURITY;
|
||||||
|
DROP POLICY IF EXISTS opt_canonical_relations_tenant ON opt_canonical_relations;
|
||||||
CREATE POLICY opt_canonical_relations_tenant ON opt_canonical_relations
|
CREATE POLICY opt_canonical_relations_tenant ON opt_canonical_relations
|
||||||
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
||||||
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
||||||
|
|||||||
Reference in New Issue
Block a user