-
Notifications
You must be signed in to change notification settings - Fork 142
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
Move CTL logging logic over to CTL package #353
Conversation
I think this is a worthwhile refactor. Main observation so far is only a nit pick. We have the actual CTL POST request under |
😆 Yeah I was wringing my hands on how to write the commit messages because of that too. The |
Signed-off-by: Nathan Smith <nathan@nfsmith.ca>
Signed-off-by: Nathan Smith <nathan@nfsmith.ca>
I just wanted to note that we don't really have test coverage on this change with the KinD tests fulcio/.github/workflows/verify-k8s.yml Line 198 in 230f809
|
Ahhh but it is definitely my fault that I got lazy and didn't unit test this. That is easy so I'm going to do that! @lukehinds Did you want to me to change the names around or are you ok with them? |
Maybe |
Alrighty! Clarified the naming a bit and adding some docs to clarify the that logging means writing helpful stuff to console in this case. Also added some unit testing for the logger! |
Removes CTL related logging from the API handler and pushes it over to the CTL client. Signed-off-by: Nathan Smith <nathan@nfsmith.ca>
Summary
In an attempt to de-cluster the all powerful
api.(*api).signingCert
method, I've moved to logging logic for the CT log client over into the CT log package. This is achieved byctl.WithLogging(inner ctl.Client, logger *Logger) ctl.Client
middleware to instrument the clientsigningCert
methodRelease Note