nuxt-websocket icon indicating copy to clipboard operation
nuxt-websocket copied to clipboard

Bug: Add support for matching the lack of a pattern

Open nholuongut opened this issue 8 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

What version of the module are you facing this issue on?

Add support for matching the lack of a pattern

Please specify the Nuxt.js version

Add support for matching the lack of a pattern

A link (CodeSandbox) that reproduces this error or a GitHub repository

Add support for matching the lack of a pattern

Current Behavior

Hi, I'm not sure if this is currently possible, but it would be useful to check for patterns that should exist, in addition to detecting patterns that should not exist. This could maybe be implemented as a configuration option in the YAML file?

Certain security best practices recommend the presence of specific statements. For example, The OWASP Cheat Sheet suggests using a USER directive in Dockerfiles to prevent privilege escalation attacks. However, I don’t see a way to enforce this check using the current format.

Expected Behavior

Hi, I'm not sure if this is currently possible, but it would be useful to check for patterns that should exist, in addition to detecting patterns that should not exist. This could maybe be implemented as a configuration option in the YAML file?

Certain security best practices recommend the presence of specific statements. For example, The OWASP Cheat Sheet suggests using a USER directive in Dockerfiles to prevent privilege escalation attacks. However, I don’t see a way to enforce this check using the current format.

Steps To Reproduce

No response

Checklist

  • [x] I have tested with the latest module version and the issue still occurs
  • [x] I have searched the issue tracker and this issue hasn't been reported yet

nholuongut avatar Mar 30 '25 07:03 nholuongut