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
Migrate DNS server to community #9049
Conversation
We need these in the CLI tests
This causes a failure with the CLI tests because of a port conflict.
This reverts commit 000f842.
podman tests have been broken for a while |
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.
Already looks good, just some points for discussion
This ensures the internal state of the server is in sync with the actual server
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.
Thanks for adding the CODEOWNERS file, forgot to mention that. LGTM, great work!
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.
🎉
Also don't mutate global state (config) since this may affect other things...
To stop a breaking change
Motivation
We want to simplify network configuration. A point of confusion is that
localhost.localstack.cloud
is publically registered, and resolves to127.0.0.1
. When communicating between docker containers, this is an issue - trying to connect to e.g. an opensearch domain with url*.localhost.localstack.cloud
returned by LocalStack will attempt to connect to the "application" container, rather than LocalStack.Recently we have upgraded the DNS server provided by LocalStack Pro to dynamically resolve the IP address of the LocalStack container based on request subnet, but this functionality was only available in Pro.
With this PR we bring the DNS server from Pro to LocalStack community. This change brings along with it increased test coverage.
Changes
DNS_PORT
) can be bound on the host, publish the docker port using the CLIlocalstack.services.dns_server
tolocalstack.dns.server
to group core resources (e.g.http
,dns
, etc.) at the top of the treeTesting
DNS_ADDRESS=127.0.0.1 localstack start
dig @127.0.0.1 localhost.localstack.cloud
and a valid response is returneddig @<ip of localstack container> localhost.localstack.cloud
and the IP address of the container should be returnedTODO
What's left to do: