Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
rget: print out sum of file
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Philips committed Jul 22, 2019
1 parent 1a2ca16 commit 3cb93c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ x Have github subcommands take a URL not flags for project, org, tag
x Take github credentials via environment variables
x Submit automatically after github publish happens - printed out submit instead
x Print out an rget command after submission for a user to test
- Add prometheus metrics exporting for GET requests and submission requests and hook up to stackdriver
- Introduce rget check to check a URL works and when the certificate was issued, etc
- Make the rget root command output more useful output
- SHA256SUMS file checked
x SHA256SUMS file checked
x sum of the file
- Date of the certificate issuance
- SCT checks succeeded and the logs used
- Logs checked and succeeded
x SCT checks succeeded and the logs used
x Logs checked and succeeded
- Any failed checks
- File progress if tty
- Add prometheus metrics exporting for GET requests and submission requests and hook up to stackdriver
- Remove panic() from the entire codebase
- Submit returns URL for domain
- File issues for creating a Trillian frontend
Expand Down
2 changes: 2 additions & 0 deletions rget/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ func get(cmd *cobra.Command, args []string) {
return mmErr
}

fmt.Printf("validated file sum: %x\n", fileSum)

req.SetChecksum(sha256.New(), fileSum, true)

return
Expand Down

0 comments on commit 3cb93c4

Please sign in to comment.