Skip to content

changeset share-link-enabled-at-redemption.md says the refusal "will burst the log once" — the warn is per-hit and unlatched, so it continues with traffic #14668

Description

@huangyiirene

Split from #14637 (item 2) by the triage seat so it is not held behind that card's ruling. #14637 keeps the substantive half — the route probe's existence oracle — which needs a human decision; this half is a one-sentence correction with no code impact and can land today.

The defect

.changeset/share-link-enabled-at-redemption.md, final sentence of the retroactive-deploy paragraph, at origin/main 2aa8456:

The refusal logs one warn line per refused hit and is not latched, so a retroactive deploy with many live links on switched-off objects will burst the log once.

The first half of that sentence is correct and the second half contradicts it. Per-hit and unlatched is precisely the property that means the volume does not occur once — it continues for as long as traffic reaches those links.

Measured

packages/plugins/plugin-sharing/src/share-link-service.ts, the if (!policy.enabled) arm: this.logger?.warn?.(...) is called on every refused redemption, with no latch, no dedupe and no sampling. Nothing in the arm records that it has fired before.

The code's own comment above it (same file, immediately preceding) states the design deliberately: the readable reason "is written to the server-side log through the GUARANTEED warn member — the caller was answered, so this is not a degradation and not an error". Per-hit is intended behaviour. Only the changeset's summary of it is wrong.

Why it is worth a card rather than a shrug

Release notes are compiled from changesets, so this sentence is an input to a published document, and it is the sentence an operator planning a retroactive deploy would budget against. "Burst once" and "one line per hit until you act" imply different log-retention decisions.

Suggested wording (from #14637, adopt or improve)

…so a retroactive deploy with many live links on switched-off objects will burst the log at deploy and keep logging one line per hit until the block is enabled or the links are revoked.

Scope

⛔ Changeset prose only. No code change — the per-hit behaviour is correct and ruled; do not "fix" it by latching the warn.

⛔ Do not touch content/docs/releases/** here. The changeset is the sanctioned input channel; release notes are compiled centrally at release time.

Re-check: git show origin/main:.changeset/share-link-enabled-at-redemption.md | sed -n '60,68p'

Refs: #14637 (parent finding, item 2) · #14033 · PR #14580

Generated by Claude Code

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions