boulder/sa
Daniel McCarney 1ed34a4a5d Fixes cert count rate limit for exact PSL matches. (#2703)
Prior to this PR if a domain was an exact match to a public suffix
list entry the certificates per name rate limit was applied based on the
count of certificates issued for that exact name and all of its
subdomains.

This PR introduces an exception such that exact public suffix
matches correctly have the certificate per name rate limit applied based
on only exact name matches.

In order to accomplish this a new RPC is added to the SA
`CountCertificatesByExactNames`. This operates similar to the existing
`CountCertificatesByNames` but does *not* include subdomains in the
count, only exact matches to the names provided. The usage of this new
RPC is feature flag gated behind the "CountCertificatesExact" feature flag.

The RA unit tests are updated to test the new code paths both with and
without the feature flag enabled.

Resolves #2681
2017-05-02 13:43:35 -07:00
..
_db Move two migrations from `sa/_db-next/ to `sa/_db/`. (#2588) 2017-02-27 10:41:50 -08:00
_db-next Move two migrations from `sa/_db-next/ to `sa/_db/`. (#2588) 2017-02-27 10:41:50 -08:00
proto Fixes cert count rate limit for exact PSL matches. (#2703) 2017-05-02 13:43:35 -07:00
satest Updates `go-jose` dep to v1.1.0 (#2314) 2016-11-08 13:56:50 -05:00
authz.go Switch to gorp.v2 (#2598) 2017-03-08 12:20:22 -05:00
database.go Change prefixdb semantics (#2674) 2017-04-12 21:57:58 -07:00
database_test.go Increase readTimeout in TestTimeouts. (#2671) 2017-04-09 15:32:02 -04:00
ip_range_test.go Remove all stray copyright headers and appends the initial line to LICENSE.txt (#1853) 2016-05-31 12:32:04 -07:00
model.go Remove CertStatusOptimizationsMigrated Feature Flag & Assoc. Cruft (#2561) 2017-02-16 11:35:00 -08:00
model_test.go Re-apply 2138 with proper gating (#2199) 2016-09-29 17:16:03 -04:00
rollback.go Switch to gorp.v2 (#2598) 2017-03-08 12:20:22 -05:00
sa.go Fixes cert count rate limit for exact PSL matches. (#2703) 2017-05-02 13:43:35 -07:00
sa_test.go Fixes cert count rate limit for exact PSL matches. (#2703) 2017-05-02 13:43:35 -07:00
test-cert.der Store a DB of issued names. 2015-09-28 19:37:50 -07:00
test-cert2.der Implement rate limiting by domain name. 2015-10-04 21:04:26 -07:00
type-converter.go Switch to gorp.v2 (#2598) 2017-03-08 12:20:22 -05:00
type-converter_test.go Fixes unused errs 2016-11-30 13:51:43 -05:00
www.eff.org.der Add initial certificate status in SA. 2015-04-23 19:52:34 -07:00