Skip to content

Commit 3867a1f

Browse files
authored
Support NAP WAF 3.6 (#140)
1 parent 8d15650 commit 3867a1f

File tree

17 files changed

+10
-166
lines changed

17 files changed

+10
-166
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@
44

55
ENHANCEMENTS:
66

7+
* Remove Alpine 3.10 from the list of supported platform for NAP (and from Molecule).
78
* Move non NGINX App Protect specific dependencies from the role into the Molecule Dockerfile.
89
* Change Dependabot frequency from daily to weekly.
910
* Minor touch-up of GitHub actions workflows.
1011

1112
BUG FIXES:
1213

13-
Always update NGINX App Protect dependencies to the latest available version to avoid outdated dependency issues (e.g. outdated CA certificates).
14+
* NGINX App Protect WAF 3.6 has been released and with it comes support for NGINX Plus R25. Per last release's KNOWN ISSUES, NGINX App Protect DoS will still only work with NGINX Plus R24.
15+
* Always update NGINX App Protect dependencies to the latest available version to avoid outdated dependency issues (e.g. outdated CA certificates).
1416

1517
## 0.6.1 (September 30, 2021)
1618

1719
KNOWN ISSUES:
1820

19-
As of the latest NGINX Plus release, R25, NGINX App Protect will no longer install or work on R25 platforms. The only workaround at this time is to install NGINX Plus R24 before attempting to install NGINX App Protect WAF/DoS. This issue will be fixed in NGINX App Protect 3.6, planned for release mid-October.
21+
As of the latest NGINX Plus release, R25, NGINX App Protect WAF/DoS will no longer install or work on R25 platforms. The only workaround at this time is to install NGINX Plus R24 before attempting to install NGINX App Protect WAF/DoS. This issue will be fixed in NGINX App Protect WAF 3.6, planned for release mid-October, and in the next release of NGINX App Protect DoS, also planned for release mid-October.
2022

2123
ENHANCEMENTS:
2224

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,11 @@ Use `git clone https://github.com/nginxinc/ansible-role-nginx-app-protect.git` t
7373
The NGINX App Protect Ansible role supports all platforms supported by [NGINX Plus](https://www.nginx.com/products/technical-specs/) that intersect with the following list of distributions of App Protect WAF:
7474

7575
```yaml
76-
Alpine:
77-
- 3.10
7876
Amazon Linux 2:
7977
- any
8078
CentOS:
8179
- 7.4+
8280
Debian:
83-
- stretch (9)
8481
- buster (10)
8582
RHEL:
8683
- 7.4+

meta/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ galaxy_info:
1111
min_ansible_version: 2.11
1212

1313
platforms:
14-
- name: Alpine
15-
versions:
16-
- any
1714
- name: Amazon Linux 2
1815
versions:
1916
- any

molecule/advanced/converge.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,4 @@
1313
nginx_app_protect_install_signatures: true
1414
nginx_app_protect_install_threat_campaigns: true
1515
nginx_app_protect_configure: true
16-
nginx_app_protect_security_policy_template_enable: true
17-
nginx_app_protect_security_policy_enforcement_mode: blocking
18-
nginx_app_protect_log_policy_template_enable: true
19-
nginx_app_protect_log_policy_filter_request_type: all
20-
nginx_app_protect_conf_template_enable: true
21-
nginx_app_protect_demo_workload_protocol: http://
22-
nginx_app_protect_demo_workload_host: test-workload:80
23-
nginx_app_protect_log_policy_syslog_target: localhost:514
2416
nginx_app_protect_timeout: 180

molecule/advanced/molecule.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@ platforms:
1717
- workload
1818
networks:
1919
- name: molecule-test
20-
- name: alpine-3.10
21-
image: alpine:3.10
22-
dockerfile: ../Dockerfile.j2
23-
privileged: true
24-
volumes:
25-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
26-
command: "/sbin/init"
27-
groups:
28-
- nap
29-
networks:
30-
- name: molecule-test
3120
- name: centos-7
3221
image: centos:7
3322
dockerfile: ../Dockerfile.j2

molecule/advanced/prepare.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,3 @@
3535
- name: Start nginx on test workload
3636
raw: nohup nginx </dev/null >/dev/null 2>&1 & sleep 1
3737
changed_when: false
38-
39-
- name: Install NGINX Plus R24 to avoid dependency issues
40-
hosts: nap
41-
tasks:
42-
- name: Set repo if Alpine
43-
set_fact:
44-
version: "=24-r2"
45-
when: ansible_facts['os_family'] == "Alpine"
46-
- name: Set repo if Debian
47-
set_fact:
48-
version: "=24-2~{{ ansible_facts['distribution_release'] }}"
49-
when: ansible_facts['os_family'] == "Debian"
50-
- name: Set repo if Red Hat
51-
set_fact:
52-
version: "-24-2.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
53-
when: ansible_facts['os_family'] == "RedHat"
54-
- name: Install NGINX Plus R24 to avoid dependency issues
55-
include_role:
56-
name: nginxinc.nginx
57-
vars:
58-
nginx_type: plus
59-
nginx_version: "{{ version }}"
60-
nginx_license:
61-
certificate: ../../files/license/nginx-repo.crt
62-
key: ../../files/license/nginx-repo.key

molecule/advanced/requirements.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
22
roles:
3-
- name: nginxinc.nginx
4-
version: 0.21.2
53
- name: robertdebock.rsyslog
64
version: 3.2.0

molecule/default/converge.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,4 @@
1313
nginx_app_protect_install_signatures: true
1414
nginx_app_protect_install_threat_campaigns: true
1515
nginx_app_protect_configure: true
16-
nginx_app_protect_security_policy_template_enable: true
17-
nginx_app_protect_security_policy_enforcement_mode: blocking
18-
nginx_app_protect_log_policy_template_enable: true
19-
nginx_app_protect_log_policy_filter_request_type: all
2016
nginx_app_protect_conf_template_enable: false

molecule/default/molecule.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
---
2-
dependency:
3-
name: galaxy
4-
options:
5-
role-file: molecule/default/requirements.yml
62
driver:
73
name: docker
84
lint: |
95
set -e
106
yamllint .
117
ansible-lint --force-color
128
platforms:
13-
- name: alpine-3.10
14-
image: alpine:3.10
15-
dockerfile: ../Dockerfile.j2
16-
privileged: true
17-
volumes:
18-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
19-
command: "/sbin/init"
209
- name: amazonlinux-2
2110
image: amazonlinux:2
2211
dockerfile: ../Dockerfile.j2
@@ -55,6 +44,5 @@ platforms:
5544
provisioner:
5645
name: ansible
5746
playbooks:
58-
prepare: prepare.yml
5947
converge: converge.yml
6048
verify: verify.yml

molecule/default/prepare.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,3 @@
1616
dest: ../../files/license/nginx-repo.key
1717
force: false
1818
mode: 0444
19-
20-
- name: Install NGINX Plus R24 to avoid dependency issues
21-
hosts: all
22-
tasks:
23-
- name: Set repo if Alpine
24-
set_fact:
25-
version: "=24-r2"
26-
when: ansible_facts['os_family'] == "Alpine"
27-
- name: Set repo if Debian
28-
set_fact:
29-
version: "=24-2~{{ ansible_facts['distribution_release'] }}"
30-
when: ansible_facts['os_family'] == "Debian"
31-
- name: Set repo if Red Hat
32-
set_fact:
33-
version: "-24-2.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
34-
when: ansible_facts['os_family'] == "RedHat"
35-
- name: Install NGINX Plus R24 to avoid dependency issues
36-
include_role:
37-
name: nginxinc.nginx
38-
vars:
39-
nginx_type: plus
40-
nginx_version: "{{ version }}"
41-
nginx_license:
42-
certificate: ../../files/license/nginx-repo.crt
43-
key: ../../files/license/nginx-repo.key

0 commit comments

Comments
 (0)