Skip to content

refactor(rekor)!: remove built-in log URLs and fix stale docs - #240

Merged
baszalmstra merged 1 commit into
mainfrom
refactor/rekor-no-default-urls
Sep 24, 2026
Merged

baszalmstra merged 1 commit into
mainfrom
refactor/rekor-no-default-urls

Conversation

@wolfv

@wolfv wolfv commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

1.0 API work, PR R-b in the plan.

sigstore-sign's SigningConfig::default() still hardcodes the public-good Rekor URL. It already hardcodes Fulcio and the TSA too, and removing all of them is part of the signing-context PR (S-a). #[non_exhaustive] on RekorApiVersion is left for R-a, to avoid conflicting with #235.

Validation

  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo test -p sigstore-rekor -p sigstore-sign --all-features (including doctests)
  • cargo check -p sigstore-rekor --no-default-features

Signed-off-by: Wolf Vollprecht w.vollprecht@gmail.com

🤖 Generated with Claude Code

Follow-up to the #176 review: callers should see the log URL they use.
`RekorApiVersion::default_url()` always pointed at production, which
caused the #227 redirect, and the v2 URL names a shard that will be
retired.

Remove `RekorApiVersion::default_url` and `default_staging_url`,
`RekorClient::public` and `staging`, and `get_public_log_info`. The
examples now pass the URL explicitly.

Also fix the docs flagged in the #193 review: `RekorApiVersion` no
longer embeds dated URLs, `LogEntry::integrated_time` no longer refers to
a removed V2 conversion, `to_bundle_entry` states which bounds it checks,
and `RekorInclusionProof` no longer claims to hold raw strings.

BREAKING CHANGE: `RekorApiVersion::default_url`,
`RekorApiVersion::default_staging_url`, `RekorClient::public`,
`RekorClient::staging` and `get_public_log_info` are removed; pass the
log URL (for example from the instance's signing config) to
`RekorClient::new`.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Wolf Vollprecht <w.vollprecht@gmail.com>
@baszalmstra
baszalmstra merged commit 2087b21 into main Sep 24, 2026
19 checks passed
@baszalmstra
baszalmstra deleted the refactor/rekor-no-default-urls branch September 24, 2026 14:15
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.

2 participants