consul icon indicating copy to clipboard operation
consul copied to clipboard

Separate tag from protocol in RFC 2782 DNS lookup

Open jkirschner-hashicorp opened this issue 3 years ago • 4 comments

Description

Closes #11046 (though ideally want to confirm with the originally poster of that enhancement request)

Previously, to perform tag-based filtering with an RFC 2782 style DNS lookup, the tag needed to be specified in the RFC 2782 protocol field. Some external systems require the protocol field to specify the protocol (e.g., TCP) and do not allow using an arbitrary value (e.g., service tag).

This commit allows the tag to be specified separately from the protocol field:

_<service>._tcp.<tag>.service[.<datacenter>].<domain>

I confirmed the utility of this change with original issue poster (refer to this comment).

Testing & Reproduction steps

See new unit tests

PR Checklist

  • [x] updated test coverage
  • [x] external facing docs updated
  • [x] not a security concern

jkirschner-hashicorp avatar Aug 01 '22 20:08 jkirschner-hashicorp

@boruszak : thanks for the feedback! I merged the other DNS-related PR so this docs diff is now much smaller. I've incorporated your feedback.

jkirschner-hashicorp avatar Aug 23 '22 15:08 jkirschner-hashicorp

Thanks @jkirschner-hashicorp! I just took another look and everything LGTM. Looks like you're all set to merge - LMK if you'd prefer I take over on merging!

boruszak avatar Aug 23 '22 20:08 boruszak

@boruszak : don't merge this. The eng team needs to review the code changes first. Thanks for the second pass though!

I'll merge after eng has reviewed and approved.

jkirschner-hashicorp avatar Aug 23 '22 22:08 jkirschner-hashicorp

Still need an engineering review

jkirschner-hashicorp avatar Sep 02 '22 12:09 jkirschner-hashicorp

This pull request has been automatically flagged for inactivity because it has not been acted upon in the last 60 days. It will be closed if no new activity occurs in the next 30 days. Please feel free to re-open to resurrect the change if you feel this has happened by mistake. Thank you for your contributions.

github-actions[bot] avatar Nov 03 '22 01:11 github-actions[bot]