Skip to content

fix(proxy): normalize trailing-dot CONNECT hosts before policy evaluation#2

Closed
letv1nnn wants to merge 7 commits into
mainfrom
2201-normalize-trailing-dot-host
Closed

fix(proxy): normalize trailing-dot CONNECT hosts before policy evaluation#2
letv1nnn wants to merge 7 commits into
mainfrom
2201-normalize-trailing-dot-host

Conversation

@letv1nnn

@letv1nnn letv1nnn commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes inconsistent handling of trailing-dot hostnames (e.g. api.example.com.) in the sandbox supervisor's CONNECT proxy. Such hosts are valid RFC 1034 FQDNs used in Kubernetes ndots:5 environments to bypass search-domain expansion, but were treated as distinct from their undotted equivalents across policy evaluation, middleware selection, and credential matching.

Changes

  • Added normalize_connect_host() helper that strips exactly one trailing dot from the CONNECT authority host
  • Applied normalization at the call site in handle_tcp_connection — policy evaluation, middleware selection, and logging all receive the canonical (undotted) form
  • resolve_and_check_trusted_gateway and resolve_and_check_allowed_ips receive the original raw_host to preserve root-anchored DNS semantics
  • Added unit tests covering: single trailing dot stripped, clean host unchanged, double-dot strips only one (remains invalid downstream)

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

johntmyers and others added 7 commits July 13, 2026 08:52
* fix(tui): redraw after sandbox shell exits

Closes NVIDIA#2229

Render the restored terminal before synchronous gateway refreshes and propagate terminal lifecycle failures from both SSH handoff paths.

Signed-off-by: John T. Myers <9696606+johntmyers@users.noreply.github.com>

* fix(tui): restore input after sandbox shell

Discard stale events accumulated around the suspended TUI and let the normal periodic tick refresh state after resuming.

Signed-off-by: John T. Myers <9696606+johntmyers@users.noreply.github.com>

---------

Signed-off-by: John T. Myers <9696606+johntmyers@users.noreply.github.com>
…#2239)

Batch triage previously processed all state:triage-needed issues
immediately without any confirmation. This led to accidental
mass-commenting (29 triage comments on a public repo) when the
skill was invoked by mistake.

Add a mandatory preview-and-confirm step: the agent must show the
issue count and titles, then ask for explicit user confirmation
before posting any comments.

Single-issue mode is unchanged.

Assisted-By: 🤖 Claude Code

Signed-off-by: Roland Huß <rhuss@redhat.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>
Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
…name (NVIDIA#2241)

generate-certs stages temp files beside --output-dir using
dir.with_file_name(). When --output-dir is a container or WSL volume
mount, the staging dir lands on a different filesystem and
std::fs::rename fails with EXDEV.

Move staging inside the output dir so the rename always stays on the
same filesystem, preserving atomic replacement.

Fixes NVIDIA#2173

Signed-off-by: Grace Smith <grasmith@redhat.com>
* docs(agents): add gator launch skill

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* docs(agents): narrow gator launch trigger

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* docs(agents): trim gator launch skill intro

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* docs(agents): harden gator launch examples

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* docs(agents): avoid assuming gator gateway

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* docs(agents): trim gator launch rules

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

---------

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>
Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
@letv1nnn letv1nnn force-pushed the 2201-normalize-trailing-dot-host branch from 95a5648 to 9b95e11 Compare July 13, 2026 17:43
@letv1nnn letv1nnn closed this Jul 13, 2026
@letv1nnn letv1nnn deleted the 2201-normalize-trailing-dot-host branch July 13, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants