Skip to content

fix: bound login redirects and handle session limits - #17

Merged
linkdata merged 2 commits into
mainfrom
fix/12-login-redirects
Oct 5, 2026
Merged

linkdata merged 2 commits into
mainfrom
fix/12-login-redirects

Conversation

@linkdata

@linkdata linkdata commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Cookie-less requests at a JaWS session limit return 503 with Retry-After: 60 instead of redirecting back to the protected route. Login owns session creation, eliminating the wrapper's duplicate attempt.

Return targets normalize leading slash/backslash combinations and fall back to / above 8192 bytes. An 8000-byte path remains usable, while session storage and final redirects stay bounded. Reverse proxies may need larger upstream response-header buffers for redirects near this limit.

Validation: go test -race ./..., go vet ./..., go build ./..., golangci-lint run, and gosec ./... in both Go modules. Local staticcheck ./... reported matched no packages in both modules. Regression coverage includes global/per-IP limits, shutdown, both admin and ordinary wrappers, target boundaries, and Referer/RequestURI inputs.

Closes #12
Closes #14
Closes #15

@linkdata
linkdata merged commit e17a5d6 into main Oct 5, 2026
3 checks passed
@linkdata
linkdata deleted the fix/12-login-redirects branch October 5, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant