Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feat(ha): harden gateway peer transport and expand failover conformance

未关闭
#3,529 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
helm, kubernetes, rust

调研方向

Start by reviewing PR #1868 and its three linked discussions, then trace the HA end-to-end coverage and Helm-generated and custom TLS configuration described in this issue. Done means the fail-closed transport rules, documented operation inventory, negative cases, and failover coverage all match the acceptance criteria.

由索引模型根据 Issue 内容生成。

描述

User Story

As an OpenShell cluster operator, I want gateway peer routing to require an explicitly trusted encrypted transport and to be validated across supported sandbox operations, so that HA does not weaken confidentiality or fail only on less-common workflows.

Problem Statement

PR #1868 authenticates gateway peers with Kubernetes ServiceAccount identity, but the current transport and validation contract has gaps:

  • HTTPS peer clients fall back to the platform trust store when no peer CA is configured, widening the trust surface for internal peer traffic.
  • A multi-replica gateway that itself serves plaintext accepts an http:// peer endpoint with only a warning, even though peer relays carry supervisor traffic and projected peer credentials.
  • The HA e2e keeps a sandbox alive through scaling and pod rotation and covers create/watch, exec, upload, and download, but does not exercise the full supported set of operations that depend on owner routing, such as forwarding/service traffic and configuration changes.

Impact / Why This Matters

A deployment mistake can leave internal peer traffic unencrypted or trusted through roots unrelated to the cluster peer identity. Separately, operators can pass the current HA smoke test while encountering failures in untested session-bound or configuration workflows after scaling or rolling gateway pods. The workaround is manual cluster-specific testing and inspection, which is inconsistent and easy to omit.

Proposed Design

Define and enforce a fail-closed peer transport contract for multi-replica gateways:

  • Peer routing requires TLS with an explicit peer CA or an equivalently scoped cluster trust source; it does not silently fall back to general platform roots.
  • Multi-replica startup rejects plaintext peer endpoints.
  • Documentation identifies the operations expected to remain available through a non-owner gateway and during gateway scaling, failover, and rolling replacement.
  • HA conformance keeps a long-running sandbox active while exercising representative operations from that documented inventory through different gateway replicas.

Acceptance Criteria

  • Multi-replica gateway startup rejects an http:// peer endpoint.
  • HTTPS peer routing fails closed when no explicitly scoped peer trust source is configured.
  • Helm-generated and custom TLS configurations document the required peer CA, server identity, and client identity contract.
  • The supported HA operation inventory includes sandbox create/watch, exec, file transfer, TCP or service forwarding, and relevant policy/provider configuration workflows.
  • Automated HA tests exercise that inventory against a long-running sandbox across scale-up, scale-down, owner loss, and rolling pod replacement.
  • Negative tests cover plaintext endpoints, missing peer CA material, and peer identity mismatch.
  • Architecture and gateway-configuration documentation match the enforced transport and conformance behavior.

Alternatives Considered

Continuing to warn for plaintext preserves development configurations but permits an insecure production mistake. Platform trust roots are convenient for public endpoints, but internal gateway peers already have a chart-managed identity and should use narrowly scoped trust. Testing every RPC independently would be expensive and brittle, so the conformance suite should test the documented operation classes and shared routing paths instead.

Agent Investigation

This groups the remaining peer-security and coverage review discussions from PR #1868:

Related umbrella issue: #1021.

主要语言
Rust
星标
8.7k
派生
1.3k
平均合并
2 天 6 小时
30 天内合并 PR
301

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。