aboutsummaryrefslogtreecommitdiffstats
path: root/src/access/registry.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-08 14:21:25 +0000
committertv <tv@krebsco.de>2026-11-08 15:33:48 +0100
commit3fed04ee13ff27e440bf0db5c9fa1efed3b2a7a4 (patch)
treef31c7cf85f07d17ba1de81c5c42f6e094f8b36b0 /src/access/registry.rs
parentd1754ca2d9519eaa78f978594cb81a2562970bca (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/access/registry.rs')
0 files changed, 0 insertions, 0 deletions