Skip to content

Conversation

@priyawadhwa
Copy link
Contributor

Each shard requires the following info:

  • treeID
  • treeLength
  • publicKey for verification

It's not easy to pass all of this in via CLI flags, so I proposed replacing trillian_log_server.log_id_ranges with trillian_log_server.sharding_config which point to a config file in YAML for inactive shards.

The active shard will still be specified by the current flags.

Summary

Ticket Link

Fixes

Release Note


@priyawadhwa priyawadhwa requested a review from a team as a code owner March 21, 2022 18:22
@priyawadhwa
Copy link
Contributor Author

cc @lkatalin !

@priyawadhwa priyawadhwa changed the title Replace trillian_log_server.log_id_ranges flag with a config file Replace trillian_log_server.log_id_ranges flag with a config file Mar 21, 2022
@priyawadhwa priyawadhwa force-pushed the refactor-config branch 3 times, most recently from a0c7882 to d066377 Compare March 21, 2022 21:54
This will make it easier to specify mulitple shards, along with associated tree IDs and lengths.
Each shard may eventually have its own signer/public key as well, so it'll be easier to pass those in through
a config file rather than through CLI flags.

Signed-off-by: Priya Wadhwa <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Merging #742 (551d40e) into main (caf126d) will increase coverage by 1.28%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##             main     #742      +/-   ##
==========================================
+ Coverage   47.25%   48.54%   +1.28%     
==========================================
  Files          66       61       -5     
  Lines        5743     5482     -261     
==========================================
- Hits         2714     2661      -53     
+ Misses       2740     2534     -206     
+ Partials      289      287       -2     
Impacted Files Coverage Δ
pkg/sharding/ranges.go 44.00% <42.85%> (+4.00%) ⬆️
cmd/rekor-server/app/root.go
cmd/rekor-server/app/serve.go
cmd/rekor-server/app/watch.go
cmd/rekor-server/app/version.go
pkg/types/rekord/v0.0.1/entry.go 51.51% <0.00%> (+0.60%) ⬆️
pkg/types/alpine/v0.0.1/entry.go 62.01% <0.00%> (+0.77%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update caf126d...551d40e. Read the comment docs.

@priyawadhwa priyawadhwa force-pushed the refactor-config branch 3 times, most recently from 40bf8a9 to 3c5717e Compare March 22, 2022 03:06
Signed-off-by: Priya Wadhwa <[email protected]>
@dlorenc
Copy link
Member

dlorenc commented Mar 22, 2022

You did it!!

@dlorenc dlorenc merged commit 5eed136 into sigstore:main Mar 22, 2022
@github-actions github-actions bot added this to the v1.0.0 milestone Mar 22, 2022
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.

3 participants