Skip to content

chore(release): promote v1.1.1 - #462

Merged
scttbnsn merged 8 commits into
mainfrom
dev/v1.0
Nov 3, 2026
Merged

scttbnsn merged 8 commits into
mainfrom
dev/v1.0

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Promotes v1.1.1 to main: #457, #440, #458, #460, #459 and #461. Headline: hardening from a security review of v3 signatures. Controllers pin v3 per agent, nonces expire on wall time, deleting the lock file at runtime keeps locks, and skew and replay are checked after the signature verifies. Also the website 404 fix (verified on a preview deploy), a lock fast path, a docker login argument fix, npm updates and the Docker Hub S3 egress hosts.

Each source PR had an orchestrator review and green checks. Threat model: a network attacker replaying or downgrading captured signed requests, including with TLS terminated in between; unauthenticated remote clients; and a public static site with per-route CSP.

Changelog

  • 🔒 Security: Verify signatures before checking timestamp skew or nonce replay. Invalid signatures return ErrBadSignature without exposing those check results.
  • 🔒 Security: Evict expired nonces even when unexpired nonces come first. Require both wall-clock and elapsed-time expiry.
  • 🔒 Security: Preserve in-memory signature locks if the lock file or its directory is deleted. Skip the file-lock path when a key is already locked and the state is clean.
  • 🔒 Security: Document controller guidance to pin v3 per agent and avoid fallback to v2 or legacy signatures.
  • 🐛 Fixed: Route website filesystem misses to the custom 404 page with its CSP and common headers.
  • 🐛 Fixed: Add -- before the Docker registry argument and reject registry values that begin with -.
  • 🔧 Changed: Allow Docker image S3 endpoints in hardened workflow egress lists.
  • 🔧 Changed: Update release references, examples, and site configuration to v1.1.1.
  • 🔧 Changed: Update npm dependencies and use standard Go map and slice helpers.

Concerns

  • Current review findings were not supplied.
  • Test results and completion status were not supplied.

scttbnsn and others added 5 commits November 3, 2026 07:17
* fix(website): serve the 404 page on filesystem misses and answer /404 with 404

* docs: state when v2 and legacy signatures are still accepted
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* perf(auth): skip the file lock when the key is already locked

* fix(docker): refuse a registry server that looks like a flag

* refactor: use stdlib helpers in edge and metrics
Docker Hub now redirects image blob downloads to docker-images-prod.s3.dualstack.<region>.amazonaws.com. harden-runner blocked it, so Integration (real dockerd) failed pre-pulling alpine on PR #459 twice. Adds the us-east-1 and us-west-2 hosts wherever registry-1.docker.io is allowed.
* fix(auth): expire nonces on the same clock as the timestamp window

Nonce eviction compared monotonic readings while the timestamp window uses wall time, so a backward clock step could evict a nonce whose signature was still valid. Record and evict on wall time.

* fix(auth): keep signature locks when the lock file disappears

A deleted lock file cleared every in-memory lock. Keep them, log at error, and re-persist through the dirty retry.

* fix(auth): check timestamp and replay only after the signature verifies

Skew and replay were decided before ed25519.Verify, so a caller without the key could probe them. Move both after verification; an unparseable timestamp now reads as invalid-signature. Policy rejections still don't burn nonces.

* docs: pin v3 per agent and correct signature details
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The release references and deployment examples now identify v1.1.1. Authentication verification defers timestamp-skew and replay checks until after signature verification, nonce expiry uses wall-clock and elapsed-time checks, and missing signature-lock files no longer clear in-memory locks. The changes also update Docker registry login argument handling, website 404 routing, hardened-runner endpoint allowlists, standard-library usage, and development dependencies.

Possibly related PRs

  • CodesWhat/portwing#459: Changes the same authentication path, including deferred skew and replay checks, lock-file deletion handling, and nonce expiry.
  • CodesWhat/portwing#455: Changes signature-lock writes and v3 state handling, which overlap with this PR's signature-lock changes.
  • CodesWhat/portwing#460: Adds the same Docker image S3 endpoints to Harden Runner allowlists.

Suggested labels: second-opinion

Change: Bug fix

Merge Risk: Minimal · up to 325ba

No actionable merge-blocking risk remains; the identified scan affects latency only when the nonce cache is already full.

Pre-merge checks: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 8aa810c and 325ba59.

Files selected for processing: 2
  • internal/auth/nonce.go
  • internal/auth/nonce_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

* chore(release): prepare v1.1.1

* docs(changelog): describe the nonce clock and lock fast path accurately
@scttbnsn

scttbnsn commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai coderabbitai Bot added the second-opinion Summon Greptile for a second-opinion review label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@greptileai Review exact head 1950302800c1e08f53df482608091e1890797122. Review for correctness, security issues, and cross-file regressions.

@coderabbitai coderabbitai 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.

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread internal/auth/nonce.go Resolved
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

* fix(auth): evict nonces only after both clocks pass the window

* docs(changelog): describe nonce expiry on both clocks
@scttbnsn

scttbnsn commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai 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.

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread internal/auth/nonce.go Resolved
@scttbnsn

scttbnsn commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Promotion of dev/v1.0 for v1.1.1. CodeRabbit reviewed three passes (1950302, 8aa810c, 325ba59); pass 1 and 2 findings fixed in #463 and #464, pass 3 had no actionable comments.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Promotion of dev/v1.0 for v1.1.1. CodeRabbit reviewed three passes (1950302, 8aa810c, 325ba59); pass 1 and 2 findings fixed in #463 and #464, pass 3 had no actionable comments.

@scttbnsn
scttbnsn merged commit c278023 into main Nov 3, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

second-opinion Summon Greptile for a second-opinion review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants