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

[Bug]: Puppet 8 introduced a regex node definition regression #14

Open
1 task done
binford2k opened this issue Feb 14, 2025 · 0 comments
Open
1 task done

[Bug]: Puppet 8 introduced a regex node definition regression #14

binford2k opened this issue Feb 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@binford2k
Copy link
Contributor

Is this a critical security issue?

  • This is not a security issue.

Describe the Bug

We have node definitions of the form node /^thing-(foo|bar)(?:-test)?-(\d+)/, the backreferences in which are known to trigger puppetlabs/puppet#9329 in Puppet 7. We thought we'd take a look at Puppet 8 and see if that behavior has changed. However it seems that this pattern doesn't work at all in Puppet 8:

ERROR [qtp437212910-1916] [puppetserver] Puppet Server Error: Cannot find definition Node on node thing-foo-0.example.com

See puppetlabs/puppet#9538 for more information

It looks like the regression was introduced in https://github.com/openvox/puppet/commit/5d09d7f19ab7c68e1bc4b0df88dc1231684548b3

Expected Behavior

regex should work, or it should be documented why it does not work.

Steps to Reproduce

Create a complex regex node definition

Environment

Puppet/OpenVox 8.x+

Additional Context

No response

Relevant log output

@binford2k binford2k added the bug Something isn't working label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant