Skip to content

fix(security): reject future-dated validation evidence - #445

Merged
seonghobae merged 2 commits into
mainfrom
fix/security-evidence-future-time
Aug 21, 2026
Merged

fix(security): reject future-dated validation evidence#445
seonghobae merged 2 commits into
mainfrom
fix/security-evidence-future-time

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Scope

Fail closed when security validation evidence claims an updated_at timestamp later than the current observation time. The existing diagnostic already says future timestamps are invalid, but production allowed a 24-hour future grace window.

Test-first repair

  • RED 890a9837e562bbcaca88b8406e17786f595d170d: realistic security evidence one hour in the future must fail with updated_at cannot be in the future.
  • Candidate 8f513d049cd92f2f5022b3d085d8cb02e265b821: remove the unintended 24-hour future allowance; any parsed future timestamp is rejected.
  • Changed paths are limited to scripts/lib/security-checklist.mjs and test/security-checklist.test.ts.

Existing ISO/impossible-calendar validation, owner/reference checks, checklist behavior, and security gate thresholds are unchanged.

Merge boundary

Draft until application CI, reviewer-ci, and eligible central Security Scan are terminal-success on the unchanged exact head, review/thread state is clean, protected main remains the live base, and central Security Scan authority is freshly revalidated.

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 21 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 @coderabbitai review or push new commits to the PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9778e082-18e3-40b9-a5b6-8d110d7f2ee9

📥 Commits

Reviewing files that changed from the base of the PR and between f44322c and 8f513d0.

📒 Files selected for processing (2)
  • scripts/lib/security-checklist.mjs
  • test/security-checklist.test.ts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@seonghobae
seonghobae marked this pull request as ready for review August 21, 2026 18:38
@seonghobae
seonghobae merged commit e7b0714 into main Aug 21, 2026
16 of 17 checks passed
@seonghobae
seonghobae deleted the fix/security-evidence-future-time branch August 21, 2026 18:38

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Open in Devin Review

Comment on lines +71 to 72
} else if (updatedAtMs > Date.now()) {
failures.push("updated_at cannot be in the future");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Info: Date-only timestamps ahead of UTC now fail closed

A date-only updated_at parses to midnight UTC (security-checklist.mjs:43). For an authoring timezone ahead of UTC, that instant can be later than Date.now(), so removing the 24h grace at security-checklist.mjs:71 now rejects it. This matches the PR's stated fail-closed intent.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant