-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4ff1ca
commit 68d5c26
Showing
2 changed files
with
56 additions
and
1 deletion.
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,7 +1,53 @@ | ||
#!/bin/bash | ||
|
||
# default sslmode is only "prefer" | ||
# ruleid: postgres-insecure-sslmode | ||
psql postgresql://myapplicationuser:mypass@myhost:1234/applicationdb | ||
|
||
# ruleid: postgres-insecure-sslmode | ||
psql "postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?something=else" | ||
|
||
# ruleid: postgres-insecure-sslmode | ||
psql postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?sslmode=disable | ||
|
||
# ruleid: postgres-insecure-sslmode | ||
psql postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?sslmode=PREfered | ||
|
||
# "This option is deprecated in favor of the sslmode setting." | ||
# ruleid: postgres-insecure-sslmode | ||
psql postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?requiressl=0 | ||
|
||
# ruleid: postgres-insecure-sslmode | ||
psql "postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?ssl=false" | ||
|
||
# ok: postgres-insecure-sslmode | ||
psql postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?sslmode=require | ||
|
||
# ok: postgres-insecure-sslmode | ||
psql "postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?sslmode=verify-full&something=else" | ||
|
||
# ok: postgres-insecure-sslmode | ||
psql "postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?sslmode=require&something=else" | ||
|
||
# ok: postgres-insecure-sslmode | ||
psql 'postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?sslmode=require&something=else' | ||
|
||
echo ' | ||
# ok: postgres-insecure-sslmode | ||
postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?sslmode=require&something=else | ||
' | ||
|
||
echo ' | ||
# ok: postgres-insecure-sslmode | ||
postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?sslmode=require | ||
' | ||
|
||
# "for compatibility with JDBC connection URIs, instances of ssl=true are translated into sslmode=require." | ||
# ok: postgres-insecure-sslmode | ||
psql "postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?ssl=true" | ||
|
||
# ok: postgres-insecure-sslmode | ||
psql "postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?ssl=true&something=else" | ||
|
||
# ok: postgres-insecure-sslmode | ||
psql 'postgresql://myapplicationuser:mypass@myhost:1234/applicationdb?requiressl=1' |
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