Skip to content

Commit

Permalink
Deprecate StoreRevokerInfo flag (#6567)
Browse files Browse the repository at this point in the history
Fixes #5238
  • Loading branch information
pgporada committed Jan 9, 2023
1 parent 8d43397 commit cfa524a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
16 changes: 8 additions & 8 deletions features/featureflag_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions features/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const (
MozRevocationReasons
SHA1CSRs
RejectDuplicateCSRExtensions
StoreRevokerInfo

// Currently in-use features
// Check CAA and respect validationmethods parameter.
Expand All @@ -50,9 +51,6 @@ const (
// MandatoryPOSTAsGET forbids legacy unauthenticated GET requests for ACME
// resources.
MandatoryPOSTAsGET
// StoreRevokerInfo enables storage of the revoker and a bool indicating if the row
// was checked for extant unrevoked certificates in the blockedKeys table.
StoreRevokerInfo
// ECDSAForAll enables all accounts, regardless of their presence in the CA's
// ecdsaAllowedAccounts config value, to get issuance from ECDSA issuers.
ECDSAForAll
Expand Down
2 changes: 1 addition & 1 deletion sa/sa.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ func (ssa *SQLStorageAuthority) AddBlockedKey(ctx context.Context, req *sapb.Add
sourceInt,
req.Comment,
}
if features.Enabled(features.StoreRevokerInfo) && req.RevokedBy != 0 {
if req.RevokedBy != 0 {
cols += ", revokedBy"
qs += ", ?"
vals = append(vals, req.RevokedBy)
Expand Down
6 changes: 1 addition & 5 deletions sa/sa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2432,11 +2432,7 @@ func TestBlockedKeyRevokedBy(t *testing.T) {
sa, _, cleanUp := initSA(t)
defer cleanUp()

err := features.Set(map[string]bool{"StoreRevokerInfo": true})
test.AssertNotError(t, err, "failed to set features")
defer features.Reset()

_, err = sa.AddBlockedKey(context.Background(), &sapb.AddBlockedKeyRequest{
_, err := sa.AddBlockedKey(context.Background(), &sapb.AddBlockedKeyRequest{
KeyHash: []byte{1},
Added: 1,
Source: "API",
Expand Down

0 comments on commit cfa524a

Please sign in to comment.