@@ -104,9 +104,6 @@ type RegistrationAuthorityImpl struct {
104104 inflightFinalizes prometheus.Gauge
105105 certCSRMismatch prometheus.Counter
106106 pauseCounter * prometheus.CounterVec
107- // TODO(#8177): Remove once the rate of requests failing to finalize due to
108- // requesting Must-Staple has diminished.
109- mustStapleRequestsCounter * prometheus.CounterVec
110107}
111108
112109var _ rapb.RegistrationAuthorityServer = (* RegistrationAuthorityImpl )(nil )
@@ -225,42 +222,35 @@ func NewRegistrationAuthorityImpl(
225222 }, []string {"paused" , "repaused" , "grace" })
226223 stats .MustRegister (pauseCounter )
227224
228- mustStapleRequestsCounter := prometheus .NewCounterVec (prometheus.CounterOpts {
229- Name : "must_staple_requests" ,
230- Help : "Number of times a must-staple request is made, labeled by allowlist=[allowed|denied]" ,
231- }, []string {"allowlist" })
232- stats .MustRegister (mustStapleRequestsCounter )
233-
234225 issuersByNameID := make (map [issuance.NameID ]* issuance.Certificate )
235226 for _ , issuer := range issuers {
236227 issuersByNameID [issuer .NameID ()] = issuer
237228 }
238229
239230 ra := & RegistrationAuthorityImpl {
240- clk : clk ,
241- log : logger ,
242- profiles : profiles ,
243- maxContactsPerReg : maxContactsPerReg ,
244- keyPolicy : keyPolicy ,
245- limiter : limiter ,
246- txnBuilder : txnBuilder ,
247- started : clk .Now (),
248- publisher : pubc ,
249- finalizeTimeout : finalizeTimeout ,
250- ctpolicy : ctp ,
251- ctpolicyResults : ctpolicyResults ,
252- issuersByNameID : issuersByNameID ,
253- namesPerCert : namesPerCert ,
254- newRegCounter : newRegCounter ,
255- recheckCAACounter : recheckCAACounter ,
256- newCertCounter : newCertCounter ,
257- revocationReasonCounter : revocationReasonCounter ,
258- authzAges : authzAges ,
259- orderAges : orderAges ,
260- inflightFinalizes : inflightFinalizes ,
261- certCSRMismatch : certCSRMismatch ,
262- pauseCounter : pauseCounter ,
263- mustStapleRequestsCounter : mustStapleRequestsCounter ,
231+ clk : clk ,
232+ log : logger ,
233+ profiles : profiles ,
234+ maxContactsPerReg : maxContactsPerReg ,
235+ keyPolicy : keyPolicy ,
236+ limiter : limiter ,
237+ txnBuilder : txnBuilder ,
238+ started : clk .Now (),
239+ publisher : pubc ,
240+ finalizeTimeout : finalizeTimeout ,
241+ ctpolicy : ctp ,
242+ ctpolicyResults : ctpolicyResults ,
243+ issuersByNameID : issuersByNameID ,
244+ namesPerCert : namesPerCert ,
245+ newRegCounter : newRegCounter ,
246+ recheckCAACounter : recheckCAACounter ,
247+ newCertCounter : newCertCounter ,
248+ revocationReasonCounter : revocationReasonCounter ,
249+ authzAges : authzAges ,
250+ orderAges : orderAges ,
251+ inflightFinalizes : inflightFinalizes ,
252+ certCSRMismatch : certCSRMismatch ,
253+ pauseCounter : pauseCounter ,
264254 }
265255 return ra
266256}
@@ -1091,7 +1081,6 @@ func (ra *RegistrationAuthorityImpl) validateFinalizeRequest(
10911081 }
10921082
10931083 if containsMustStaple (csr .Extensions ) {
1094- ra .mustStapleRequestsCounter .WithLabelValues ("denied" ).Inc ()
10951084 return nil , berrors .UnauthorizedError (
10961085 "OCSP must-staple extension is no longer available: see https://letsencrypt.org/2024/12/05/ending-ocsp" ,
10971086 )
@@ -1504,7 +1493,6 @@ func (ra *RegistrationAuthorityImpl) checkDCVAndCAA(ctx context.Context, dcvReq
15041493func (ra * RegistrationAuthorityImpl ) PerformValidation (
15051494 ctx context.Context ,
15061495 req * rapb.PerformValidationRequest ) (* corepb.Authorization , error ) {
1507-
15081496 // Clock for start of PerformValidation.
15091497 vStart := ra .clk .Now ()
15101498
0 commit comments