-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use a connection string to connect to the database
This is because migratus prints out the entire connection string in case of errors, which can leak sensitive information. See yogthos/migratus#189
- Loading branch information
Showing
5 changed files
with
51 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
{:db-connection-string "jdbc:postgresql://localhost:5432/chronograph_ci?user=chronograph_ci_user&password=chronograph_ci_pwd" | ||
:oauth {:google {:redirect-uri "http://localhost:8000/google-oauth2-redirect" | ||
:response-type "code" | ||
:login-endpoint "https://accounts.google.com/o/oauth2/v2/auth" | ||
:token-endpoint "https://oauth2.googleapis.com/token" | ||
:client-id "test-client-id" | ||
:client-secret "test-client-secret" | ||
:scope "test scopes"}} | ||
:auth {:token-signing-key "your-signing-key-here" | ||
:token-expiry-in-seconds 3600} | ||
:app-log-level "debug" | ||
:port 8000} | ||
{:db-spec {:dbtype "postgresql" | ||
:dbname "chronograph_ci" | ||
:host "localhost" | ||
:port 5432 | ||
:user "chronograph_ci_user" | ||
:password "chronograph_ci_pwd"} | ||
:oauth {:google {:redirect-uri "http://localhost:8000/google-oauth2-redirect" | ||
:response-type "code" | ||
:login-endpoint "https://accounts.google.com/o/oauth2/v2/auth" | ||
:token-endpoint "https://oauth2.googleapis.com/token" | ||
:client-id "test-client-id" | ||
:client-secret "test-client-secret" | ||
:scope "test scopes"}} | ||
:auth {:token-signing-key "your-signing-key-here" | ||
:token-expiry-in-seconds 3600} | ||
:app-log-level "debug" | ||
:port 8000} |
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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
{:db-connection-string "jdbc:postgresql://localhost:19401/chronograph_dev?user=chronograph_dev&password=chronograph_devpwd" | ||
:oauth {:google #merge [{:redirect-uri "http://localhost:8000/google-oauth2-redirect" | ||
:response-type "code" | ||
:login-endpoint "https://accounts.google.com/o/oauth2/v2/auth" | ||
:token-endpoint "https://oauth2.googleapis.com/token"} | ||
#include "google.secrets.edn"]} | ||
:auth {:token-signing-key "your-signing-key-here" | ||
:token-expiry-in-seconds 3600} | ||
:app-log-level "debug" | ||
:port 8000} | ||
{:db-spec {:dbtype "postgresql" | ||
:dbname "chronograph_dev" | ||
:host "localhost" | ||
:port 19401 | ||
:user "chronograph_dev" | ||
:password "chronograph_devpwd"} | ||
:oauth {:google #merge [{:redirect-uri "http://localhost:8000/google-oauth2-redirect" | ||
:response-type "code" | ||
:login-endpoint "https://accounts.google.com/o/oauth2/v2/auth" | ||
:token-endpoint "https://oauth2.googleapis.com/token"} | ||
#include "google.secrets.edn"]} | ||
:auth {:token-signing-key "your-signing-key-here" | ||
:token-expiry-in-seconds 3600} | ||
:app-log-level "debug" | ||
:port 8000} |
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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
{:db-connection-string "jdbc:postgresql://localhost:19401/chronograph_test?user=chronograph_test&password=chronograph_testpwd" | ||
:oauth {:google {:redirect-uri "http://localhost:8000/google-oauth2-redirect" | ||
:response-type "code" | ||
:login-endpoint "https://accounts.google.com/o/oauth2/v2/auth" | ||
:token-endpoint "https://oauth2.googleapis.com/token" | ||
:client-id "test-client-id" | ||
:client-secret "test-client-secret" | ||
:scope "test scopes"}} | ||
:auth {:token-signing-key "your-signing-key-here" | ||
:token-expiry-in-seconds 3600} | ||
:app-log-level "debug" | ||
:port 8000} | ||
{:db-spec {:dbtype "postgresql" | ||
:dbname "chronograph_test" | ||
:host "localhost" | ||
:port 19401 | ||
:user "chronograph_test" | ||
:password "chronograph_testpwd"} | ||
:oauth {:google {:redirect-uri "http://localhost:8000/google-oauth2-redirect" | ||
:response-type "code" | ||
:login-endpoint "https://accounts.google.com/o/oauth2/v2/auth" | ||
:token-endpoint "https://oauth2.googleapis.com/token" | ||
:client-id "test-client-id" | ||
:client-secret "test-client-secret" | ||
:scope "test scopes"}} | ||
:auth {:token-signing-key "your-signing-key-here" | ||
:token-expiry-in-seconds 3600} | ||
:app-log-level "debug" | ||
:port 8000} |
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