Skip to content

Commit 1cc1fd0

Browse files
committed
NGINXaaS Custom Security Policies
Updated doc to support the use of NGINX App Protect custom security policies.
1 parent cff3dad commit 1cc1fd0

File tree

7 files changed

+44
-4
lines changed

7 files changed

+44
-4
lines changed

Diff for: content/nginxaas-azure/app-protect/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: NGINX App Protect WAF (Preview)
2+
title: NGINX App Protect WAF
33
weight: 200
44
url: /nginxaas/azure/app-protect/
55
---

Diff for: content/nginxaas-azure/app-protect/configure-waf.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,30 @@ The following table shows the path to the precompiled policy file that needs to
101101

102102
To view the contents of the available security policies, navigate to the azure portal and select the **Security Policies** tab in the App Protect section.
103103

104-
{{<note>}}Custom policies are not supported at this time.{{</note>}}
104+
## Custom policies
105+
106+
NGINXaas for Azure also supports custom security policies. You can create and modify custom security policies to deploy to NGINX App Protect Instances using the API or Azure Portal.
107+
108+
### Manage custom policies
109+
110+
To create a custom security policy in the Azure Portal:
111+
112+
1. Select your deployment
113+
2. Select **NGINX app protect WAF** from the menu on the left
114+
3. Select **Custom Policies**
115+
4. Select **Add Custom Security Policy** to open the policy editor
116+
117+
In the policy editor, enter the **Name**, **File path**, your policy content, and then select **Save**. The **File path** is optional and will default to the path "/etc/app_protect/conf/" plus the policy **Name** with a ".json" extension. After your policy has been saved, you can then reference it in your NGINX configuration. For more information on policy configuration and syntax, refer to the NGINX App Protect [configuration guide](https://docs.nginx.com/nginx-app-protect-waf/v5/configuration-guide/configuration/).
118+
119+
{{<note>}}The **name** field within the security policy must be unique among the policies referenced in your NGINX configuration.{{</note>}}
120+
121+
{{<warning>}}Referencing both custom and precompiled policies in your NGINX configuration is not supported at this time.
122+
As a workaround, make a copy of the default policy you want to use, then add it as a custom policy with a different name.
123+
{{</warning>}}
124+
125+
The **Custom Policies** tab shows the status of your custom policies (Compilation and Application Status). Custom policies are automatically compiled when created or modified. Policies that are applied to the NGINX configuration cannot be deleted until they are first removed from the configuration.
126+
127+
It is highly recommended to use logging to monitor the performance of NGINX App Protect WAF and to help diagnose problems. See [Enable App Protect WAF Logs]({{< ref "/nginxaas-azure/app-protect/enable-logging.md" >}}) for directions to configure security and operational logs.
105128

106129
## What's next
107130

Diff for: content/nginxaas-azure/app-protect/enable-waf.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ This guide explains how to enable F5 NGINX App Protect WAF on a F5 NGINX as a Se
1414
## Before you start
1515
- NGINX App Protect WAF can only be enabled on NGINXaaS for Azure deployments with the **Standard v2** [plan]({{< ref "/nginxaas-azure/billing/overview.md" >}})
1616

17-
## Enable NGINX App Protect (Preview)
17+
## Enable NGINX App Protect
18+
1819
NGINX App Protect is disabled by default and needs to be explicitly enabled on an NGINXaaS deployment. Follow these steps:
1920

2021
### Using the Microsoft Azure Portal

Diff for: content/nginxaas-azure/changelog.md

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ To see a list of currently active issues, visit the [Known issues]({{< ref "/ngi
1313

1414
To review older entries, visit the [Changelog archive]({{< ref "/nginxaas-azure/changelog-archive" >}}) section.
1515

16+
## April 17, 2025
17+
18+
### What's New
19+
20+
- {{% icon-feature %}} **NGINX App Protect WAF is now generally available**
21+
22+
NGINX App Protect WAF is now generally available and is no longer a preview feature and will therefore be billed as specified in the [Azure Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/f5-networks.f5-nginx-for-azure?tab=PlansAndPrice)
23+
1624
## March 31, 2025
1725

1826
### What's New

Diff for: content/nginxaas-azure/known-issues.md

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ url: /nginxaas/azure/known-issues/
99

1010
List of known issues in the latest release of F5 NGINX as a Service for Azure (NGINXaaS).
1111

12+
### {{% icon-bug %}} Custom and precompiled security policies cannot both be referenced in an NGINX configuration
13+
14+
When using NGINX App Protect WAF, you can only reference default or custom security policies in your NGINX configuration, not both.
15+
16+
**Workaround**: Make a copy of the default policy you want to use, then add it as a custom policy with a different name.
17+
1218
### {{% icon-bug %}} Terraform fails to apply due to validation errors, but creates "Failed" resources in Azure (ID-4424)
1319

1420
Some validation errors are caught later in the creation process, and can leave behind "Failed" resources in Azure. An example initial failure might look like:

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com./nginxinc/docs
22

33
go 1.19
44

5-
require github.com./nginxinc/nginx-hugo-theme v0.42.1 // indirect
5+
require github.com./nginxinc/nginx-hugo-theme v0.42.27 // indirect

Diff for: go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
github.com./nginxinc/nginx-hugo-theme v0.42.1 h1:SYj7R7fKPYwtbQobTcJWy/ZWQxa5tlHCSJfU2dxYXxY=
22
github.com./nginxinc/nginx-hugo-theme v0.42.1/go.mod h1:DPNgSS5QYxkjH/BfH4uPDiTfODqWJ50NKZdorguom8M=
3+
github.com./nginxinc/nginx-hugo-theme v0.42.27 h1:D80Sf/o9lR4P0NDFfP/hCQllohz6C5qlJ4nGNfdfnqM=
4+
github.com./nginxinc/nginx-hugo-theme v0.42.27/go.mod h1:DPNgSS5QYxkjH/BfH4uPDiTfODqWJ50NKZdorguom8M=

0 commit comments

Comments
 (0)