Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a cli option to get a witness' checkpoints #202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregoire-mullvad
Copy link

Add a new -w option that takes a witness name and returns the latest checkpoints signed by this witness
This is useful for witness admin (or ArmoredWitness custodians) to check that their witness is working.

Usage:

$ go run ./cmd/client -w ArmoredWitness-dry-sunset
Fetching checkpoints from distributor...
╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾╾
Log "transparency.dev-aw-ftlog-ci-3" (0b963db2162e516836b4afbf8ff75aca120af717d3b93a332464cd5af4146e99)
✅ Got checkpoint:

transparency.dev/armored-witness/firmware_transparency/ci/3
59
kOFMkeamIdrYFLx5zbWFhflak6dlEEDOU++fxYEZMBw=

— transparency.dev-aw-ftlog-ci-3 P2iVIt3Jsaha3E2i0MHdKZ6fgYJTgXO86nUsxKPVq6uTwRSclTSh/ELnDGbNL+XDyD3EkWIdL2AGGNmbN7IN2rB/7gE=
— ArmoredWitness-dry-sunset uS6j90LXi2YAAAAAyvMVEmnYJJ8c4ohhwW9YeG6yXgnGEmC8AB0K7LDFweW2hXQloeUGerCO86ei+NKR7/DYXkxQFh1J6pXr0oXDAQ==

Witness timestamps:
— ArmoredWitness-dry-sunset: 1 month ago (2024-07-08T14:10:42+02:00)
[...]

@gregoire-mullvad gregoire-mullvad changed the title Add a cli option to get a witness checkpoints Add a cli option to get a witness' checkpoints Aug 13, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@b51e407). Learn more about missing BASE report.

Files Patch % Lines
cmd/client/client.go 0.00% 12 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #202   +/-   ##
=======================================
  Coverage        ?   30.71%           
=======================================
  Files           ?        8           
  Lines           ?      534           
  Branches        ?        0           
=======================================
  Hits            ?      164           
  Misses          ?      341           
  Partials        ?       29           

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

Copy link
Contributor

@AlCutter AlCutter left a comment

Choose a reason for hiding this comment

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

Thanks!

Add a new -w option that takes a witness name and returns the latest
checkpoints signed by this witness
This is useful for witness admin (or ArmoredWitness custodians) to check
that their witness is working.

Usage:

    go run ./cmd/client -w ArmoredWitness-dry-sunset
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