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

Fix/ou cert mapping #12

Merged
merged 7 commits into from
Nov 18, 2024
Merged

Conversation

wbollock
Copy link
Collaborator

Resolves aarnaud#7

switches to slog with standard logging levels of info,debug,warn,error.
will make logging easier to include and more customizable. using
standard slog package reduces third party dependencies too
Resolves aarnaud#28

Implements logic to consider both CN and OU as unique values for a
certificate in the certificate map. This way we get metrics for certs
that have the same CN but different Subject OUs - before, only CN was
considered.

This should still handle renewals correctly for the same cert, updating
metrics in-place. That is why serial number or certificate fingerprint
was not used as certs renewed in-place should retain their time series.

I debated also adding Issuer information to uniquely identify these
certs but did not think it was needed
standard for mise/asdf
@wbollock wbollock merged commit 88f5b34 into linode-obs:master Nov 18, 2024
1 check passed
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.

1 participant