Skip to content

Build and use the compiler tool #1245

@osokin

Description

@osokin

Describe the bug

Permission denied during the policy compiling/output.

The workaround is to create in advance an output file and set appropriate permissions, otherwise compiler fails.

To reproduce

Steps to reproduce the behavior:

  1. Open https://docs.nginx.com/waf/configure/compiler/#compile-a-security-policy
  2. View output
  3. Run
docker run --rm \
 -v $(pwd):$(pwd) \
 waf-compiler-1.0.0:custom \
 -p $(pwd)/policy.json -o $(pwd)/compiled_policy.tgz
  1. See error.

Expected behavior

The expected behavior is get a compiled policy file, compiled_policy.tgz.

Your environment

  • RHEL9
  • AppProtect WAF 5.8

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

    🔥 p2Priority 2: Impacts production; non-emergencybugSomething isn't workingproduct/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