Skip to content

Bug: Add support for matching the lack of a pattern #29

@nholuongut

Description

@nholuongut

Is there an existing issue for this?

  • 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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions