Skip to content
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

AUT-1984: Rebuild nginx with headers-more module #1561

Merged
merged 2 commits into from
May 24, 2024
Merged

Conversation

whi-tw
Copy link
Contributor

@whi-tw whi-tw commented Apr 17, 2024

What

Add and use the nginx headers-more module to remove security headers
from the sidecar nginx.

This involves rebuilding nginx, using the builder dockerfile they provide.

I've used an older version of the dockerfile that doesn't use buildkit: currently, testcontainers doesn't support buildkit
meaning that we'd not be able to test the container with testcontainers, which would make me sad.

How to review

  • Code review
  • ensure tests are valid and that they pass

@whi-tw whi-tw marked this pull request as ready for review April 17, 2024 09:17
@whi-tw whi-tw requested review from a team as code owners April 17, 2024 09:17
@whi-tw whi-tw force-pushed the AUT-1984/rebuild-nginx branch 9 times, most recently from b2dcf88 to 13cad52 Compare April 17, 2024 13:24
whi-tw added 2 commits May 24, 2024 09:26
Add headers-more module to the nginx build process. This module is
required to remove the Server header from the responses.

This involved ripping 'Dockerfile.alpine': https://github.com/nginxinc/docker-nginx/blob/4bf0763f4977fff7e9648add59e0540088f3ca9f/modules/Dockerfile.alpine
- Cache yarn dependencies, based on the yarn.lock file
- Pre-build the sidecar container and the sidecar httpie container
  and cache them
@whi-tw whi-tw force-pushed the AUT-1984/rebuild-nginx branch from 13cad52 to 5344d1e Compare May 24, 2024 08:27
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@whi-tw whi-tw merged commit 4fb1eb9 into main May 24, 2024
6 checks passed
@whi-tw whi-tw deleted the AUT-1984/rebuild-nginx branch May 24, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants