Skip to content

envsubst: Argument list too long #3309

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

Closed
imikiani opened this issue Nov 30, 2024 · 3 comments
Closed

envsubst: Argument list too long #3309

imikiani opened this issue Nov 30, 2024 · 3 comments
Labels
3.x Related to ModSecurity version 3.x

Comments

@imikiani
Copy link

**envsubst: Argument list too long **

When I run nginx based image of owasp/modsecurity-crs on top of kubernetes, I get this error:
/nginx/modsecurity.d/modsecurity.conf
/docker-entrypoint.d/20-envsubst-on-templates.sh: 53: envsubst: Argument list too long

kubectl run mynginxtest --image=owasp/modsecurity-crs:4.8.0-nginx-202411071011

Logs and dumps

Output of:
Error logs

kubectl logs -f mynginxtest

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/01-check-low-port.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-generate-certificate.sh
/usr/local/bin/generate-certificate: generating new certificate
Warning: No -copy_extensions given; ignoring any extensions in the request
/usr/local/bin/generate-certificate: generated /etc/nginx/conf/server.key and /etc/nginx/conf/server.crt
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/modsecurity.d/modsecurity.conf.template to /etc/nginx/modsecurity.d/modsecurity.conf
/docker-entrypoint.d/20-envsubst-on-templates.sh: 53: envsubst: Argument list too long
@imikiani imikiani added the 3.x Related to ModSecurity version 3.x label Nov 30, 2024
@airween
Copy link
Member

airween commented Nov 30, 2024

Hi @imikiani,

thanks for reporting - but I'm afraid this is more a modsecurity-crs-docker issue than a ModSecurity.

@imikiani
Copy link
Author

imikiani commented Nov 30, 2024

Dear @airween ,
Sorry, maybe it would have been better if I had opened the issue on modsecurity-crs-docker.

@airween
Copy link
Member

airween commented Nov 30, 2024

No problem. Feel free to close this issue if you don't have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Related to ModSecurity version 3.x
Projects
None yet
Development

No branches or pull requests

2 participants