Skip to content

Commit e35ae5d

Browse files
committed
fix(plugin-security): name no tracker id in the membership-key log lines
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M4rJHRAZDFqLYQ9dHMH339
1 parent 21cace5 commit e35ae5d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/plugins/plugin-security/src/object-membership-keys.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export function resolverCollisionsOf(ql: any, resolver: IRlsMembershipResolver |
277277
/** The sentence both the boot and the request log for a key both sources claim. */
278278
export function resolverCollisionMessage(key: string, objects: readonly string[]): string {
279279
return (
280-
`[security/#25234] membership key '${key}' is declared by ${objects.map((o) => `'${o}'`).join(', ')} ` +
280+
`[security] membership key '${key}' is declared by ${objects.map((o) => `'${o}'`).join(', ')} ` +
281281
'(`membershipKeys`) AND owned by the registered rls-membership-resolver: one key has one source, so it ' +
282282
'resolves from NEITHER and every policy reading `current_user.' + key + '` matches no rows. Rename one of them.'
283283
);
@@ -372,7 +372,7 @@ async function stageOneKey(
372372
errorOnce(
373373
host,
374374
`twice:${key}`,
375-
`[security/#25234] membership key '${key}' is declared on ${objects.map((o) => `'${o}'`).join(', ')}: one key ` +
375+
`[security] membership key '${key}' is declared on ${objects.map((o) => `'${o}'`).join(', ')}: one key ` +
376376
'name is one request-wide set, so it resolves from none of them and every policy reading it matches no rows.',
377377
{ key, objects },
378378
);
@@ -391,7 +391,7 @@ async function stageOneKey(
391391
bagOf(context)[key] = outcome.values;
392392
} else {
393393
host.logger?.warn?.(
394-
`[security/#25234] membership key '${key}' (declared on '${declaration.object}') did not resolve for this ` +
394+
`[security] membership key '${key}' (declared on '${declaration.object}') did not resolve for this ` +
395395
`request: ${outcome.detail}. Every policy reading it fails closed.`,
396396
{ key, object: declaration.object, reason: outcome.reason, userId: context.userId },
397397
);

0 commit comments

Comments
 (0)