Skip to content

security: add telemetry for OCSP server checks#53685

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20200831-ocsp-telemetry
Sep 1, 2020
Merged

security: add telemetry for OCSP server checks#53685
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20200831-ocsp-telemetry

Conversation

@knz
Copy link
Copy Markdown
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

@knz knz requested review from bdarnell and irfansharif August 31, 2020 16:45
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable


// 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
Copy Markdown
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
Copy Markdown
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 knz force-pushed the 20200831-ocsp-telemetry branch from 2651217 to 66f3a96 Compare August 31, 2020 18:31
@knz
Copy link
Copy Markdown
Contributor Author

knz commented Aug 31, 2020

bors r=irfansharif

@craig
Copy link
Copy Markdown
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
Copy Markdown
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