fix(edp): resolve managed reader source scope
This commit is contained in:
@@ -96,10 +96,23 @@ async function assertSourceBoundary() {
|
||||
'managedReaderBindingProvisioning: config.managedProvisionerApiEnabled',
|
||||
'managedReaderBindingLifetime: config.managedProvisionerApiEnabled ? "explicit-revoke" : "disabled"',
|
||||
'managedReaderBindings: "digest+idempotent-generation+explicit-revoke"',
|
||||
'readerSourceScope: "writer-resolved+fail-closed-ambiguity"',
|
||||
'source_connection_id as "sourceConnectionId"',
|
||||
'where id = $1 and binding_key is null and active = true',
|
||||
]) {
|
||||
if (!server.includes(marker)) throw new Error(`managed_reader_boundary_missing:${marker}`);
|
||||
}
|
||||
const readerSourceScope = await readFile(
|
||||
resolve(platformRoot, "services/external-data-plane/src/reader-source-scope.mjs"),
|
||||
"utf8",
|
||||
);
|
||||
for (const marker of [
|
||||
"managed_reader_source_scope_not_found",
|
||||
"managed_reader_source_scope_ambiguous",
|
||||
"external_data_plane_writer_bindings",
|
||||
]) {
|
||||
if (!readerSourceScope.includes(marker)) throw new Error(`reader_source_scope_boundary_missing:${marker}`);
|
||||
}
|
||||
}
|
||||
|
||||
function canonicalTarScript() {
|
||||
|
||||
Reference in New Issue
Block a user