google-nomulus/java/google/registry
nickfelt 0405a427f1 Remove unnecessary SecureRandom from UrlFetchUtils
We're only using it for generating multiparty boundaries, and there's no real need for the random boundary values to be cryptographically secure.  The point of the randomness is just to make collisions with content in the payload sufficiently unlikely.  The app itself controls the payload contents, and while it might be derived from user-submitted content, in practice it would be nearly infeasible to get the payload to contain arbitrary boundary values even if the RNG-produced boundaries could be determined in advance.

To further insulate against this, I've increased the boundary size (from 40 bits to 192) and added an actual check that the boundary isn't present in the input data, so that in the extremely unlikely event of a collision, we fail rather than producing an invalid multipart request.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=142784289
2016-12-22 16:10:44 -05:00
..
backup Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
batch Move VerifyEntityIntegrityAction to batch package 2016-12-19 11:09:20 -05:00
bigquery Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
braintree Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
builddefs Use bin_ and genfiles_ directories derived from the ctx, not the configuration 2016-12-13 16:03:55 -05:00
config Refactor RDE import stuff into its own rde.imports package 2016-12-13 15:57:46 -05:00
cron Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
dns Prefer Multimap interface types over implementation types. 2016-12-07 15:19:35 -05:00
eclipse Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
env Switch TMCH SMDRL fetch job to start at 00:15 and 12:15 2016-11-15 11:02:42 -05:00
export Add @ReportedOn annotation for BigQuery exports 2016-12-19 11:09:11 -05:00
flows Reconcile FeesAndCredits handling in price customization 2016-12-22 16:09:14 -05:00
gcs Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
groups Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
idn Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
keyring/api Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
loadtest Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
mapreduce Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
model Wire in domain transfer custom pricing and add a test 2016-12-22 16:07:39 -05:00
module Move VerifyEntityIntegrityAction to batch package 2016-12-19 11:09:20 -05:00
monitoring Move VerifyEntityIntegrityAction to batch package 2016-12-19 11:09:20 -05:00
pricing Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
rdap Inject RDAP help information in ConfigModule 2016-12-06 11:52:46 -05:00
rde Refactor RDE import stuff into its own rde.imports package 2016-12-13 15:57:46 -05:00
request Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
security Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
storage/drive Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
tldconfig/idn Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
tmch Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
tools ------------- 2016-12-06 11:52:46 -05:00
ui Upgrade Nomulus to latest Closure Rules 2016-12-06 11:52:46 -05:00
util Remove unnecessary SecureRandom from UrlFetchUtils 2016-12-22 16:10:44 -05:00
whois Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
xjc Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
xml Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
BUILD Upgrade Nomulus to latest Closure Rules 2016-12-06 11:52:46 -05:00
repositories.bzl Revert change to Guava 20 until we get it working properly 2016-11-02 15:19:34 -04:00