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 DNS_NAME_PATTERNS_TO_RESOLVE_UPSTREAM config #9692
Conversation
Currently, only patch changes are allowed on master. Your PR labels (semver: minor) indicate that it cannot be merged into the master at this time. |
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 think this is a good idea, and the new name is clearer. Not entirely sure about it, but I cannot name a better alternative for now :)
8bea5cd
to
a567acb
Compare
a567acb
to
ae1ee60
Compare
ae1ee60
to
e611a0f
Compare
Motivation
Sometimes we may wish to skip resolving a DNS name with the LocalStack DNS server. For example, when using transparent endpoint injection some AWS URLs need to resolve to addresses on the public internet in order to e.g. fetch something from an S3 bucket.
We currently support this feature with the configuration variable
DNS_LOCAL_NAME_PATTERNS
, but this name sounds like it does the opposite -> "local name patterns" sounds like it will either:This is not the case.
Changes
We cannot remove this configuration variable since it is a breaking change, and we have not introduced a deprecation phase. This PR starts the deprecation phase of
DNS_LOCAL_NAME_PATTERNS
, and instead lets the user configureDNS_NAME_PATTERNS_TO_RESOLVE_UPSTREAM
. Currently during this deprecation phase, we accept both variables, however in the futureDNS_LOCAL_NAME_PATTERNS
will not be used to configure DNS resolution.TODO