pomerium / documentation

Documentation for Pomerium
https://www.pomerium.com/docs
Other
9 stars 17 forks source link

Authentication Cookie Handling not discussed #1678

Closed desimone closed 1 week ago

desimone commented 1 week ago

Page: https://www.pomerium.com/docs/concepts/security

What's incorrect or missing

Our documentation currently lacks clear explanation of how Pomerium handles authentication cookies in the proxy flow. Specifically, we should document that Pomerium automatically strips authentication cookies (_pomerium) before forwarding requests to upstream services. This is an important security feature that prevents credential replay attacks.

What's the resolution?

Add a new section in the security concepts documentation that:

  1. Explains that Pomerium removes authentication cookies before forwarding requests
  2. Describes why this is important (prevents credential replay attacks)
  3. Notes this is automatic behavior requiring no configuration
  4. Links to the implementation for those interested (clean-upstream.lua)

https://github.com/pomerium/pomerium/blob/main/config/envoyconfig/luascripts/clean-upstream.lua

Suggested documentation addition:

Pomerium automatically strips authentication cookies from requests before forwarding them to your upstream services. This security feature prevents credential replay attacks by ensuring that Pomerium's authentication cookies never reach your backend services.