-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement postgres support for TLS #3488
Merged
Merged
Changes from 33 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
4f517f4
implement postgres support for TLS
nadilas 94c8cef
Merge branch 'master' into patch-1
anish531213 482f3d8
Merge branch 'master' into patch-1
nadilas 6484cbf
Merge branch 'master' into patch-1
meiliang86 55e5da9
Syncrhonize with Temporal postgres plugin
nadilas de0fde0
Merge branch 'master' into patch-1
meiliang86 717e016
Merge branch 'master' into patch-1
meiliang86 41b52b6
implement postgres support for TLS
nadilas 674eb00
Enforce re-replication context timeout for standby tasks (#3473)
yycptt 995493f
Enable processing queue split policy by domainID (#3486)
yycptt a43df67
Allow DLQ cli use a range of shard ids (#3481)
yux0 ed904c2
Integrate current execution check with replication resender (#3487)
yux0 c65e4c9
Do not extend activity expiration time (#3489)
yycptt f383e1e
Start queue processor before failover callback registration (#3494)
yycptt c73d42d
Clean up kafka replicagtion in worker (#3493)
yux0 936ba28
[SQL]Fix upsert SQL template for Postgres plugin (#3498)
longquanzheng 3d778ed
Ignore reapplication if the domain is pending active (#3502)
yux0 19956f1
Add domain tag to history query metrics (#3504)
andrewjdawson2016 efb92b1
Remove kafka replication from history and cli (#3503)
yux0 f16ee6b
move retryer to persistance package (#3497)
mantas-sidlauskas 43c4136
Update shard info when adding failover marker (#3507)
yux0 b19844b
Syncrhonize with Temporal postgres plugin
nadilas 298c843
k8s: fix cassandra-tool env key conflict with k8s (#3505)
pip1998 42d8b2d
Improve developer contribution guide for Postgres development (#3495)
longquanzheng 739578c
Fix NDC resetter persistence bugs (#3500)
longquanzheng 23849cb
Multicursor Queue Processor Improvements (#3509)
yycptt 504ce17
Add multicursor processing queue related metrics (#3510)
yycptt 0919b63
fixes postgres_server_test.go wrongly setting db password, hence plug…
d9d7832
Merge remote-tracking branch 'origin/patch-1' into patch-1
220a335
Merge branch 'master' into patch-1
longquanzheng 3d18b6b
Merge branch 'master' into patch-1
meiliang86 dbc483f
Merge branch 'master' into patch-1
nadilas 275ff1b
Merge branch 'master' into patch-1
longquanzheng f03a71b
fixes testPassword issue blocking postgres_server_test.go in postgres…
36da622
Merge branch 'master' into patch-1
nadilas c55e87a
fixes go.sum updates needed issue
2aaa1d8
Merge branch 'master' into patch-1
longquanzheng 019b1b1
tidy go.sum
0439167
Merge branch 'master' into patch-1
longquanzheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I'm late to the party, but is it wise to hard code this? How would I connect using the more secure modes
verify-ca
orverify-full
for example?Could as well let the user choose?
Just looking at the config it's hard to know what
cfg.TLS.Enabled
means; is itallow
,prefer
,require
,verify-ca
orverify-full
? All of those modes are enabling TLS support to various degrees.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @JosefWN you are not late! Apparently I don't have enough expertise/experience about security so I didn't think too much about that.
Is value of
sslmode
the only thing needed to change to support all other modes like you mention? If so then I could make a PR out for this.Or it would be nice if you can make a PR for this. Because I am not sure how to test it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think making the
sslmode
configurable is sufficient (which would also makecfg.TLS.Enabled
redundant).Perhaps something like this:
The default is
prefer
, so it should be backwards compatible even ifSSLMode
is not set (but would need to test that it actually works).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! PR out here: https://github.com/uber/cadence/pull/3787/files
But I think we have to make default as require now...since people started to use it. I believe it's okay, lmk if I am wrong.