From 99f623e116870b74b57ec5aace56bca0c8b3a1dc Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 11 Oct 2026 20:48:03 -0400 Subject: [PATCH] Audit cellular profile migration grants --- docs/engineering/VALIDATION.md | 2 ++ migrations/apply.sql | 2 ++ tests/region_migration_tests.cpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/engineering/VALIDATION.md b/docs/engineering/VALIDATION.md index f42f3a6..f54c1b9 100644 --- a/docs/engineering/VALIDATION.md +++ b/docs/engineering/VALIDATION.md @@ -7024,3 +7024,5 @@ CI run #310 passed client, deploy, ECS and network. The main checks stopped at t CI run #311 passed client, deploy, ECS, network and TSan, and compiled the PostgreSQL test target. The PostgreSQL analysis build then still reported 17 unchecked accesses: clang-tidy does not treat the `CHECK(...)` macro or `optional::value()` by itself as proof of engagement. The test now uses a helper with an explicit `has_value()` guard before dereferencing those optionals. This version awaits CI validation; PostgreSQL tools and Harbor publication did not start. CI run #312 passed client, deploy, ECS and network, but the PostgreSQL-enabled test build found that the new `checked_value` helper only accepted `std::optional`, while the SHA-256 helper returns `std::expected`. The test now provides the same explicit engagement check for `std::expected`; run #312 did not reach PostgreSQL tools or server-image/Harbor publication. + +CI run #313 passed client, deploy, ECS, network and TSan; both PostgreSQL compilation configurations completed. The PostgreSQL integration run then failed its final runtime-role audit because the cellular profile-migration publisher and lookup are explicitly granted to the runtime role but were missing from the audit's fenced-function set. Those two lease-fenced functions are now listed, and the online migration test now expects the current schema version 29 after upgrading its v7 fixture. PostgreSQL tools and Harbor publication did not start. diff --git a/migrations/apply.sql b/migrations/apply.sql index 2a7cedd..bff7ed8 100644 --- a/migrations/apply.sql +++ b/migrations/apply.sql @@ -530,6 +530,8 @@ BEGIN ('evolution.resolve_cellular_region_commit(evolution.u64,evolution.u64,uuid,bytea,bytea,bytea,bytea)'::regprocedure::oid), ('evolution.load_cellular_publication_actions(evolution.u64,evolution.u64,uuid,evolution.u64,uuid)'::regprocedure::oid), ('evolution.load_cellular_publication_births(evolution.u64,evolution.u64,uuid,evolution.u64,uuid)'::regprocedure::oid), + ('evolution.publish_cellular_profile_migration(bytea)'::regprocedure::oid), + ('evolution.load_cellular_profile_migration(evolution.u64,evolution.u64,uuid,evolution.u64,uuid)'::regprocedure::oid), ('evolution.open_probe(evolution.u64,evolution.u64,uuid,evolution.u64,uuid,bigint,bigint,bigint,evolution.u64)'::regprocedure::oid), ('evolution.save_probe(evolution.u64,evolution.u64,uuid,evolution.u64,uuid,evolution.u64,bigint,bigint,bigint)'::regprocedure::oid), ('evolution.prepare_probe_transfer(evolution.u64,evolution.u64,uuid,evolution.u64,uuid,evolution.u64,uuid,evolution.u64,bigint,bigint,bigint)'::regprocedure::oid), diff --git a/tests/region_migration_tests.cpp b/tests/region_migration_tests.cpp index c80d330..0977cbe 100644 --- a/tests/region_migration_tests.cpp +++ b/tests/region_migration_tests.cpp @@ -208,7 +208,7 @@ void upgrade_across_migration_and_barrier() { " EVO_PG_RUNTIME_ROLE=evo_runtime_test bash \"$EVO_SOURCE_ROOT/" "tools/migrate-postgres.sh\" > /dev/null") == 0); CHECK(history(*owner_db) == - "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26"); + "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29"); CHECK(scalar(*owner_db, "SELECT (to_regprocedure('evolution.primitive_life_owner(" "evolution.u64,evolution.u64,uuid,evolution.u64,uuid)') IS NOT NULL)::text") ==