-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce maproulette.secret.key conf and MAPROULETTE_SECRET_KEY env (#…
…1128) MapRoulette API had a dependency on the Play framework's secret key, and this patch separates those keys. The MapRoulette secret is used to encrypt things specific to maproulette and it no longer depends on the Play application key. Play 2.9 introduced a change where its application key must be 32 bytes or longer, and this impacted MapRoulette's cryptography with its own internal items. It's easier to manage these separately, similar to how the OSM secrets are not used to encrypt data stored within MapRoulette.
- Loading branch information
Showing
4 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,6 +178,12 @@ maproulette { | |
publicOrigin="https://maproulette.org" | ||
emailFrom="[email protected]" | ||
|
||
# The MapRoulette API secret key used to encrypt/decrypt sensitive things from the database, like user API Keys. | ||
# Do not use the default value in production, generate a new key and set it via conf or 'MAPROULETTE_SECRET_KEY' env. | ||
# A secure way to get a distinct key is to run 'openssl rand -base64 32' and set the output as the secret key. | ||
secret.key = "%APPLICATION_SECRET%" | ||
secret.key = "${?MAPROULETTE_SECRET_KEY}" | ||
|
||
# redirect for OSM | ||
frontend="http://127.0.0.1:3000" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters