Skip to content

fix: preserve configured public origin - #4

Merged
chen21019 merged 1 commit into
mainfrom
fix/public-origin-0.23.14
Sep 10, 2026
Merged

fix: preserve configured public origin#4
chen21019 merged 1 commit into
mainfrom
fix/public-origin-0.23.14

Conversation

@chen21019

Copy link
Copy Markdown

結果

  • 新增可選的 canonical public origin,修正 TLS 終止後內部 HTTP 代理錯誤產生 http 絕對網址。
  • 只有請求 Host 與設定 authority 完全相符才套用,避免外部 Host 汙染。
  • X-Forwarded-For 仍以連線來源為準,不信任客戶端偽造值。
  • 發行座標更新為 0.23.14。

驗證

  • go test ./... 通過
  • go vet -mod=vendor ./... 通過
  • gofmt 與 diff check 通過
  • 涵蓋正確 origin、異 Host、偽造 forwarded headers 與不安全設定拒絕測試

@chen21019
chen21019 requested a review from a team as a code owner September 10, 2026 08:42
@chen21019
chen21019 enabled auto-merge (squash) September 10, 2026 08:55
@chen21019
chen21019 disabled auto-merge September 10, 2026 08:58
@chen21019 chen21019 closed this Sep 10, 2026
@chen21019
chen21019 force-pushed the fix/public-origin-0.23.14 branch from 26c4d6f to f835fa8 Compare September 10, 2026 08:58
Preserve an explicit host-bound public origin behind TLS termination and update the reviewed 0.23.14 release gate.
@chen21019 chen21019 reopened this Sep 10, 2026
@chen21019
chen21019 merged commit 3b5788b into main Sep 10, 2026
4 checks passed
@chen21019
chen21019 deleted the fix/public-origin-0.23.14 branch September 10, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant