ProxyAuth / Write

Blog Posts

Published 27 articles

2026-09-18077
ProxyAuth / Security

Refresh tokens: two tokens, one id, and a trap for whoever copies one

An API client cannot be handed a cookie, so it holds its credential for as long as the credential lasts. ProxyAuth now issues a short-lived access token and a long-lived refresh token that share one token id — which is what makes revocation simple, and what turns a replayed token into evidence of a copy.

/refresh-tokens-api-sessions4 min
2026-09-17081
ProxyAuth / Security

Rotating a session without logging anyone out

A session token that never changes is a token an attacker can keep. One that expires quickly is a login page in the middle of someone's work. Session renewal takes the third option — replace the token while it is being used — and the interesting part is what happens to the token it replaced.

/session-rotation5 min
2026-09-16063
ProxyAuth / Security

Headers ProxyAuth never relays: hop-by-hop stripping, request smuggling and the WebSocket consequence

Ten headers are removed from every request and every response, with no setting to change it. That rule is what closes HTTP request smuggling through ProxyAuth — and it is also why WebSocket upgrades do not pass through. Here is the full list, the reasoning, the one exception, and the identity headers stripped for a different reason.

/hop-by-hop-headers-request-smuggling3 min
2026-09-16056
ProxyAuth / Operations

log vs logging: how ProxyAuth separates where lines go from what an access line says

Two config keys that look alike and do different jobs. log picks the transport for every line — local file, Grafana Loki, HTTP sink, or nothing. logging shapes the per-request access line and decides which requests get one. Plus the stats socket, and how to make Loki queries structured instead of regex.

/logging-and-observability4 min
2026-09-16062
ProxyAuth / CLI

proxyauth quickstart: a guided setup that shows you the configuration it writes

Three interactive commands cover what people configure most — a vhost and its routes, an account, and who may sign in on a vhost. None of them writes anything before showing the exact block and getting a yes, every write is backed up and validated, and each run ends by printing what it added so you can write the next one by hand.

/cli-quickstart9 min
2026-09-15053
ProxyAuth / Security

SameSite=Lax vs SameSite=Strict: where ProxyAuth can reduce authentication exposure

SameSite is one attribute among several that decide how exposed a session is. This post explains Lax and Strict precisely, shows the exact cookie ProxyAuth sets and why Strict is affordable at a gateway, and lists the other controls — CSRF, revocation on logout, identity headers, cookie lifetime — that make the difference in practice.

/cookies-where-proxyauth-can-reduce-authentication-exposure4 min