Skip to content

fix: Use temp file for IPv6 conf checksum (#228)#377

Open
dalees wants to merge 1 commit intonginx:mainfrom
dalees:listen_ipv6
Open

fix: Use temp file for IPv6 conf checksum (#228)#377
dalees wants to merge 1 commit intonginx:mainfrom
dalees:listen_ipv6

Conversation

@dalees
Copy link

@dalees dalees commented Jan 5, 2026

Proposed changes

The conf file has been modified to change listen port in the Dockerfile, so to correctly compare packaged checksums we create a temporary file with the known changes reverted.

This resolves an issue where the container would never listen on IPv6 on startup.

resolves #228 #114

Checklist

Before creating a PR, run through this checklist and mark each as complete:

  • I have read the contributing guidelines
  • I have signed the F5 Contributor License Agreement (CLA)
  • I have run the update.sh script and ensured all entrypoint/Dockerfile template changes have been applied to the relevant image entrypoint scripts & Dockerfiles
  • I have tested that the NGINX Docker unprivileged image builds and runs correctly on all supported architectures on an unprivileged environment (check out the README for more details)
  • I have updated any relevant documentation (README.md)

@dalees dalees requested a review from a team as a code owner January 5, 2026 18:10
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

✅ All required contributors have signed the F5 CLA for this PR. Thank you!
Posted by the CLA Assistant Lite bot.

@dalees
Copy link
Author

dalees commented Jan 5, 2026

I have hereby read the F5 CLA and agree to its terms

@dalees
Copy link
Author

dalees commented Feb 2, 2026

@alessfg do you have some time to review this?

@alessfg alessfg added the bug Something isn't working label Feb 12, 2026
@alessfg alessfg linked an issue Feb 12, 2026 that may be closed by this pull request
@alessfg alessfg changed the title fix: Use temp file for ipv6 conf checksum (#228) fix: Use temp file for IPv6 conf checksum (#228) Feb 12, 2026
@alessfg
Copy link
Member

alessfg commented Feb 12, 2026

Hey @dalees! Can you rebase your branch and check your fork settings? The pipelines aren't running and I wonder if it might be related 🙂

cc @thresheek

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes IPv6 auto-enable being skipped on startup by making the packaged-config checksum comparison account for the image’s default.conf port rewrite (80 → 8080) via a temporary “reverted” config.

Changes:

  • Create a temporary copy of /etc/nginx/conf.d/default.conf with the listen port reverted to 80 for checksum comparison.
  • Use the temp file for Debian (md5) and Alpine (sha1) conffile checksum verification before enabling IPv6 listen.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The conf file was modified to change listen port in the Dockerfile,
so to correctly compare packaged checksums we create a temporary
file with the known changes reverted.

This resolves an issue where the container would never listen on
IPv6 on startup.
@dalees
Copy link
Author

dalees commented Feb 12, 2026

Hey @dalees! Can you rebase your branch and check your fork settings? The pipelines aren't running and I wonder if it might be related 🙂

Thanks for checking this PR!

I've now rebased the branch, addressed suggestions from copilot, and checked Allow edits by maintainers in case that helps.

I'm not sure what the pipelines need to run, but there might be an approval needed. https://docs.github.com/en/actions/how-tos/manage-workflow-runs/approve-runs-from-forks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPv6 configuration fails as checksums differ although configuration is not modified IPv6 is not enabling

2 participants