-
Notifications
You must be signed in to change notification settings - Fork 152
feat: F5 dos for nginx 4.9 #1863
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
Open
rnitzan
wants to merge
13
commits into
main
Choose a base branch
from
nap-dos-4.9
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
48bf235
featrue: F5 dos for nginx 4.9
rnitzan 3ee8a41
featrue: F5 dos for nginx 4.9
rnitzan 84b3230
featrue: F5 dos for nginx 4.9
rnitzan 5e4255f
featrue: F5 dos for nginx 4.9
rnitzan 2ad4496
featrue: F5 dos for nginx 4.9
rnitzan 6324f2b
featrue: F5 dos for nginx 4.9
rnitzan ca05e08
added Google site verification file for Google Search Console enablem…
travisamartin 351d0bb
Add instructions that shows a user how update an existing license (#1…
nginx-seanmoloney 6c4bf48
docs(nginx-one): add local troubleshooting and verification guide f…
kamalchaturvedi 6161d7f
feature: add F5 DoS for NGINX 4.9 release notes
rnitzan a54101f
docs: refine F5 DoS for NGINX 4.9 new features
rnitzan dab3055
docs(nap-dos): fix product names, metadata, and prose quality for 4.9…
travisamartin 7e96b74
Revert "docs(nap-dos): fix product names, metadata, and prose quality…
travisamartin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # syntax=docker/dockerfile:1 | ||
|
|
||
| # Supported OS_VER's are 3.21/3.22 | ||
| ARG OS_VER="3.22" | ||
|
|
||
| # Base image | ||
| FROM alpine:${OS_VER} | ||
|
|
||
| # Install F5 DoS ebpf manager for NGINX and create required nginx user | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/apk/cert.pem,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/apk/cert.key,mode=0644 \ | ||
| set -x \ | ||
| # Create nginx user/group first, to be consistent throughout Docker variants \ | ||
| && addgroup -S -g 101 nginx \ | ||
| && adduser -S -u 101 -G nginx -h /nonexistent -s /sbin/nologin nginx \ | ||
| && wget -O /etc/apk/keys/nginx_signing.rsa.pub https://cs.nginx.com/static/keys/nginx_signing.rsa.pub \ | ||
| && printf "https://pkgs.nginx.com/app-protect-dos/alpine/v`egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release`/main\n" | tee -a /etc/apk/repositories \ | ||
| && apk update \ | ||
| && apk add app-protect-dos-ebpf-manager \ | ||
| && rm -rf /var/cache/apk/* | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["bash", "-c", "/usr/bin/ebpf_manager_dos 2>&1 | tee /shared/ebpf_dos.log"] | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # For AmazonLinux 2023: | ||
| FROM amazonlinux:2023 | ||
|
|
||
| # Install F5 DoS ebpf manager for NGINX and create required nginx user | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \ | ||
| set -x \ | ||
| && dnf -y install ca-certificates shadow-utils \ | ||
| && groupadd --system --gid 101 nginx \ | ||
| && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \ | ||
| && curl -o /etc/yum.repos.d/app-protect-dos-amazonlinux2023.repo https://cs.nginx.com/static/files/app-protect-dos-amazonlinux2023.repo \ | ||
| && dnf install -y app-protect-dos-ebpf-manager \ | ||
| && dnf clean all \ | ||
| && rm -rf /var/cache/dnf | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["bash", "-c", "/usr/bin/ebpf_manager_dos 2>&1 | tee /shared/ebpf_dos.log"] | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # syntax=docker/dockerfile:1 | ||
| FROM amazonlinux:2023 | ||
|
|
||
| # Install prerequisite packages: | ||
| RUN dnf -y install ca-certificates | ||
|
|
||
| # Add NGINX/NAP WAF/NAP DOS repositories: | ||
| RUN curl -o /etc/yum.repos.d/plus-amazonlinux2023.repo https://cs.nginx.com/static/files/plus-amazonlinux2023.repo && \ | ||
| curl -o /etc/yum.repos.d/app-protect-dos-amazonlinux2023.repo https://cs.nginx.com/static/files/app-protect-dos-amazonlinux2023.repo && \ | ||
| curl -o /etc/yum.repos.d/app-protect-amazonlinux2023.repo https://cs.nginx.com/static/files/app-protect-amazonlinux2023.repo && \ | ||
| curl -o /etc/yum.repos.d/dependencies.amazonlinux2023.repo https://cs.nginx.com/static/files/dependencies.amazonlinux2023.repo | ||
|
|
||
| # Update the repository and install the most recent versions of the F5 WAF and F5 DoS for NGINX packages (which include NGINX Plus): | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \ | ||
| set -x \ | ||
| && dnf -y install ca-certificates shadow-utils \ | ||
| && groupadd --system --gid 101 nginx \ | ||
| && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \ | ||
| && dnf -y install app-protect app-protect-dos \ | ||
| && rm /etc/yum.repos.d/plus-amazonlinux2023.repo \ | ||
| && rm /etc/yum.repos.d/app-protect-dos-amazonlinux2023.repo \ | ||
| && dnf clean all \ | ||
| && rm -rf /var/cache/dnf \ | ||
| && rm -rf /var/cache/yum \ | ||
| && ln -sf /dev/stdout /var/log/nginx/access.log \ | ||
| && ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
|
||
| RUN nginx -v && admd -v | ||
| RUN echo "RELEASE:" && cat /opt/app_protect/RELEASE && echo "VERSION:" && cat /opt/app_protect/VERSION | ||
|
|
||
| # Copy configuration files: | ||
| COPY entrypoint.sh /root/ | ||
| RUN chmod +x /root/entrypoint.sh | ||
|
|
||
| EXPOSE 80 | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["sh", "/root/entrypoint.sh"] | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # Where can be bullseye/bookworm | ||
| FROM debian:bullseye | ||
|
|
||
| # Install F5 DoS for NGINX | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \ | ||
| set -x \ | ||
| # Create nginx user/group first, to be consistent throughout Docker variants \ | ||
| && groupadd --system --gid 101 nginx \ | ||
| && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \ | ||
| && DEBIAN_FRONTEND=noninteractive apt-get update \ | ||
| && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
| apt-transport-https \ | ||
| lsb-release \ | ||
| ca-certificates \ | ||
| wget \ | ||
| gnupg2 \ | ||
| debian-archive-keyring \ | ||
| && wget -qO - https://cs.nginx.com/static/keys/nginx_signing.key \ | ||
| | gpg --dearmor \ | ||
| | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null \ | ||
| && echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://pkgs.nginx.com/app-protect-dos/debian $(lsb_release -cs) nginx-plus" \ | ||
| > /etc/apt/sources.list.d/nginx-app-protect-dos.list \ | ||
| && wget -P /etc/apt/apt.conf.d https://cs.nginx.com/static/files/90pkgs-nginx \ | ||
| && DEBIAN_FRONTEND=noninteractive apt-get update \ | ||
| && DEBIAN_FRONTEND=noninteractive apt-get install -y app-protect-dos-ebpf-manager \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["bash", "-c", "/usr/bin/ebpf_manager_dos 2>&1 | tee /shared/ebpf_dos.log"] | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # Where version can be: bullseye/bookworm | ||
| FROM debian:bullseye | ||
|
|
||
| # Install prerequisite packages: | ||
| RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ | ||
| DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-transport-https lsb-release ca-certificates wget gnupg2 debian-archive-keyring && \ | ||
| wget -qO - https://cs.nginx.com/static/keys/nginx_signing.key | gpg --dearmor | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null && \ | ||
| wget -qO - https://cs.nginx.com/static/keys/app-protect-security-updates.key | gpg --dearmor | tee /usr/share/keyrings/app-protect-security-updates.gpg > /dev/null | ||
|
|
||
| # Add NGINX Plus, NGINX App Protect and F5 DoS for NGINX repository: | ||
| RUN printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://pkgs.nginx.com/plus/debian `lsb_release -cs` nginx-plus\n" | tee /etc/apt/sources.list.d/nginx-plus.list \ | ||
| && printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://pkgs.nginx.com/app-protect-dos/debian `lsb_release -cs` nginx-plus\n" | tee /etc/apt/sources.list.d/nginx-app-protect-dos.list \ | ||
| && printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://pkgs.nginx.com/app-protect/debian `lsb_release -cs` nginx-plus\n" | tee /etc/apt/sources.list.d/nginx-app-protect.list \ | ||
| && printf "deb [signed-by=/usr/share/keyrings/app-protect-security-updates.gpg] https://pkgs.nginx.com/app-protect-security-updates/debian `lsb_release -cs` nginx-plus\n" | tee /etc/apt/sources.list.d/app-protect-security-updates.list | ||
|
|
||
| # Download the apt configuration to `/etc/apt/apt.conf.d`: | ||
| RUN wget -P /etc/apt/apt.conf.d https://cs.nginx.com/static/files/90pkgs-nginx | ||
|
|
||
| # Update the repository and install the most recent versions of the F5 WAF and F5 DoS for NGINX packages (which includes NGINX Plus): | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \ | ||
| set -x \ | ||
| # Create nginx user/group first, to be consistent throughout Docker variants \ | ||
| && groupadd --system --gid 101 nginx \ | ||
| && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \ | ||
| && DEBIAN_FRONTEND=noninteractive apt-get update \ | ||
| && DEBIAN_FRONTEND=noninteractive apt-get install -y app-protect app-protect-dos \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && ln -sf /dev/stdout /var/log/nginx/access.log \ | ||
| && ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
|
||
| RUN nginx -v && admd -v | ||
| RUN echo "RELEASE:" && cat /opt/app_protect/RELEASE && echo "VERSION:" && cat /opt/app_protect/VERSION | ||
|
|
||
| COPY entrypoint.sh /root/ | ||
| RUN chmod +x /root/entrypoint.sh | ||
|
|
||
| EXPOSE 80 | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["sh", "/root/entrypoint.sh"] | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # For UBI 10 | ||
| FROM registry.access.redhat.com/ubi10 | ||
|
|
||
| ARG RHEL_ORG | ||
| ARG RHEL_ACTIVATION_KEY | ||
|
|
||
| # Install F5 DoS ebpf manager for NGINX and create required nginx user | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \ | ||
| set -x \ | ||
| # Create nginx user/group first, to be consistent throughout Docker variants \ | ||
| && groupadd --system --gid 101 nginx \ | ||
| && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \ | ||
| && dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm \ | ||
| && dnf -y install ca-certificates \ | ||
| && curl -o /etc/yum.repos.d/app-protect-dos-10.repo https://cs.nginx.com/static/files/app-protect-dos-10.repo \ | ||
| && dnf -y install app-protect-dos-ebpf-manager \ | ||
| && rm /etc/yum.repos.d/app-protect-dos-10.repo \ | ||
| && dnf clean all \ | ||
| && rm -rf /var/cache/yum | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["bash", "-c", "/usr/bin/ebpf_manager_dos 2>&1 | tee /shared/ebpf_dos.log"] | ||
| ``` | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| --- | ||
| nd-product: F5DOSN | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # For UBI 10 | ||
| FROM registry.access.redhat.com/ubi10 | ||
|
|
||
| ARG RHEL_ORG | ||
| ARG RHEL_ACTIVATION_KEY | ||
|
|
||
| # Install F5 DoS for NGINX | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \ | ||
| --mount=type=secret,id=license-jwt,dst=license.jwt,mode=0644 \ | ||
| subscription-manager register --org=${RHEL_ORG} --activationkey=${RHEL_ACTIVATION_KEY} \ | ||
| && subscription-manager refresh \ | ||
| && subscription-manager attach --auto || true \ | ||
| && subscription-manager repos --enable=rhel-10-for-x86_64-baseos-rpms \ | ||
| && subscription-manager repos --enable=rhel-10-for-x86_64-appstream-rpms \ | ||
| && dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm \ | ||
| && dnf -y install ca-certificates \ | ||
| && curl -o /etc/yum.repos.d/plus-10.repo https://cs.nginx.com/static/files/plus-10.repo \ | ||
| && curl -o /etc/yum.repos.d/app-protect-dos-10.repo https://cs.nginx.com/static/files/app-protect-dos-10.repo \ | ||
| && dnf -y install app-protect-dos \ | ||
| && cat license.jwt > /etc/nginx/license.jwt \ | ||
| && rm /etc/yum.repos.d/plus-10.repo \ | ||
| && rm /etc/yum.repos.d/app-protect-dos-10.repo \ | ||
| && dnf clean all \ | ||
| && rm -rf /var/cache/yum \ | ||
| && ln -sf /dev/stdout /var/log/nginx/access.log \ | ||
| && ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
|
||
| # Copy configuration files: | ||
| COPY nginx.conf custom_log_format.json /etc/nginx/ | ||
| COPY entrypoint.sh /root/ | ||
| RUN chmod +x /root/entrypoint.sh | ||
|
|
||
| EXPOSE 80 | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["sh", "/root/entrypoint.sh"] | ||
|
|
||
| ``` | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # For UBI 8 | ||
| FROM registry.access.redhat.com/ubi8 | ||
|
|
||
| ARG RHEL_ORG | ||
| ARG RHEL_ACTIVATION_KEY | ||
|
|
||
| # Install F5 DoS ebpf manager for NGINX and create required nginx user | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \ | ||
| set -x \ | ||
| # Create nginx user/group first, to be consistent throughout Docker variants \ | ||
| && groupadd --system --gid 101 nginx \ | ||
| && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \ | ||
| && dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \ | ||
| && dnf -y install ca-certificates \ | ||
| && curl -o /etc/yum.repos.d/app-protect-dos-8.repo https://cs.nginx.com/static/files/app-protect-dos-8.repo \ | ||
| && dnf -y install app-protect-dos-ebpf-manager \ | ||
| && rm /etc/yum.repos.d/app-protect-dos-8.repo \ | ||
| && dnf clean all \ | ||
| && rm -rf /var/cache/yum | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["bash", "-c", "/usr/bin/ebpf_manager_dos 2>&1 | tee /shared/ebpf_dos.log"] | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # For UBI 9 | ||
| FROM registry.access.redhat.com/ubi9 | ||
|
|
||
| ARG RHEL_ORG | ||
| ARG RHEL_ACTIVATION_KEY | ||
|
|
||
| # Install F5 DoS ebpf manager for NGINX and create required nginx user | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \ | ||
| set -x \ | ||
| # Create nginx user/group first, to be consistent throughout Docker variants \ | ||
| && groupadd --system --gid 101 nginx \ | ||
| && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \ | ||
| && dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \ | ||
| && dnf -y install ca-certificates \ | ||
| && curl -o /etc/yum.repos.d/app-protect-dos-9.repo https://cs.nginx.com/static/files/app-protect-dos-9.repo \ | ||
| && dnf -y install app-protect-dos-ebpf-manager \ | ||
| && rm /etc/yum.repos.d/app-protect-dos-9.repo \ | ||
| && dnf clean all \ | ||
| && rm -rf /var/cache/yum | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["bash", "-c", "/usr/bin/ebpf_manager_dos 2>&1 | tee /shared/ebpf_dos.log"] | ||
| ``` |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ```dockerfile | ||
| # syntax=docker/dockerfile:1 | ||
| # For Rocky Linux 9 | ||
| FROM rockylinux:9 | ||
|
|
||
| # Install F5 DoS ebpf manager for NGINX and create required nginx user | ||
| RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \ | ||
| --mount=type=secret,id=nginx-key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \ | ||
| set -x \ | ||
| # Create nginx user/group first, to be consistent throughout Docker variants \ | ||
| && groupadd --system --gid 101 nginx \ | ||
| && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \ | ||
| && dnf -y install ca-certificates epel-release 'dnf-command(config-manager)' \ | ||
| && curl -o /etc/yum.repos.d/app-protect-dos-9.repo https://cs.nginx.com/static/files/app-protect-dos-9.repo \ | ||
| && dnf config-manager --set-enabled crb \ | ||
| && dnf install -y app-protect-dos-ebpf-manager \ | ||
| && dnf clean all \ | ||
| && rm -rf /var/cache/dnf | ||
|
|
||
| STOPSIGNAL SIGQUIT | ||
|
|
||
| CMD ["bash", "-c", "/usr/bin/ebpf_manager_dos 2>&1 | tee /shared/ebpf_dos.log"] | ||
| ``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here and in all the new files in the
includes/dosfolderIncludes must indicate in which files the content is being used with the
nd-fileskeyIncludes must indicate the product using the
nd-productkey (F5DOSN)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General question on the scripts. None of them will work unless you've set up admin privileges (such as with
sudo). I don't see any evidence that you've set up sudo with any of the includes.