mirror of
https://github.com/open-webui/terminals.git
synced 2026-11-05 01:37:21 +00:00
[PR #19] [MERGED] fix: ensure container names don't exceed 63-character DNS label limit #50
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/terminals#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/terminals/pull/19
Author: @james-westbrook
Created: 4/3/2026
Status: ✅ Merged
Merged: 4/3/2026
Merged by: @tjbck
Base:
main← Head:fix-orchestrator-dns-names📝 Commits (2)
1951b21fix: ensure container names don't exceed 63-character DNS label limite474360Merge branch 'main' into fix-orchestrator-dns-names📊 Changes
4 files changed (+1124 additions, -863 deletions)
View changed files
📝
pyproject.toml(+1 -1)📝
terminals/backends/docker.py(+9 -2)📝
terminals/backends/kubernetes.py(+9 -6)📝
uv.lock(+1105 -854)📄 Description
Description
The Terminals orchestrator names spawned Open Terminal containers using the pattern
terminals-{policy_id}-{user_id}, which produces hostnames ~85 characters long. This exceeded the 63-character DNS label limit (RFC 952/1123), causing all proxy requests to fail withName or service not known.This PR updates container name to use partial hashes instead of full user UUIDs, maxing the DNS label out at ~42 characters, well beneath the DNS label limit.
Testing
Validation on Kind cluster:
terminal-98b0b3bcd572-dns-test-policy(37 chars, well within 63)Related Issues
Closes https://github.com/open-webui/terminals/issues/18
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.