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

autocert: fix certmagic cache logging #4134

Merged
merged 1 commit into from Apr 25, 2023
Merged

Conversation

calebdoxsey
Copy link
Contributor

Summary

The certmagic cache starts by using the certmagic.Default config, which uses a default logger, so when we set it on our certmagic.Config it doesn't use the right logger. This updates the code so we don't use NewDefault but set the cache ourselves.

Related issues

Fixes #4133

Checklist

  • reference any related issues
  • updated docs
  • updated unit tests
  • updated UPGRADING.md
  • add appropriate tag (improvement / bug / etc)
  • ready for review

@calebdoxsey calebdoxsey added bug Something isn't working backport 0-21-0 labels Apr 25, 2023
@calebdoxsey calebdoxsey requested a review from a team as a code owner April 25, 2023 19:31
@calebdoxsey calebdoxsey requested a review from wasaga April 25, 2023 19:31
@coveralls
Copy link

Coverage Status

Coverage: 63.458% (-0.03%) from 63.492% when pulling 175ecfd on cdoxsey/certmagic-logging into 949454e on main.

@calebdoxsey calebdoxsey merged commit 3d9322b into main Apr 25, 2023
15 checks passed
@calebdoxsey calebdoxsey deleted the cdoxsey/certmagic-logging branch April 25, 2023 20:21
calebdoxsey added a commit that referenced this pull request Apr 26, 2023
autocert: fix certmagic cache logging (#4134)

Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 0-21-0 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log isn't pure JSONL; includes some differently formatted "OCSP staple" lines
3 participants