Skip to content
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

Introduce SQL_TLS_ENABLED env var to allow enabling TLS for SQL datastores #1473

Merged
merged 2 commits into from Apr 20, 2021

Conversation

aromanovich
Copy link
Contributor

What changed?
config_template.yaml now supports enabling TLS for SQL databases through the SQL_TLS_ENABLED env var.

@aromanovich aromanovich requested a review from a team April 18, 2021 19:17
@@ -64,6 +64,8 @@ persistence:
maxConns: {{ default .Env.SQL_MAX_CONNS "20" }}
maxIdleConns: {{ default .Env.SQL_MAX_IDLE_CONNS "20" }}
maxConnLifetime: {{ default .Env.SQL_MAX_CONN_TIME "1h" }}
tls:
enabled: {{ default .Env.SQL_TLS_ENABLED "false" }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I've also added the ability to specify TLS.ServerName through {CASSANDRA,SQL}_HOST_NAME env vars.

@wxing1292 wxing1292 merged commit 8ed4f17 into temporalio:master Apr 20, 2021
@sergeybykov
Copy link
Member

Thank you, @aromanovich!

aromanovich added a commit to aromanovich/temporal that referenced this pull request Apr 20, 2021
…tores (temporalio#1473)

* Introduce SQL_* env vars to allow configuring TLS for SQL databases
@alexshtin
Copy link
Member

Almost a year after we found out that с in сaFile is Russian с not English c. Fixed in #2397.

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.

None yet

4 participants