Skip to content

ns8-piler: nginx logs Traefik address instead of the real client #8283

Closed

Description

@stephdl

Steps to reproduce

  • Install piler on a NethServer 8 node, reachable through the Traefik reverse proxy.
  • Open the piler web interface from a client machine.
  • Look at the piler application log.

Expected behavior

The log shows the address of the client that made the request.

Actual behavior

The log shows the Traefik address for every request. A real user cannot be told apart from a scanner in the piler logs.

Components

ns8-piler 1.3.2

See also

Fixed by NethServer/ns8-piler#147

Activity

  1. self-assigned this
    on Oct 29, 2026
  2. added this to the NethServer 8.11 milestone on Oct 29, 2026
  3. added theissue type on Oct 29, 2026
  4. moved this from ToDo to In Progress in NethServeron Oct 29, 2026
  5. stephdl commented on Oct 30, 2026

    @stephdl
    Author

    QA ns8-piler 1.3.3-dev.1

    Fix: nginx logs the real client address instead of the Traefik address (NethServer/ns8-piler#147).

    Setup

    Update an existing piler instance (here piler1) to the test image:

    api-cli run update-module --data '{"module_url":"ghcr.io/nethserver/piler:1.3.3-dev.1","instances":["piler1"],"force":true}'

    Check that piler-app runs the new image:

    runagent -m piler1 podman ps --format "{{.Names}} {{.Image}} {{.Status}}"

    Test 1: the real client address is logged

    1. From your PC, open the piler web UI (https://<piler host>/) and log in.

    2. On the node, read the access log:

      journalctl -n 200 --since -5min -o cat SYSLOG_IDENTIFIER=piler-app | grep -E '"(GET|POST) ' | tail
    3. The lines show the IP of your PC, not 127.0.0.1 or the Traefik address. If your PC is on the same network as the node, this is its local IP.

    Test 2: a fake header from the client is not trusted

    1. From your PC, send a request with a fake address:

      curl -sk -o /dev/null -H 'X-Real-IP: 198.51.100.66' https://<piler host>/
    2. Read the log again (same command as test 1).

    3. The line shows the IP of your PC, not 198.51.100.66.

    Test 3: no regression

    • Log in as admin@local and as auditor@local.
    • Search for an archived email and open it.
    • Send an email through the mail server, then find it in piler.
  6. moved this from In Progress to Testing in NethServeron Oct 30, 2026
  7. added
    testingPackages are available from testing repositories
    on Oct 30, 2026
  8. lucagasparini commented on Oct 30, 2026

    @lucagasparini

    Test 1: VERIFIED
    Test 2: VERIFIED
    Test 3: VERIFIED

  9. removed
    testingPackages are available from testing repositories
    on Oct 30, 2026
  10. moved this from Testing to Verified in NethServeron Oct 30, 2026
  11. stephdl commented on Oct 30, 2026

    @stephdl
    Author
  12. moved this from Verified to Done in NethServeron Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

verifiedAll test cases were verified successfully

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions