mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1670984 - include CRLite stash revocation hits/library failures in CRLite telemetry r=jcj
Differential Revision: https://phabricator.services.mozilla.com/D94189
This commit is contained in:
parent
fe80718d67
commit
b014438572
@ -148,6 +148,7 @@ enum class CRLiteLookupResult {
|
||||
CertificateValid = 4,
|
||||
CertificateRevoked = 5,
|
||||
LibraryFailure = 6,
|
||||
CertRevokedByStash = 7,
|
||||
};
|
||||
|
||||
class CRLiteTelemetryInfo {
|
||||
|
@ -796,6 +796,10 @@ Result NSSCertDBTrustDomain::CheckRevocation(
|
||||
MOZ_LOG(gCertVerifierLog, LogLevel::Debug,
|
||||
("NSSCertDBTrustDomain::CheckRevocation: IsCertRevokedByStash "
|
||||
"failed"));
|
||||
if (mCRLiteTelemetryInfo) {
|
||||
mCRLiteTelemetryInfo->mLookupResult =
|
||||
CRLiteLookupResult::LibraryFailure;
|
||||
}
|
||||
if (mCRLiteMode == CRLiteMode::Enforce) {
|
||||
return Result::FATAL_ERROR_LIBRARY_FAILURE;
|
||||
}
|
||||
@ -803,6 +807,10 @@ Result NSSCertDBTrustDomain::CheckRevocation(
|
||||
MOZ_LOG(gCertVerifierLog, LogLevel::Debug,
|
||||
("NSSCertDBTrustDomain::CheckRevocation: IsCertRevokedByStash "
|
||||
"returned true"));
|
||||
if (mCRLiteTelemetryInfo) {
|
||||
mCRLiteTelemetryInfo->mLookupResult =
|
||||
CRLiteLookupResult::CertRevokedByStash;
|
||||
}
|
||||
if (mCRLiteMode == CRLiteMode::Enforce) {
|
||||
return Result::ERROR_REVOKED_CERTIFICATE;
|
||||
}
|
||||
|
@ -1017,6 +1017,10 @@ static void CollectCertTelemetry(
|
||||
Telemetry::AccumulateCategorical(
|
||||
Telemetry::LABELS_CRLITE_RESULT::LibraryFailure);
|
||||
break;
|
||||
case CRLiteLookupResult::CertRevokedByStash:
|
||||
Telemetry::AccumulateCategorical(
|
||||
Telemetry::LABELS_CRLITE_RESULT::CertRevokedByStash);
|
||||
break;
|
||||
case CRLiteLookupResult::NeverChecked:
|
||||
break;
|
||||
default:
|
||||
|
@ -11953,9 +11953,9 @@
|
||||
"products": ["firefox"],
|
||||
"expires_in_version": "86",
|
||||
"kind": "categorical",
|
||||
"labels": ["FilterNotAvailable", "IssuerNotEnrolled", "CertificateTooNew", "CertificateValid", "CertificateRevoked", "LibraryFailure"],
|
||||
"labels": ["FilterNotAvailable", "IssuerNotEnrolled", "CertificateTooNew", "CertificateValid", "CertificateRevoked", "LibraryFailure", "CertRevokedByStash"],
|
||||
"description": "The result of looking up revocation information for a TLS server certificate in CRLite.",
|
||||
"bug_numbers": [1586855, 1607765],
|
||||
"bug_numbers": [1586855, 1607765, 1670984],
|
||||
"releaseChannelCollection": "opt-out",
|
||||
"alert_emails": ["dkeeler@mozilla.com", "jcj@mozilla.com", "seceng-telemetry@mozilla.com"]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user