[PR #5306] [CLOSED] [proxy] Fix/http redirect #27660

Open
opened 2026-08-05 07:09:04 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5306
Author: @pappz
Created: 2/13/2026
Status: Closed

Base: prototype/reverse-proxyHead: fix/http-redirect


📝 Commits (5)

  • 97a561c Add structured logging for HTTP server errors
  • 9dc47d4 Add HTTP to HTTPS redirect
  • cc05f45 Merge branch 'prototype/reverse-proxy' into fix/log-formatter
  • 34448bc Merge branch 'fix/log-formatter' into fix/http-redirect
  • 437c778 Reducate cognitive complexity

📊 Changes

5 files changed (+229 additions, -62 deletions)

View changed files

📝 proxy/cmd/proxy/cmd/root.go (+4 -4)
proxy/http_redirect_listener.go (+98 -0)
📝 proxy/internal/debug/client_test.go (+9 -9)
proxy/log.go (+21 -0)
📝 proxy/server.go (+97 -49)

📄 Description

Describe your changes

Redirect http to https
Reducate cognitive complexity

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/5306 **Author:** [@pappz](https://github.com/pappz) **Created:** 2/13/2026 **Status:** ❌ Closed **Base:** `prototype/reverse-proxy` ← **Head:** `fix/http-redirect` --- ### 📝 Commits (5) - [`97a561c`](https://github.com/netbirdio/netbird/commit/97a561c56bfa5cd2eddafb95d4256c973e1def46) Add structured logging for HTTP server errors - [`9dc47d4`](https://github.com/netbirdio/netbird/commit/9dc47d462c325d21ad48dfde350eef2c48a44577) Add HTTP to HTTPS redirect - [`cc05f45`](https://github.com/netbirdio/netbird/commit/cc05f4582b54191daaedf1a19b9dcb1b81fb3df4) Merge branch 'prototype/reverse-proxy' into fix/log-formatter - [`34448bc`](https://github.com/netbirdio/netbird/commit/34448bc9faeadd3d81c8a5f6aa5847ba12fbd953) Merge branch 'fix/log-formatter' into fix/http-redirect - [`437c778`](https://github.com/netbirdio/netbird/commit/437c778ee95d1b0b4e30e606c1f1a82099e73b5f) Reducate cognitive complexity ### 📊 Changes **5 files changed** (+229 additions, -62 deletions) <details> <summary>View changed files</summary> 📝 `proxy/cmd/proxy/cmd/root.go` (+4 -4) ➕ `proxy/http_redirect_listener.go` (+98 -0) 📝 `proxy/internal/debug/client_test.go` (+9 -9) ➕ `proxy/log.go` (+21 -0) 📝 `proxy/server.go` (+97 -49) </details> ### 📄 Description ## Describe your changes Redirect http to https Reducate cognitive complexity ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [ ] Documentation is **not needed** for this change (explain why) ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 07:09:04 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#27660