-
Notifications
You must be signed in to change notification settings - Fork 4.6k
dns: add environment variable to disable TXT lookups in DNS resolver #8377
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8377 +/- ##
==========================================
+ Coverage 82.27% 82.32% +0.04%
==========================================
Files 414 414
Lines 40424 40424
==========================================
+ Hits 33259 33279 +20
+ Misses 5795 5781 -14
+ Partials 1370 1364 -6
🚀 New features to boost your workflow:
|
Would it make sense to rename |
In most cases, we should try to have boolean variables indicate the positive case. This makes it easier to read the the code when they're used in more complex boolean expressions. See this readability tip. |
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.
Can you please add a test for verifying that txt lookups are disabled when the env var is set? It should be possible to add a new boolean param to the existing test which controls setting of envconfig.EnableTXTServiceConfig
.
func (s) TestDisableServiceConfig(t *testing.T) { |
Yes, I meant to do this but forgot. Done. |
Fixes #8356
Note that there is no way to force TXT lookups happen for a specific channel. If someone requests this feature, we can consider it at that time, but I don't imagine there will be demand for it.
RELEASE NOTES:
GRPC_ENABLE_TXT_SERVICE_CONFIG
) to provide a way to disable TXT lookups in the DNS resolver (by setting it tofalse
). By default, TXT lookups are enabled, as they were before this change.