Skip to content

fix(server): bracket IPv6 pod IPs in the gateway peer endpoint #5673

Open

Description

@FrostGod

Problem

With more than one gateway replica, the chart sets OPENSHELL_PEER_ENDPOINT to <scheme>://$(OPENSHELL_POD_IP):<port>. On IPv6 clusters this becomes http://fd00:10:244::16:8080, which is not a valid URI, so replicas can't reach each other.

Exec through a replica that doesn't own the sandbox fails with supervisor session not connected.

Proposed Fix

Bracket an IPv6 host when the gateway reads OPENSHELL_PEER_ENDPOINT, giving http://[fd00:10:244::16]:8080.

Acceptance Criteria

  • An IPv6 pod IP in OPENSHELL_PEER_ENDPOINT produces a valid, bracketed peer URL.
  • IPv4 and hostname endpoints are unchanged.
  • Unit test covers both.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions