Test plan for nginx
component upgrade
contribute
We need to verify that the nginx
upgrade won’t break the 2 extensions:
ngx_security_headers
nginx-module-vts
Copy the following test plan to a comment of the merge request that upgrades the component.
## Test plan
- [ ] Checked nginx [changelog](https://nginx.org/en/CHANGES) for potential breaking changes.
- [ ] Start a new pipeline and trigger `Trigger::ee-package`.
- Test the library:
- [ ] `version`
```shell
IMAGE='registry.gitlab.com/gitlab-org/omnibus-gitlab/gitlab-ee:renovate-nginx-nginx-1-x'
docker run -it --rm --platform="linux/amd64" \
$IMAGE /opt/gitlab/embedded/sbin/nginx -v
```
- [ ] `execution`
```shell
docker run -it --rm --platform="linux/amd64" \
$IMAGE bash
cat > nginx.conf <<EOF
worker_processes 1;
events {
worker_connections 1024;
}
http {
hide_server_tokens on;
security_headers on;
vhost_traffic_status_zone;
default_type application/octet-stream;
sendfile on;
server {
listen 80;
server_name localhost;
location /status {
vhost_traffic_status_display;
vhost_traffic_status_display_format prometheus;
}
}
}
EOF
/opt/gitlab/embedded/sbin/nginx -c /nginx.conf
curl -s -D - "http://127.0.0.1" -o /dev/null
# You should not see "Server:" header in the response
curl -s "http://127.0.0.1/status"
# You should see the VTS metrics
```
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support