[PR #5244] [CLOSED] fix(runtime): honor per-node TLS verify and pin mode in node sync #5829

Closed
opened 2026-11-02 04:04:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5244
Author: @n0ctal
Created: 6/12/2026
Status: ❌ Closed

Base: main ← Head: claude-pr-0006-runtime-tls-pin


📝 Commits (1)

  • f7df3c9 fix(runtime): honor per-node TLS verify and pin mode in node sync

📊 Changes

2 files changed (+232 additions, -2 deletions)

View changed files

📝 internal/web/runtime/remote.go (+75 -2)
➕ internal/web/runtime/remote_tlspin_test.go (+157 -0)

📄 Description

Summary

This PR makes node-sync runtime HTTP calls honor the same per-node TLS verification / pinning settings already respected in the management path.

Why

Node sync is a high-trust Bearer-token path. If node management supports verification / skip / pin modes, runtime synchronization should use the same trust model instead of silently falling back to a different one.

Scope

  • aligns runtime remote HTTP client behavior with node TLS settings
  • keeps the existing SSRF-safe dialing behavior
  • preserves fail-safe behavior when pin parsing is invalid

Validation

  • added tests for:
    • normal verification
    • insecure/skip mode
    • certificate pin success/failure
    • malformed pin fallback behavior

Risk

Low to medium. This improves security on node-to-node communication but touches remote runtime behavior, so it is test-backed and intentionally scoped.


🔄 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/MHSanaei/3x-ui/pull/5244 **Author:** [@n0ctal](https://github.com/n0ctal) **Created:** 6/12/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `claude-pr-0006-runtime-tls-pin` --- ### 📝 Commits (1) - [`f7df3c9`](https://github.com/MHSanaei/3x-ui/commit/f7df3c9ba5033427576970383a1c52a5672f92bd) fix(runtime): honor per-node TLS verify and pin mode in node sync ### 📊 Changes **2 files changed** (+232 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `internal/web/runtime/remote.go` (+75 -2) ➕ `internal/web/runtime/remote_tlspin_test.go` (+157 -0) </details> ### 📄 Description ## Summary This PR makes node-sync runtime HTTP calls honor the same per-node TLS verification / pinning settings already respected in the management path. ## Why Node sync is a high-trust Bearer-token path. If node management supports verification / skip / pin modes, runtime synchronization should use the same trust model instead of silently falling back to a different one. ## Scope - aligns runtime remote HTTP client behavior with node TLS settings - keeps the existing SSRF-safe dialing behavior - preserves fail-safe behavior when pin parsing is invalid ## Validation - added tests for: - normal verification - insecure/skip mode - certificate pin success/failure - malformed pin fallback behavior ## Risk Low to medium. This improves security on node-to-node communication but touches remote runtime behavior, so it is test-backed and intentionally scoped. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:04:22 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5829
No description provided.