KEMBAR78
move to per-shard trillian client manager by bobcallaway · Pull Request #2564 · sigstore/rekor · GitHub
Skip to content

Conversation

bobcallaway
Copy link
Member

@bobcallaway bobcallaway commented Aug 7, 2025

this allows users to configure a different trillian gRPC backend per-shard instead of assuming all shards are hosted by the same trillian instance. It is backwards compatible (if only the base level values for trillian-log-server.{address, port, tls, tls_ca_cert} are specified, they are used for all shards unless overridden in the shard config).

include some other minor fixes:

  • initialize using int64 to avoid redundant casting
  • ensure consistency proof endpoint returns 400 for unknown shard

Signed-off-by: Bob Callaway <bcallaway@google.com>
@bobcallaway bobcallaway requested a review from a team as a code owner August 7, 2025 18:54
@codecov
Copy link

codecov bot commented Aug 7, 2025

Codecov Report

❌ Patch coverage is 61.53846% with 100 lines in your changes missing coverage. Please review.
✅ Project coverage is 24.99%. Comparing base (488eb97) to head (cfd3410).
⚠️ Report is 489 commits behind head on main.

Files with missing lines Patch % Lines
pkg/trillianclient/manager.go 60.74% 42 Missing and 11 partials ⚠️
pkg/api/api.go 68.75% 11 Missing and 4 partials ⚠️
pkg/api/entries.go 42.85% 8 Missing and 4 partials ⚠️
pkg/api/tlog.go 47.61% 9 Missing and 2 partials ⚠️
pkg/sharding/ranges.go 70.96% 7 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2564       +/-   ##
===========================================
- Coverage   66.46%   24.99%   -41.47%     
===========================================
  Files          92      190       +98     
  Lines        9258    24500    +15242     
===========================================
- Hits         6153     6123       -30     
- Misses       2359    17595    +15236     
- Partials      746      782       +36     
Flag Coverage Δ
e2etests 46.73% <56.53%> (-0.83%) ⬇️
unittests 15.89% <8.84%> (-31.80%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Bob Callaway <bcallaway@google.com>
Signed-off-by: Bob Callaway <bcallaway@google.com>
Signed-off-by: Bob Callaway <bcallaway@google.com>
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

Looks good overall! As long as we thoroughly test this against both active and inactive shards, seems good.

Signed-off-by: Bob Callaway <bcallaway@google.com>
Signed-off-by: Bob Callaway <bobcallaway@users.noreply.github.com>
@bobcallaway bobcallaway merged commit 97e8521 into sigstore:main Aug 13, 2025
23 of 24 checks passed
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