diff options
| author | tv <tv@krebsco.de> | 2026-11-08 14:21:25 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-08 15:33:48 +0100 |
| commit | 3fed04ee13ff27e440bf0db5c9fa1efed3b2a7a4 (patch) | |
| tree | f31c7cf85f07d17ba1de81c5c42f6e094f8b36b0 /src/swarm/topology | |
| parent | d1754ca2d9519eaa78f978594cb81a2562970bca (diff) | |
login: the session cookie Secure behind a TLS proxy
Review finding 12, browsers: the session cookie had no Secure flag.
Behind a TLS proxy, the token it carries went over plain HTTP if
someone typed http://.
POST /auth/session now sets Secure when the request came over TLS, as
the proxy says (X-Forwarded-Proto, or Forwarded's proto, of the first
hop). A client saying so itself only keeps its own cookie off plain
HTTP. operations.md's nginx example sets the header.
Diffstat (limited to 'src/swarm/topology')
0 files changed, 0 insertions, 0 deletions
