Skip to content

refactor(auth): audit reads the link a checkpoint signs in one place - #589

Merged
PiquelChips merged 1 commit into
mainfrom
refactor/544-operations-audit-link
Nov 21, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
refactor/544-operations-audit-link

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Part of #544

The audit module built a ChainLink { position: checkpoint.position, hash: checkpoint.head } by hand in five places: the public checkpoints route, the sealer's starting point, a checkpoint's own check, the dashboard's audit page and the verification's anchor. Chain::signed(&Checkpoint), beside extend and point on the Chain trait, now builds it once. Checkpoint and ChainLink both live in the repository crate, so the conversion is a method of the audit module's own trait rather than a From.

  • Tests merged or removed: none.
  • Files edited outside the Operations area: none.
  • Proof that behaviour is unchanged: each replaced literal copied the same two fields, so the change is mechanical. just db test passes in full, 497 of 497, including the 26 audit:: tests that cover sealing, verification, pruning and both checkpoint routes.

Checks: just fmt, cargo clippy with and without --all-features (-D warnings), cargo doc -D warnings, just db test.

Note

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

🤖 Generated with Claude Code

Five places built a ChainLink from a stored checkpoint's position and head
by hand. Chain::signed builds it.
@PiquelChips
PiquelChips marked this pull request as draft November 20, 2026 08:02
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 20, 2026
@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
@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 34 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: 9f19b585-e9c7-4a74-9807-7e76f7ba4243
Commits

Reviewing files that changed from the base of the PR and between 467e813 and dfe10e3.

Files selected for processing: 4

  • apps/auth-service/src/audit/mod.rs
  • apps/auth-service/src/audit/routes.rs
  • apps/auth-service/src/audit/sealer.rs
  • apps/auth-service/src/audit/verify.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 08:28
@PiquelChips
PiquelChips marked this pull request as draft November 21, 2026 14:00
@PiquelChips
PiquelChips marked this pull request as ready for review November 21, 2026 14:34
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit a6ec360 Nov 21, 2026
13 checks passed
@PiquelChips
PiquelChips deleted the refactor/544-operations-audit-link branch November 21, 2026 16:51
@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