Skip to content

Commit 8ba8347

Browse files
committed
Address feedback
1 parent 13a7a17 commit 8ba8347

File tree

8 files changed

+113
-13
lines changed

8 files changed

+113
-13
lines changed

cmd/boulder-ra/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ import (
3131

3232
type Config struct {
3333
RA struct {
34-
// RateLimitPoliciesFilename is deprecated.
35-
RateLimitPoliciesFilename string
36-
3734
cmd.ServiceConfig
3835
cmd.HostnamePolicyConfig
3936

37+
// RateLimitPoliciesFilename is deprecated.
38+
RateLimitPoliciesFilename string
39+
4040
MaxContactsPerRegistration int
4141

4242
SAService *cmd.GRPCClientConfig

sa/proto/sa.proto

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,6 @@ message Timestamps {
146146
repeated google.protobuf.Timestamp timestamps = 2;
147147
}
148148

149-
message CountByNames {
150-
map<string, int64> counts = 1;
151-
google.protobuf.Timestamp earliest = 2; // Unix timestamp (nanoseconds)
152-
}
153-
154149
message CountInvalidAuthorizationsRequest {
155150
int64 registrationID = 1;
156151
string dnsName = 2;

sa/sa.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ func (ssa *SQLStorageAuthority) AddCertificate(ctx context.Context, req *sapb.Ad
494494
// but don't return an error from AddCertificate.
495495
if fqdnTransactionErr != nil {
496496
ssa.rateLimitWriteErrors.Inc()
497-
ssa.log.AuditErrf("failed AddCertificate FQDN sets update transaction: %v", fqdnTransactionErr)
497+
ssa.log.AuditErrf("failed AddCertificate FQDN sets insert transaction: %v", fqdnTransactionErr)
498498
}
499499

500500
return &emptypb.Empty{}, nil

test/config/ra.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"keyFile": "test/certs/ipki/wfe.boulder/key.pem"
2323
}
2424
},
25-
"Defaults": "test/config-next/wfe2-ratelimit-defaults.yml",
26-
"Overrides": "test/config-next/wfe2-ratelimit-overrides.yml"
25+
"Defaults": "test/config/wfe2-ratelimit-defaults.yml",
26+
"Overrides": "test/config/wfe2-ratelimit-overrides.yml"
2727
},
2828
"maxContactsPerRegistration": 3,
2929
"debugAddr": ":8002",
@@ -129,6 +129,7 @@
129129
}
130130
},
131131
"features": {
132+
"UseKvLimitsForNewOrder": true,
132133
"IncrementRateLimits": true
133134
},
134135
"ctLogs": {

test/config/sa.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
]
4747
}
4848
}
49+
},
50+
"features": {
51+
"UseKvLimitsForNewOrder": true
4952
}
5053
},
5154
"syslog": {
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
NewRegistrationsPerIPAddress:
2+
count: 10000
3+
burst: 10000
4+
period: 168h
5+
NewRegistrationsPerIPv6Range:
6+
count: 99999
7+
burst: 99999
8+
period: 168h
9+
CertificatesPerDomain:
10+
count: 2
11+
burst: 2
12+
period: 2160h
13+
FailedAuthorizationsPerDomainPerAccount:
14+
count: 3
15+
burst: 3
16+
period: 5m
17+
# The burst represents failing 40 times per day for 90 days. The count and
18+
# period grant one "freebie" failure per day. In combination, these parameters
19+
# mean that:
20+
# - Failing 120 times per day results in being paused after 30.25 days
21+
# - Failing 40 times per day results in being paused after 92.3 days
22+
# - Failing 20 times per day results in being paused after 6.2 months
23+
# - Failing 4 times per day results in being paused after 3.3 years
24+
# - Failing once per day results in never being paused
25+
FailedAuthorizationsForPausingPerDomainPerAccount:
26+
count: 1
27+
burst: 3600
28+
period: 24h
29+
NewOrdersPerAccount:
30+
count: 1500
31+
burst: 1500
32+
period: 3h
33+
CertificatesPerFQDNSet:
34+
count: 2
35+
burst: 2
36+
period: 3h
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
- NewRegistrationsPerIPAddress:
2+
burst: 1000000
3+
count: 1000000
4+
period: 168h
5+
ids:
6+
- id: 127.0.0.1
7+
comment: localhost
8+
- id: 10.77.77.77
9+
comment: test
10+
- id: 10.88.88.88
11+
comment: test
12+
- CertificatesPerDomain:
13+
burst: 1
14+
count: 1
15+
period: 2160h
16+
ids:
17+
- id: ratelimit.me
18+
comment: Rate Limit Test Domain
19+
- CertificatesPerDomain:
20+
burst: 10000
21+
count: 10000
22+
period: 2160h
23+
ids:
24+
- id: le.wtf
25+
comment: Let's Encrypt Test Domain
26+
- id: le1.wtf
27+
comment: Let's Encrypt Test Domain 1
28+
- id: le2.wtf
29+
comment: Let's Encrypt Test Domain 2
30+
- id: le3.wtf
31+
comment: Let's Encrypt Test Domain 3
32+
- id: nginx.wtf
33+
comment: Nginx Test Domain
34+
- id: good-caa-reserved.com
35+
comment: Good CAA Reserved Domain
36+
- id: bad-caa-reserved.com
37+
comment: Bad CAA Reserved Domain
38+
- id: ecdsa.le.wtf
39+
comment: ECDSA Let's Encrypt Test Domain
40+
- id: must-staple.le.wtf
41+
comment: Must-Staple Let's Encrypt Test Domain
42+
- CertificatesPerFQDNSet:
43+
burst: 10000
44+
count: 10000
45+
period: 168h
46+
ids:
47+
- id: le.wtf
48+
comment: Let's Encrypt Test Domain
49+
- id: le1.wtf
50+
comment: Let's Encrypt Test Domain 1
51+
- id: le2.wtf
52+
comment: Let's Encrypt Test Domain 2
53+
- id: le3.wtf
54+
comment: Let's Encrypt Test Domain 3
55+
- id: le.wtf,le1.wtf
56+
comment: Let's Encrypt Test Domain, Let's Encrypt Test Domain 1
57+
- id: good-caa-reserved.com
58+
comment: Good CAA Reserved Domain
59+
- id: nginx.wtf
60+
comment: Nginx Test Domain
61+
- id: ecdsa.le.wtf
62+
comment: ECDSA Let's Encrypt Test Domain
63+
- id: must-staple.le.wtf
64+
comment: Must-Staple Let's Encrypt Test Domain

test/config/wfe2.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@
123123
"keyFile": "test/certs/ipki/wfe.boulder/key.pem"
124124
}
125125
},
126-
"Defaults": "test/config-next/wfe2-ratelimit-defaults.yml",
127-
"Overrides": "test/config-next/wfe2-ratelimit-overrides.yml"
126+
"Defaults": "test/config/wfe2-ratelimit-defaults.yml",
127+
"Overrides": "test/config/wfe2-ratelimit-overrides.yml"
128128
},
129129
"features": {
130+
"UseKvLimitsForNewOrder": true,
130131
"ServeRenewalInfo": true,
131132
"IncrementRateLimits": true,
132133
"CheckIdentifiersPaused": true

0 commit comments

Comments
 (0)