@@ -103,9 +103,6 @@ type RegistrationAuthorityImpl struct {
103103 inflightFinalizes prometheus.Gauge
104104 certCSRMismatch prometheus.Counter
105105 pauseCounter * prometheus.CounterVec
106- // TODO(#8177): Remove once the rate of requests failing to finalize due to
107- // requesting Must-Staple has diminished.
108- mustStapleRequestsCounter * prometheus.CounterVec
109106}
110107
111108var _ rapb.RegistrationAuthorityServer = (* RegistrationAuthorityImpl )(nil )
@@ -215,41 +212,34 @@ func NewRegistrationAuthorityImpl(
215212 }, []string {"paused" , "repaused" , "grace" })
216213 stats .MustRegister (pauseCounter )
217214
218- mustStapleRequestsCounter := prometheus .NewCounterVec (prometheus.CounterOpts {
219- Name : "must_staple_requests" ,
220- Help : "Number of times a must-staple request is made, labeled by allowlist=[allowed|denied]" ,
221- }, []string {"allowlist" })
222- stats .MustRegister (mustStapleRequestsCounter )
223-
224215 issuersByNameID := make (map [issuance.NameID ]* issuance.Certificate )
225216 for _ , issuer := range issuers {
226217 issuersByNameID [issuer .NameID ()] = issuer
227218 }
228219
229220 ra := & RegistrationAuthorityImpl {
230- clk : clk ,
231- log : logger ,
232- profiles : profiles ,
233- maxContactsPerReg : maxContactsPerReg ,
234- keyPolicy : keyPolicy ,
235- limiter : limiter ,
236- txnBuilder : txnBuilder ,
237- publisher : pubc ,
238- finalizeTimeout : finalizeTimeout ,
239- ctpolicy : ctp ,
240- ctpolicyResults : ctpolicyResults ,
241- issuersByNameID : issuersByNameID ,
242- namesPerCert : namesPerCert ,
243- newRegCounter : newRegCounter ,
244- recheckCAACounter : recheckCAACounter ,
245- newCertCounter : newCertCounter ,
246- revocationReasonCounter : revocationReasonCounter ,
247- authzAges : authzAges ,
248- orderAges : orderAges ,
249- inflightFinalizes : inflightFinalizes ,
250- certCSRMismatch : certCSRMismatch ,
251- pauseCounter : pauseCounter ,
252- mustStapleRequestsCounter : mustStapleRequestsCounter ,
221+ clk : clk ,
222+ log : logger ,
223+ profiles : profiles ,
224+ maxContactsPerReg : maxContactsPerReg ,
225+ keyPolicy : keyPolicy ,
226+ limiter : limiter ,
227+ txnBuilder : txnBuilder ,
228+ publisher : pubc ,
229+ finalizeTimeout : finalizeTimeout ,
230+ ctpolicy : ctp ,
231+ ctpolicyResults : ctpolicyResults ,
232+ issuersByNameID : issuersByNameID ,
233+ namesPerCert : namesPerCert ,
234+ newRegCounter : newRegCounter ,
235+ recheckCAACounter : recheckCAACounter ,
236+ newCertCounter : newCertCounter ,
237+ revocationReasonCounter : revocationReasonCounter ,
238+ authzAges : authzAges ,
239+ orderAges : orderAges ,
240+ inflightFinalizes : inflightFinalizes ,
241+ certCSRMismatch : certCSRMismatch ,
242+ pauseCounter : pauseCounter ,
253243 }
254244 return ra
255245}
@@ -1080,7 +1070,6 @@ func (ra *RegistrationAuthorityImpl) validateFinalizeRequest(
10801070 }
10811071
10821072 if containsMustStaple (csr .Extensions ) {
1083- ra .mustStapleRequestsCounter .WithLabelValues ("denied" ).Inc ()
10841073 return nil , berrors .UnauthorizedError (
10851074 "OCSP must-staple extension is no longer available: see https://letsencrypt.org/2024/12/05/ending-ocsp" ,
10861075 )
@@ -1493,7 +1482,6 @@ func (ra *RegistrationAuthorityImpl) checkDCVAndCAA(ctx context.Context, dcvReq
14931482func (ra * RegistrationAuthorityImpl ) PerformValidation (
14941483 ctx context.Context ,
14951484 req * rapb.PerformValidationRequest ) (* corepb.Authorization , error ) {
1496-
14971485 // Clock for start of PerformValidation.
14981486 vStart := ra .clk .Now ()
14991487
0 commit comments