Skip to content

fix: don't trust incoming request IDs by default #695

Closed

Description

@uniqueg

server.request_id.trust_incoming defaults to true, so every FOCA app takes a syntactically valid X-Request-ID from any client, in logs, the response header and audit events. That assumes a proxy that sets or checks the header, and ingress-nginx, for one, seems to keep a client's value. FOCA shouldn't assume this about its surroundings.

Default to false, and let deployments behind a proxy that handles the header opt in. Rewrite the garbled paragraph in docs/configuration/server.md, name the option and its effect on audit events in docs/migration-0.21.md, including the change for gateways, whose old behaviour was unconditional.

From the pre-release review of 0.21.0.

Activity

  1. added this to the v0.21.0 milestone on Nov 4, 2026
  2. added
    priority: high
    status: in progress
    type: security
    workload: minutes
    on Nov 4, 2026
  3. removed
    status: in progress
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: securityworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions