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

fix(dns): bug with standard lookup tags not working; SRV questions returning duplicate hostnames #21361

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

DanStough
Copy link
Contributor

This closes:

Description

Two bugs with the V2 DNS implementation were discovered:

  • For SRV requests, we would return node hostnames for service instances even though they were all the same and the service instances have unique IPs. v2dns makes SRV records unusable #21325
  • We weren't parsing tags for standard lookups. consul 1.19.0 breaks all tags #21336
    • We also weren't returning any errors if there were too many query parts. It's possible people were using periods in tag names, but I think we still want to remove that behavior, so it should error.

Testing & Reproduction steps

Unit tests now fully cover these cases. We were missing coverage for these particular uses:

  • We were testing RFC 2782 style lookups with tags, not standard lookups. We were also not registering multiple instances to check if tag filtering was working.
  • RE: SRV using hostnames instead of encoded IPs. There is something different about using the API vs. internal RPCs to register services. I looked at how Nomad does this to replicate the specific

@DanStough DanStough added backport/1.19 Changes are backported to 1.19 backport/ent/1.18 Changes are backported to 1.18 ent labels Jun 24, 2024
@DanStough DanStough requested a review from jmurret June 24, 2024 16:15
@DanStough DanStough requested a review from a team as a code owner June 24, 2024 16:15
@github-actions github-actions bot added the type/docs Documentation needs to be created/updated/clarified label Jun 24, 2024
@DanStough DanStough force-pushed the dan/v2dns-tags-and-srv-fixes branch from 04ce078 to b45b834 Compare June 24, 2024 16:21
Copy link
Contributor

@boruszak boruszak left a comment

Choose a reason for hiding this comment

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

Release notes changes LGTM!

Approving on behalf of consul-docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/ent/1.18 Changes are backported to 1.18 ent backport/1.19 Changes are backported to 1.19 type/docs Documentation needs to be created/updated/clarified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants