Skip to content

refactor(auth): signing key rotation stops for shutdown through the shared helper - #640

Merged
PiquelChips merged 1 commit into
mainfrom
refactor/544-signin-key-shutdown
Nov 21, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
refactor/544-signin-key-shutdown

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Part of #544

Stacked on #579 (refactor/544-operations-shutdown), which adds Shutdown::unless; retarget to main once it merges.

KeyStore::run waited for its next reload with the same tokio::select! against shutdown that #579 replaces in the jobs and delivery workers. It now uses Shutdown::unless too, so every loop in auth stops for shutdown the same way.

The helper is biased toward shutdown, as the block it replaces was, so a pending shutdown still wins over a due tick.

  • Tests merged or removed: none.
  • Files outside the sign-in area: none.
  • Unchanged: the replaced block and the helper's body are the same select!; cargo clippy -p auth-service --all-targets --all-features -D warnings passes.

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)

@PiquelChips PiquelChips added apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI refactor No behviour changes labels Nov 20, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7a8c887f-a6eb-46b4-90aa-529b76475bd0
Commits

Reviewing files that changed from the base of the PR and between 0650b98 and fb292cd.

Files selected for processing: 1

  • apps/auth-service/src/keys/mod.rs
  • 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

@PiquelChips
PiquelChips marked this pull request as ready for review November 20, 2026 10:27
@PiquelChips
PiquelChips marked this pull request as draft November 21, 2026 14:01
@PiquelChips
PiquelChips marked this pull request as ready for review November 21, 2026 15:00
Base automatically changed from refactor/544-operations-shutdown to main November 21, 2026 17:38
@PiquelChips
PiquelChips force-pushed the refactor/544-signin-key-shutdown branch from b85b4f6 to fb292cd Compare November 21, 2026 17:52
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 9dc56d8 Nov 21, 2026
14 checks passed
@PiquelChips
PiquelChips deleted the refactor/544-signin-key-shutdown branch November 21, 2026 18:34
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in sourceorigin.dev Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI refactor No behviour changes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant