Skip to content

Configure policies - add visibility #1247

@osokin

Description

@osokin

Describe the bug

The following command has limited visibility.

sudo docker run --rm -v $(pwd):$(pwd) --entrypoint='' private-registry.nginx.com/nap/waf-compiler:1.0.0 cat /etc/app_protect/conf/NginxStrictPolicy.json

It's better to use a backslash symbol to reduce number of symbols in a line, i.e.:

sudo docker run --rm -v $(pwd):$(pwd) \
    --entrypoint='' \
    private-registry.nginx.com/nap/waf-compiler:1.0.0 \
    cat /etc/app_protect/conf/NginxStrictPolicy.json

To reproduce

Steps to reproduce the behavior:

  1. Open https://docs.nginx.com/waf/policies/configuration/#strict-policy
  2. View output
  3. See issue

Expected behavior

A clear visibility of the command needs to run.

Your environment

macOS/Chrome

Additional context

No any other context about the problem here.

Sensitive Information

No any sensitive information such as authentication credentials or license keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🧊 p4Priority 4: Not urgent, no immediate production impactenhancementNew feature or requestproduct/nap-wafIssues related to NGINX App Protect WAF

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions