From dfed25bda386a965f8006c9001fab3b8c86497a2 Mon Sep 17 00:00:00 2001 From: dingo Date: Mon, 12 Oct 2026 18:14:49 -0400 Subject: [PATCH] Audit an unfenced cellular helper instead of a fenced lookup postgres-check expected granting find_region_action_record to the runtime role to fail the role audit, but migration 19 grants it and the audit lists it as fenced, so the grant was a no-op and the audit passed. Exercise the internal check_cellular_action_block validator instead, mirroring the existing check_action_block case. Refresh the dev session window. Co-Authored-By: Claude Opus 5.5 --- deploy/kubernetes/region/dev-session-route/listener.yaml | 2 +- tools/ci/postgres-check.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy/kubernetes/region/dev-session-route/listener.yaml b/deploy/kubernetes/region/dev-session-route/listener.yaml index 4e76f0b..dc258c2 100644 --- a/deploy/kubernetes/region/dev-session-route/listener.yaml +++ b/deploy/kubernetes/region/dev-session-route/listener.yaml @@ -12,7 +12,7 @@ spec: env: - {name: REGION_SESSION, value: "dev"} - {name: REGION_SESSION_LISTEN, value: "0.0.0.0:7400"} - - {name: REGION_SESSION_WINDOW, value: "dev-20261012T202838-20650:1791838118"} + - {name: REGION_SESSION_WINDOW, value: "dev-20261012T221431-91960:1791844471"} - {name: REGION_M10_MAX_GRANT_LIFETIME, value: "14400"} ports: # QUIC (ADR-0090): UDP only; nothing listens on TCP 7400. diff --git a/tools/ci/postgres-check.sh b/tools/ci/postgres-check.sh index 43e4271..7e6d9f7 100644 --- a/tools/ci/postgres-check.sh +++ b/tools/ci/postgres-check.sh @@ -188,7 +188,9 @@ expect_audit_failure 'GRANT UPDATE ON evolution.probe_transfers TO evo_runtime_t expect_audit_failure 'GRANT SELECT ON evolution.region_actions TO evo_runtime_test' 'REVOKE SELECT ON evolution.region_actions FROM evo_runtime_test' expect_audit_failure 'GRANT SELECT ON evolution.region_commit_actions TO evo_runtime_test' 'REVOKE SELECT ON evolution.region_commit_actions FROM evo_runtime_test' expect_audit_failure 'GRANT EXECUTE ON FUNCTION evolution.check_action_block(bytea, numeric, numeric) TO evo_runtime_test' 'REVOKE EXECUTE ON FUNCTION evolution.check_action_block(bytea, numeric, numeric) FROM evo_runtime_test' -expect_audit_failure 'GRANT EXECUTE ON FUNCTION evolution.find_region_action_record(evolution.u64,evolution.u64,uuid,evolution.u64,uuid,evolution.u64) TO evo_runtime_test' 'REVOKE EXECUTE ON FUNCTION evolution.find_region_action_record(evolution.u64,evolution.u64,uuid,evolution.u64,uuid,evolution.u64) FROM evo_runtime_test' +# Schema v19/v20: find_region_action_record is a granted fenced lookup; the cellular +# action-block validator behind publication is not. +expect_audit_failure 'GRANT EXECUTE ON FUNCTION evolution.check_cellular_action_block(bytea, numeric, numeric) TO evo_runtime_test' 'REVOKE EXECUTE ON FUNCTION evolution.check_cellular_action_block(bytea, numeric, numeric) FROM evo_runtime_test' # Schema v29 mutation reservations and their publication history are fenced. expect_audit_failure 'GRANT SELECT ON evolution.cellular_mutation_reservations TO evo_runtime_test' 'REVOKE SELECT ON evolution.cellular_mutation_reservations FROM evo_runtime_test' expect_audit_failure 'GRANT SELECT ON evolution.cellular_mutation_action_publications TO evo_runtime_test' 'REVOKE SELECT ON evolution.cellular_mutation_action_publications FROM evo_runtime_test'