-
Notifications
You must be signed in to change notification settings - Fork 93
[security] Require client certificate to connect to yugabyte sql interface #1290
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
base: master
Are you sure you want to change the base?
Conversation
mickmis
left a comment
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.
LGTM modulo comment.
| { | ||
| all(metadata): if metadata.datastore == 'yugabyte' then { | ||
| // Replicated from the official Helm chart with all command-line flags | ||
| MasterGFlags: base.Secret(metadata, 'dss-dss-yugabyte-master-gflags') { |
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.
use_client_to_server_encryption is not present in the master gflags (it is for the tserver though), while it is set for the helm charts.
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.
Yes, it don't need to be set for helm charts ^^'
the-glu
left a comment
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.
Tested and confirmed working, however extrra flag can be removed :)
|
|
||
| gflags: | ||
| master: | ||
| use_client_to_server_encryption: true |
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.
It's not needed to set this flag explicitly, it's handled in the state file via line 52 above (19d9d1ce3665e9d62d9a2538267116eb6a90644b9275b38ab30aeac127076243R52)
| { | ||
| all(metadata): if metadata.datastore == 'yugabyte' then { | ||
| // Replicated from the official Helm chart with all command-line flags | ||
| MasterGFlags: base.Secret(metadata, 'dss-dss-yugabyte-master-gflags') { |
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.
Yes, it don't need to be set for helm charts ^^'
This PR enforces ssl and authentication of clients on ysql connections using client certificate.