Skip to content

docs: NIC+NAP wafv5 install guide perm fix #7760

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

Merged
merged 4 commits into from
May 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,25 @@ docker pull private-registry.nginx.com/nap/waf-compiler:5.6.0
Download the [provided WAF Policy JSON](https://raw.githubusercontent.com/nginx/kubernetes-ingress/main/tests/data/ap-waf-v5/wafv5.json):

```shell
curl -LO https://raw.githubusercontent.com/nginx/kubernetes-ingress/main/tests/data/ap-waf-v5/wafv5.json
curl -L https://raw.githubusercontent.com/nginx/kubernetes-ingress/main/tests/data/ap-waf-v5/wafv5.json -o /tmp/wafv5.json
```

Use your pulled NAP Docker image (`private-registry.nginx.com/nap/waf-compiler:5.6.0`) to compile the policy bundle:

```shell
# Using your newly created image
docker run --rm \
-v $(pwd):$(pwd) \
-v /tmp:/tmp \
private-registry.nginx.com/nap/waf-compiler:5.6.0 \
-p $(pwd)/wafv5.json \
-o $(pwd)/compiled_policy.tgz
-p /tmp/wafv5.json \
-o /tmp/compiled_policy.tgz
```

Move the downloaded JSON and compiled policy to your workspace:

```shell
mv /tmp/wafv5.json $(pwd)/wafv5.json
mv /tmp/compiled_policy.tgz $(pwd)/compiled_policy.tgz
```

After this command, your workspace should contain:
Expand Down
Loading