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

Implement certificate transparency monitoring workflow #536

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

linus-sun
Copy link
Collaborator

@linus-sun linus-sun commented Nov 14, 2024

Summary

Per changes outlined in this doc, this PR implements the certificate transparency monitoring workflow functionality by doing the following:

  • Implements RunConsistencyCheck to verify the consistency proof of a certificate transparency log's signed tree head
  • Implements runnable ct_monitor.go file to perform the identity monitor and consistency check functionality on a certificate transparency log

This PR depends on #527, #534, #535

Release Note

NONE

Documentation

N/A - future PRs will update documentation once the certificate transparency monitor is runnable from a reusable monitoring workflow

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 38.83792% with 200 lines in your changes missing coverage. Please review.

Project coverage is 56.78%. Comparing base (d271ec7) to head (ced634c).
Report is 155 commits behind head on main.

Files with missing lines Patch % Lines
cmd/ct_monitor/main.go 0.00% 107 Missing ⚠️
pkg/identity/identity.go 60.90% 32 Missing and 11 partials ⚠️
pkg/ct/consistency.go 7.69% 24 Missing ⚠️
pkg/ct/monitor.go 65.67% 19 Missing and 4 partials ⚠️
pkg/ct/test_utils.go 80.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #536      +/-   ##
==========================================
- Coverage   64.02%   56.78%   -7.24%     
==========================================
  Files           4       19      +15     
  Lines         303     1576    +1273     
==========================================
+ Hits          194      895     +701     
- Misses         78      591     +513     
- Partials       31       90      +59     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@linus-sun linus-sun marked this pull request as ready for review November 14, 2024 20:55

monitoredValues := identity.MonitoredValues{
CertificateIdentities: config.MonitoredValues.CertificateIdentities,
Subjects: config.MonitoredValues.Subjects,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need subjects, correct? Since subjects are just for special cases of SSH certificates or emails in keys

return
}

err = ct.RunConsistencyCheck(fulcioClient, config.LogInfoFile)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we flip the order of these, to first check consistency before the identity check?

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.

2 participants