Skip to content

Conversation

@barroco
Copy link
Contributor

@barroco barroco commented Oct 21, 2025

This PR enforces ssl and authentication of clients on ysql connections using client certificate.

@barroco barroco marked this pull request as ready for review October 22, 2025 16:12
@barroco barroco marked this pull request as draft October 22, 2025 16:13
@barroco barroco marked this pull request as ready for review October 22, 2025 16:13
@barroco barroco changed the title [security] Harness yugabyte cluster [security] Require client certificate to connect to yugabyte sql interface Oct 22, 2025
Copy link
Contributor

@mickmis mickmis left a 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') {
Copy link
Contributor

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.

Copy link
Contributor

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 ^^'

Copy link
Contributor

@the-glu the-glu left a 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
Copy link
Contributor

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') {
Copy link
Contributor

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 ^^'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants