-
Notifications
You must be signed in to change notification settings - Fork 144
💥 Enable TLS if api key provided #1229
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
Conversation
temporalio/service.py
Outdated
| # Enable TLS by default when API key is provided and tls not explicitly set | ||
| if self.tls is None: | ||
| self.tls = self.api_key is not None |
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 we default identity here, but I would suggest we don't do this derived default here. I think tls should remain None if they look at their config (because it is the config they created/provided after all) and we only apply the default when building the bridge config.
If necessary, I can show an admittedly contrived situation where setting this config to a value they didn't set can cause a problem if they try to reuse it, but it would be a rare case.
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.
Agreed, mutating the config seems weird versus the config just meaning something different when provided. Either in the worker or the bridge worker etc
cretz
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. We need to remember to call this out in release notes quite big. Would also make sure @tconley1428 and/or @VegetarianOrc approve before merging.
What was changed
DWISOTT
Part of Assume TLS enabled if API key provided in SDKs features#687
How was this tested:
Unit tests
Any docs updates needed?
Maybe?