puppetlabs-stdlib icon indicating copy to clipboard operation
puppetlabs-stdlib copied to clipboard

add Stdlib::Dnssrv type

Open jhoblitt opened this issue 2 years ago • 7 comments

jhoblitt avatar Apr 12 '22 18:04 jhoblitt

I am having trouble figuring out how to make this work within the constraints of a type alias (and ruby's regex engine). I would like to require that a _foo. segment has to appear somewhere within the string but not require it to be the first segment as real world SRV records end up with constructions like dev._locations.example.com.

jhoblitt avatar Apr 12 '22 19:04 jhoblitt

Hello! 👋

This pull request has been open for a while and has had no recent activity. We've labelled it with attention-needed so that we can get a clear view of which PRs need our attention.

If you are waiting on a response from us we will try and address your comments on a future Community Day.

Alternatively, if it is no longer relevant to you please close the PR with a comment.

Please note that if a pull request receives no update for 7 after it has been labelled, it will be closed. We are always happy to re-open pull request if they have been closed in error.

github-actions[bot] avatar Jul 05 '22 02:07 github-actions[bot]

Hey @jhoblitt, are you able to move forward with this PR? It looks like there are a couple of comments to address.

Thank you 😄

chelnak avatar Jul 11 '22 13:07 chelnak

@chelnak I'm not sure what to do here. What @b4ldr is saying is technically correct w.r.t. to the RFC but I need this for SRV records as are required by Red Hat Identity Management / FreeIPA and are supported by route53. The spec examples are taking from one of my live production route53 zones.

jhoblitt avatar Jul 29 '22 19:07 jhoblitt

@chelnak I'm not sure what to do here.

Perhaps we could have something like the following

Stdlib::Dns::Srv = ... # RFC compliment form
Stdlib::Dns::Srv::Route53  = ...  # vendor specific form
Stdlib::Dns::Srv::FreeIPA  = ... 
Stdlib::Dns::Srv::Any = Varient[Stdlib::Dns::Srv::Route53, Stdlib::Dns::Srv::FreeIPA, Stdlib::Dns::Srv] 

i need this for SRV records as are required by Red Hat Identity Management / FreeIPA and are supported by route53. The spec examples are taking from one of my live production route53 zones.

regardless of the outcome of the above comment, can you provide some documentation on the specification used by route53/FreeIPA so we can ensure this implementation matches the intention? thanks

b4ldr avatar Jul 29 '22 19:07 b4ldr

Another option could be to have

Stdlib::DNS::Srv::Strict = # rfc
Stdlib::DNS::Srv::Loose = # some looser definition which is common among multiple provider implementations 
Stdlib::Dns::Srv = # an argument on what should be the default, I obviously vote strict ;)

b4ldr avatar Jul 29 '22 19:07 b4ldr

Ha. Having a ::loose type was just what I was thinking too. Let me see if I can find documentation on why freeipa is doing what it is doing. I've been working off the output of a command to dump the list of dns records which are required.

jhoblitt avatar Jul 29 '22 19:07 jhoblitt

Hey @jhoblitt just wanting to check if you have any bandwidth or plans to pick this up again? :-)

pmcmaw avatar Sep 12 '22 10:09 pmcmaw

Hi @jhoblitt - We are hoping to progress some of our ageing PRs - Just checking if you still hope to proceed with this? If so, there seems to be some comments that need addressed and the PR will need rebasing with the current main. Thanks :)

jordanbreen28 avatar Oct 10 '22 08:10 jordanbreen28

Hi, yes, thanks for the nudge.

jhoblitt avatar Oct 10 '22 12:10 jhoblitt

Hi @jhoblitt! We are going through some of our ageing PRs and this one seems to have limited activity. We understand that you may have other commitments keeping you busy, but for now we will close this PR.

Once you're ready to pick it up again, please do re-open this PR and we will pick it up again from here. Thanks for your understanding!

jordanbreen28 avatar Oct 17 '22 14:10 jordanbreen28