fix(security): require canonical evidence timestamp identity - #491
Conversation
|
Warning Review limit reached
Next review available in: 43 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| export function evaluateSecurityEvidence(value) { | ||
| const failures = []; | ||
| const updatedAt = typeof value?.updated_at === "string" ? value.updated_at.trim() : ""; | ||
| const updatedAt = typeof value?.updated_at === "string" ? value.updated_at : ""; |
There was a problem hiding this comment.
🟡 Behavior change missing from CHANGELOG
Dropping .trim() makes whitespace-padded updated_at evidence fail closed, a behavior change. CONTRIBUTING.md requires a ## Unreleased CHANGELOG entry for every behavior change, and none was added for this security-evidence module.
Prompt for agents
CONTRIBUTING.md requires a CHANGELOG.md ## Unreleased entry for every behavior change. This PR changes evaluateSecurityEvidence in scripts/lib/security-checklist.mjs to reject whitespace-padded updated_at values (fail-closed) by removing .trim(). Add a new bullet under the ## Unreleased section of CHANGELOG.md describing that the security-validation evidence boundary now requires an exact canonical updated_at timestamp identity and rejects surrounding whitespace. Match the Korean prose style of the surrounding CHANGELOG entries.
Was this helpful? React with 👍 or 👎 to provide feedback.
RED boundary
evaluateSecurityEvidence()currently trimsupdated_atbefore parsing, so buyer/security evidence with surrounding whitespace can be normalized into an authoritative timestamp instead of preserving exact evidence identity.RED
8ea42e4e658efdd14421d476f7db6d56bae6d751adds a focused regression requiring paddedupdated_atevidence to fail closed while retaining valid ISO date/RFC 3339 acceptance. Keep Draft until the RED is observed, the smallest production repair lands, and unchanged exact-head application/reviewer/Security evidence is terminal-success.