-
Notifications
You must be signed in to change notification settings - Fork 168
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
Upload generated timestamps #336
Upload generated timestamps #336
Conversation
Signed-off-by: Asra Ali <asraa@google.com>
pkg/api/timestamp.go
Outdated
ProposedEntry: createRFC3161FromBytes(resp), | ||
} | ||
|
||
logEntry, code, msg, err := createLogEntry(ctx, entryParams) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vaguely remember something about this being behind a flag like --log
or something, not sure if we care about that anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think looking back on it we probably want all timestamps to be logged (even if only using as a timestamping machine) just for sake of transparency. But I'm open to creating a default upload flag and making it configurable per req.
LGTM. |
Signed-off-by: Asra Ali <asraa@google.com>
/request review from @bobcallaway. would love input on this "middleware chain" (really not sure if this was the best way) |
Signed-off-by: Asra Ali <asraa@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple thoughts, but overall looking pretty good.
Signed-off-by: Asra Ali <asraa@google.com>
Signed-off-by: Asra Ali <asraa@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks to @loosebazooka rekor stores RFC 3161 timestaps, so this PR adds create log entries whenever a timestamp is generated.
The output now looks like
Signed-off-by: Asra Ali asraa@google.com