Repository navigation
Fixes from the v0.3.0 end-to-end test - #22
Merged
Merged
Conversation
- ReloadSSHD finds the active sshd unit among ssh.service/sshd.service and ssh.socket/sshd.socket, reloads it and logs the unit names. RHEL hosts were reached only through the SIGHUP fallback. - All external commands run through command(), which drops NOTIFY_SOCKET: systemd 255 warned about notifications from the systemctl probes. - A closed proxy listener is logged without the SDK's stack trace. - Rejections already logged with their reason are wrapped with host.Logged and not logged a second time by Proxy. - inspect shows "(pattern)" for wildcard permission keys. - ziti-ssh-host prints usage only for flag and argument errors.
- client.RequestCert reads the CA reply even when the write fails, so a rate-limited request reports the CA's refusal instead of a write error. ziti-ssh and ziti-scp use it. - "ziti-ssh <target>" accepts the connect flags (-L/-R/-D/-N/-A/--service). The command tree is built by newRootCmd for testing. - A handshake that ends before authentication (EOF) says that ziti-ssh-host may have refused the identity and where the reason is. - ziti-ssh and ziti-ssh-ca print usage only for flag and argument errors. - Help text states the actual certificate refresh rule.
- provisioning: "ziti edge update config" takes the JSON with --data; the sshd reload on enrollment is described for RHEL too. - operations: the ziti-ssh-managed block also overrides a command-line AuthorizedKeysCommand (EC2 Instance Connect) and logs an expected "path is not absolute" error; more rejection log lines. - usage: meaning of "handshake failed: EOF"; forward flags without connect. - CHANGELOG [Unreleased], CLAUDE.md, ARCHITECTURE.md.
r-caamano
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes from a live end-to-end test of v0.3.0 on a NetFoundry network (OpenZiti v2.0.9) with Ubuntu 24.04, Ubuntu 26.04 and RHEL 10 hosts, in shared and per-identity modes. See
CHANGELOG.md→[Unreleased].Host (
ziti-ssh-host)ReloadSSHDuses whichever ofssh.service/sshd.serviceandssh.socket/sshd.socketis active and logs the unit names. RHEL hosts were only reached through the SIGHUP fallback, and the log saidservice_active=false.command(), which dropsNOTIFY_SOCKET. On systemd 255 (Ubuntu 24.04), thesystemctlprobes causedGot notification message from PID …warnings.host.Logged, soProxydoesn't log them again asOnConnect hook failed.inspect: wildcard keys show(pattern)instead of a derived username such as_.Client (
ziti-ssh,ziti-scp,ziti-ssh-ca)client.RequestCertreads the CA's reply even when the write fails. A rate-limited request now always reportsrate limit exceeded; before, it sometimes reportedsend public key to CA: connection closed for writes.ziti-ssh <target>accepts theconnectflags (-L/-R/-D/-N/-A/--service). To make this testable, the command setup moved intonewRootCmd().handshake failed: EOF), the error says thatziti-ssh-hostmay have refused the identity and that its log has the reason.Docs
docs/provisioning.md:ziti edge update configtakes--data(the positional form fails with ziti v2.0.9); the enrollment reload is described for RHEL too.docs/operations.md:ziti-ssh-managedblock also overrides anAuthorizedKeysCommandset on sshd's command line, such as EC2 Instance Connect's (verified with OpenSSH 9.6p1 and 10.2p1);AuthorizedKeysCommand path is not absolutelog line;docs/usage.md: whathandshake failed: EOFmeans.ARCHITECTURE.md,CLAUDE.md.Testing
go build ./... && go vet ./... && go test ./...passes. New tests cover:firstActiveUnit,command()droppingNOTIFY_SOCKET, andLogged;RequestCertwhen the write fails but the refusal can still be read, and when nothing can be read;connectflags, and usage text only for flag errors;inspectshowing(pattern).ziti-ssh-hostwas installed on the RHEL 10 and Ubuntu 24.04 test hosts and the branch clients were run against them.service=sshd.serviceand sshd logsReloaded sshd.service;inspectshows(pattern).-N -Lform forwards;rate limit exceeded;Please merge with a merge commit. A v0.3.1 release follows.