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

security: add telemetry for OCSP server checks #53685

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

knz
Copy link
Contributor

@knz knz commented Aug 31, 2020

Fixes #53473
cc @thtruo

This commit adds two telemetry counters:

  • server.ocsp.conn-verifications counts the number of connections
    for which the OCSP feature is enabled

  • server.ocsp.cert-verifications counts the number of times
    a certificate actually underwent OCSP verification.

Release justification: low risk, high benefit changes to existing functionality

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@@ -60,10 +64,26 @@ func makeOCSPVerifier(settings TLSSettings) func([][]byte, [][]*x509.Certificate
}
}

// ocspChecksCounter counts the number of connections that are
// undergoing OCSP validations. This counter exists so that
// the value of ocspCheckWithOCSPServerInCert can be interpreted
Copy link
Contributor

Choose a reason for hiding this comment

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

s/ocspCheckWithOCSPServerInCert/ocspCheckWithOCSPServerInCertCounter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

This commit adds two telemetry counters:

- `server.ocsp.conn-verifications` counts the number of connections
  for which the OCSP feature is enabled

- `server.ocsp.cert-verifications` counts the number of times
  a certificate actually underwent OCSP verification.

Release justification: low risk, high benefit changes to existing functionality

Release note: None
@knz
Copy link
Contributor Author

knz commented Aug 31, 2020

bors r=irfansharif

@craig
Copy link
Contributor

craig bot commented Aug 31, 2020

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Sep 1, 2020

Build succeeded:

@craig craig bot merged commit f2056ba into cockroachdb:master Sep 1, 2020
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.

security: add telemetry for OCSP certificate revocation
3 participants