parent
1a6f7154d8
commit
ae3081e1a2
|
|
@ -71,12 +71,6 @@ type mailerStats struct {
|
|||
}
|
||||
|
||||
func (m *mailer) sendNags(conn bmail.Conn, contacts []string, certs []*x509.Certificate) error {
|
||||
// TODO(#6121): Remove this
|
||||
if !features.Enabled(features.ExpirationMailerDontLookTwice) {
|
||||
if len(contacts) == 0 {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
if len(certs) == 0 {
|
||||
return errors.New("no certs given to send nags for")
|
||||
}
|
||||
|
|
@ -310,13 +304,6 @@ func (m *mailer) sendToOneRegID(ctx context.Context, conn bmail.Conn, regID int6
|
|||
return nil
|
||||
}
|
||||
|
||||
// TODO(#6121): Remove this
|
||||
if !features.Enabled(features.ExpirationMailerDontLookTwice) {
|
||||
if len(reg.Contact) == 0 {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
err = m.sendNags(conn, reg.Contact, parsedCerts)
|
||||
if err != nil {
|
||||
m.stats.errorCount.With(prometheus.Labels{"type": "SendNags"}).Inc()
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ import (
|
|||
corepb "github.com/letsencrypt/boulder/core/proto"
|
||||
"github.com/letsencrypt/boulder/db"
|
||||
berrors "github.com/letsencrypt/boulder/errors"
|
||||
"github.com/letsencrypt/boulder/features"
|
||||
blog "github.com/letsencrypt/boulder/log"
|
||||
bmail "github.com/letsencrypt/boulder/mail"
|
||||
"github.com/letsencrypt/boulder/metrics"
|
||||
|
|
@ -210,10 +209,6 @@ func TestProcessCerts(t *testing.T) {
|
|||
func TestNoContactCertIsNotRenewed(t *testing.T) {
|
||||
testCtx := setup(t, []time.Duration{time.Hour * 24 * 7})
|
||||
|
||||
_ = features.Set(map[string]bool{
|
||||
features.ExpirationMailerDontLookTwice.String(): true,
|
||||
})
|
||||
|
||||
reg, err := makeRegistration(testCtx.ssa, 1, jsonKeyA, nil)
|
||||
test.AssertNotError(t, err, "Couldn't store regA")
|
||||
|
||||
|
|
|
|||
|
|
@ -15,32 +15,32 @@ func _() {
|
|||
_ = x[StoreIssuerInfo-4]
|
||||
_ = x[StreamlineOrderAndAuthzs-5]
|
||||
_ = x[V1DisableNewValidations-6]
|
||||
_ = x[CAAValidationMethods-7]
|
||||
_ = x[CAAAccountURI-8]
|
||||
_ = x[EnforceMultiVA-9]
|
||||
_ = x[MultiVAFullResults-10]
|
||||
_ = x[MandatoryPOSTAsGET-11]
|
||||
_ = x[AllowV1Registration-12]
|
||||
_ = x[StoreRevokerInfo-13]
|
||||
_ = x[RestrictRSAKeySizes-14]
|
||||
_ = x[FasterNewOrdersRateLimit-15]
|
||||
_ = x[ECDSAForAll-16]
|
||||
_ = x[ServeRenewalInfo-17]
|
||||
_ = x[GetAuthzReadOnly-18]
|
||||
_ = x[GetAuthzUseIndex-19]
|
||||
_ = x[CheckFailedAuthorizationsFirst-20]
|
||||
_ = x[AllowReRevocation-21]
|
||||
_ = x[MozRevocationReasons-22]
|
||||
_ = x[OldTLSOutbound-23]
|
||||
_ = x[OldTLSInbound-24]
|
||||
_ = x[SHA1CSRs-25]
|
||||
_ = x[AllowUnrecognizedFeatures-26]
|
||||
_ = x[ExpirationMailerDontLookTwice-27]
|
||||
_ = x[ExpirationMailerDontLookTwice-7]
|
||||
_ = x[CAAValidationMethods-8]
|
||||
_ = x[CAAAccountURI-9]
|
||||
_ = x[EnforceMultiVA-10]
|
||||
_ = x[MultiVAFullResults-11]
|
||||
_ = x[MandatoryPOSTAsGET-12]
|
||||
_ = x[AllowV1Registration-13]
|
||||
_ = x[StoreRevokerInfo-14]
|
||||
_ = x[RestrictRSAKeySizes-15]
|
||||
_ = x[FasterNewOrdersRateLimit-16]
|
||||
_ = x[ECDSAForAll-17]
|
||||
_ = x[ServeRenewalInfo-18]
|
||||
_ = x[GetAuthzReadOnly-19]
|
||||
_ = x[GetAuthzUseIndex-20]
|
||||
_ = x[CheckFailedAuthorizationsFirst-21]
|
||||
_ = x[AllowReRevocation-22]
|
||||
_ = x[MozRevocationReasons-23]
|
||||
_ = x[OldTLSOutbound-24]
|
||||
_ = x[OldTLSInbound-25]
|
||||
_ = x[SHA1CSRs-26]
|
||||
_ = x[AllowUnrecognizedFeatures-27]
|
||||
}
|
||||
|
||||
const _FeatureFlag_name = "unusedPrecertificateRevocationStripDefaultSchemePortNonCFSSLSignerStoreIssuerInfoStreamlineOrderAndAuthzsV1DisableNewValidationsCAAValidationMethodsCAAAccountURIEnforceMultiVAMultiVAFullResultsMandatoryPOSTAsGETAllowV1RegistrationStoreRevokerInfoRestrictRSAKeySizesFasterNewOrdersRateLimitECDSAForAllServeRenewalInfoGetAuthzReadOnlyGetAuthzUseIndexCheckFailedAuthorizationsFirstAllowReRevocationMozRevocationReasonsOldTLSOutboundOldTLSInboundSHA1CSRsAllowUnrecognizedFeaturesExpirationMailerDontLookTwice"
|
||||
const _FeatureFlag_name = "unusedPrecertificateRevocationStripDefaultSchemePortNonCFSSLSignerStoreIssuerInfoStreamlineOrderAndAuthzsV1DisableNewValidationsExpirationMailerDontLookTwiceCAAValidationMethodsCAAAccountURIEnforceMultiVAMultiVAFullResultsMandatoryPOSTAsGETAllowV1RegistrationStoreRevokerInfoRestrictRSAKeySizesFasterNewOrdersRateLimitECDSAForAllServeRenewalInfoGetAuthzReadOnlyGetAuthzUseIndexCheckFailedAuthorizationsFirstAllowReRevocationMozRevocationReasonsOldTLSOutboundOldTLSInboundSHA1CSRsAllowUnrecognizedFeatures"
|
||||
|
||||
var _FeatureFlag_index = [...]uint16{0, 6, 30, 52, 66, 81, 105, 128, 148, 161, 175, 193, 211, 230, 246, 265, 289, 300, 316, 332, 348, 378, 395, 415, 429, 442, 450, 475, 504}
|
||||
var _FeatureFlag_index = [...]uint16{0, 6, 30, 52, 66, 81, 105, 128, 157, 177, 190, 204, 222, 240, 259, 275, 294, 318, 329, 345, 361, 377, 407, 424, 444, 458, 471, 479, 504}
|
||||
|
||||
func (i FeatureFlag) String() string {
|
||||
if i < 0 || i >= FeatureFlag(len(_FeatureFlag_index)-1) {
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ const (
|
|||
StoreIssuerInfo
|
||||
StreamlineOrderAndAuthzs
|
||||
V1DisableNewValidations
|
||||
ExpirationMailerDontLookTwice
|
||||
|
||||
// Currently in-use features
|
||||
// Check CAA and respect validationmethods parameter.
|
||||
|
|
@ -92,11 +93,6 @@ const (
|
|||
// AllowUnrecognizedFeatures is internal to the features package: if true,
|
||||
// skip error when unrecognized feature flag names are passed.
|
||||
AllowUnrecognizedFeatures
|
||||
|
||||
// ExpirationMailerDontLookTwice enables a bug fix in expiration-mailer
|
||||
// speeds up expiration-mailer processing by ensuring processed items
|
||||
// get marked done.
|
||||
ExpirationMailerDontLookTwice
|
||||
)
|
||||
|
||||
// List of features and their default value, protected by fMu
|
||||
|
|
|
|||
Loading…
Reference in New Issue