fix: isolate login failures behind trusted proxies #9
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/trusted-proxy-login"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
別LXC・別ホストのCaddy経由では接続元IPが共通になるため、第三者のログイン失敗で他の利用者もロックされていました。SHIRUSHI_TRUSTED_PROXIESに指定した実際の接続元からだけ転送ヘッダーを信頼し、元のクライアントIPごとに失敗を数えます。
IPv4/IPv6の起動時検証、ログイン分離・未信頼接続の回帰テスト、README/API/Caddy文書、v1.3.1の変更履歴を追加しました。
検証: CGO_ENABLED=0 go test ./...、go vet ./...、scripts/run-static-analysis.sh、node --check static/js/app.js、git diff --checkが成功。Firefox Playwrightは8件成功・Chromium専用の1件skip。独立レビューも完了。
リリース予定: v1.3.1。別LXC構成では更新後にCaddy側のIPをSHIRUSHI_TRUSTED_PROXIESへ設定する必要があります。