Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
376a1eb
chore: refresh dependencies, Go toolchain, and CI actions
emoscardini Nov 19, 2026
89e9e22
fix(ca,host): identify callers by router-supplied dialer identity
emoscardini Nov 19, 2026
d818ac0
feat(host): persistent ownership registry for per-identity accounts
emoscardini Nov 19, 2026
7c38531
fix(host): reload running sshd when ssh.socket uses Accept=no
emoscardini Nov 19, 2026
93d1c1e
test(suite): tolerate ziti-ssh-host starting before the ssh service e…
emoscardini Nov 19, 2026
b8ff0be
fix(client): stop re-signing on every call; validate CA replies
emoscardini Nov 19, 2026
1b86f5b
fix(host,ca): per-identity hardening follow-ups
emoscardini Nov 19, 2026
c85d9d8
feat(ca): restrict certificates to the local proxy via source-address
emoscardini Nov 19, 2026
7a528eb
fix(oidc): loopback-only callback server; refuse an occupied port
emoscardini Nov 19, 2026
80ab84a
fix(host): apply per-identity permissions fail-closed
emoscardini Nov 19, 2026
1648820
feat(host): optional termination of processes on last disconnect
emoscardini Nov 19, 2026
338deb1
fix(ca): cap concurrent connections; rate-limit before reading
emoscardini Nov 19, 2026
2e93687
feat(host): per-service grant policy for ziti-ssh-host.v1 configs
emoscardini Nov 19, 2026
1321ee7
fix(packaging): run ziti-ssh-ca as the controller's service user
emoscardini Nov 19, 2026
a987295
fix(ca): certify only allowed client key types
emoscardini Nov 19, 2026
08ec163
feat: agent forwarding off by default; configurable cert extensions
emoscardini Nov 19, 2026
0b246de
fix(ziti-ssh): proxy mode never prompts for key generation
emoscardini Nov 19, 2026
6c8edb7
feat(host): certificate-only login for Ziti-managed accounts
emoscardini Nov 19, 2026
2084908
fix(scp): harden downloads against hostile hosts
emoscardini Nov 19, 2026
3b2e154
fix(host): fail closed when a permissions config cannot load
emoscardini Nov 19, 2026
33541d0
fix(host): verified-chain CA keys; keep keys of unreachable controllers
emoscardini Nov 19, 2026
494fcbd
fix(host): remove a deleted user's files from shared temp dirs
emoscardini Nov 19, 2026
ebe78ee
docs: terminator names are addresses, not a per-host access boundary
emoscardini Nov 19, 2026
46c8c9d
feat(client): trust-on-first-use host key checking
emoscardini Nov 19, 2026
0ee4e70
docs: describe the CA key correctly; remove unused build-deb.sh
emoscardini Nov 19, 2026
e4cfb42
feat(ca-config): trust controller CA on first use; safer admin password
emoscardini Nov 19, 2026
8563ed0
build: add .dockerignore; pin Docker base image by digest
emoscardini Nov 19, 2026
ba904e4
packaging: install to /usr/bin; stop services on remove; purge cleanup
emoscardini Nov 19, 2026
b570cb4
ci(release): publish SHA256SUMS and build provenance attestations
emoscardini Nov 19, 2026
15bbd3e
ci: least-privilege workflow permissions; pin ziti-test-suite workflow
emoscardini Nov 19, 2026
a08bd5b
fix(client): split targets at the last @; scp local-path detection; s…
emoscardini Nov 19, 2026
7eb88af
fix(ssh): IPv6-aware -L/-R/-D parsing; port validation; warn on non-l…
emoscardini Nov 19, 2026
f35c2f3
feat(client): ask for MFA codes in every authenticating command
emoscardini Nov 19, 2026
f294d50
feat(client): passphrase for generated keys; prompt to unlock keys; r…
emoscardini Nov 19, 2026
51c5bbb
fix(host): literal-safe, deterministic permission key matching
emoscardini Nov 19, 2026
63ab2ae
fix(ca): derive usernames with ASCII-only case folding
emoscardini Nov 19, 2026
0bf9d1b
feat(ca): random certificate serials; 60 s clock-skew allowance
emoscardini Nov 19, 2026
d3e330c
fix(config): validate controller URL lists; skip unchanged identity w…
emoscardini Nov 19, 2026
409fd8f
feat(host): per-service connection limit; reject cross-service permis…
emoscardini Nov 19, 2026
fe643d5
fix(client): accept group-writable config in the owner's private group
emoscardini Nov 20, 2026
b52125c
fix(ssh): SOCKS5 refuses clients that do not offer no-auth; forwardin…
emoscardini Nov 20, 2026
17737b4
test: SFTP copy and OIDC login end to end
emoscardini Nov 20, 2026
4d67d0d
feat(client): default the SSH user to the certificate's principal
emoscardini Nov 20, 2026
3f2a126
fix(host): end scheduled jobs and expire the account when terminating…
emoscardini Nov 20, 2026
cce6b41
feat(host): check for service and config changes every 30 seconds
emoscardini Nov 20, 2026
2e29d1a
test(suite): per-identity mode end-to-end suite
emoscardini Nov 20, 2026
82755ab
ci: run the per-identity suite alongside the shared suite
emoscardini Nov 20, 2026
a6dd512
release: v0.3.0 changelog and upgrade notes
emoscardini Nov 20, 2026
47dc98c
build: download a checksum-verified nfpm instead of go install
emoscardini Nov 20, 2026
c1fb751
ci: make govulncheck use the go.mod toolchain
emoscardini Nov 20, 2026
a55caeb
ci: run govulncheck directly with the release toolchain
emoscardini Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Keep the Docker build context to what the package build needs.
# Never send credentials, identities, local notes or build output.
.git
.github
.claude
dist/
.deb-staging/
ziti-ssh
ziti-scp
ziti-ssh-ca
ziti-ssh-host
*.jwt
*.json
*.pem
*.key
*.log
SECURITY_FINDINGS.md
ziti-ssh-security-review.md
suites/
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
groups:
go-minor-patch:
update-types: [minor, patch]

- package-ecosystem: docker
directory: /scripts
schedule:
interval: weekly

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
actions-minor-patch:
update-types: [minor, patch]
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ on:
push:
branches: [main]

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
permissions:
contents: read

jobs:
test:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-go@v5
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: go.mod
cache: true
Expand All @@ -31,5 +31,15 @@ jobs:
- name: Build
run: go build ./...

# Scan with the Go toolchain that builds release binaries (go.mod's
# toolchain directive, installed by setup-go above). govulncheck-action
# is not used: its bundled setup-go reads only the go directive (1.26.0)
# or defaults to "stable", so it never scanned the release toolchain.
# The pinned version is verified against the Go checksum database;
# bump it by hand (Dependabot does not track go run versions).
- name: Vulnerability scan
uses: golang/govulncheck-action@v1
env:
GOVULNCHECK_VERSION: v1.9.0
run: |
go version
go run "golang.org/x/vuln/cmd/govulncheck@${GOVULNCHECK_VERSION}" ./...
40 changes: 31 additions & 9 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
env:
NF_DEB_TEST_REPO: ${{ vars.NF_DEB_TEST_REPO || 'nfpax-netfoundry-deb-test' }}
NF_RPM_TEST_REPO: ${{ vars.NF_RPM_TEST_REPO || 'nfpax-netfoundry-rpm-test' }}
JFROG_CLI_VERSION: ${{ vars.JFROG_CLI_VERSION || '2.78.2' }}
NFPM_VERSION: ${{ vars.NFPM_VERSION || '2.38.0' }}
JFROG_CLI_VERSION: ${{ vars.JFROG_CLI_VERSION || '2.133.0' }}
NFPM_VERSION: ${{ vars.NFPM_VERSION || '2.49.0' }}

jobs:
build_and_publish:
Expand All @@ -18,23 +18,30 @@ jobs:
permissions:
contents: write
id-token: write
attestations: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-go@v5
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: go.mod
cache: true

- name: Install nfpm
run: |
curl -sfL \
"https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm_${NFPM_VERSION}_Linux_x86_64.tar.gz" \
| tar -xz -C /usr/local/bin nfpm
set -euo pipefail
tarball="nfpm_${NFPM_VERSION}_Linux_x86_64.tar.gz"
base="https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}"
tmp="$(mktemp -d)"
curl -sfL -o "${tmp}/${tarball}" "${base}/${tarball}"
curl -sfL -o "${tmp}/checksums.txt" "${base}/checksums.txt"
(cd "${tmp}" && grep " ${tarball}\$" checksums.txt | sha256sum -c -)
tar -xzf "${tmp}/${tarball}" -C /usr/local/bin nfpm
nfpm --version

- name: Configure jFrog CLI
uses: jfrog/setup-jfrog-cli@v4
uses: jfrog/setup-jfrog-cli@4c2f06da03095113100534a16d58d8a252680949 # v5.3.5
with:
version: ${{ env.JFROG_CLI_VERSION }}
oidc-provider-name: nf-github-actions-setup-jfrog-cli
Expand All @@ -45,6 +52,20 @@ jobs:
run: |
VERSION=${GITHUB_REF_NAME#v} ARCHS=amd64,arm64 ./scripts/build-packages.sh

- name: Generate checksums
run: |
set -euo pipefail
cd dist
sha256sum -- *.deb *.rpm > SHA256SUMS
cat SHA256SUMS

- name: Attest build provenance
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-path: |
dist/*.deb
dist/*.rpm

- name: Upload DEBs to test repo
run: |
VERSION=${GITHUB_REF_NAME#v}
Expand Down Expand Up @@ -74,7 +95,8 @@ jobs:
done

- name: Create GitHub prerelease
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
with:
generate_release_notes: true
prerelease: true
files: dist/SHA256SUMS
8 changes: 6 additions & 2 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

# Least privilege by default; promote_artifactory adds id-token: write.
permissions:
contents: read

jobs:
enforce_stable_semver:
name: Require Stable Release Semver
Expand Down Expand Up @@ -54,10 +58,10 @@ jobs:
NF_RPM_TEST_REPO: ${{ vars.NF_RPM_TEST_REPO || 'nfpax-netfoundry-rpm-test' }}
NF_DEB_STABLE_REPO: ${{ vars.NF_DEB_STABLE_REPO || 'nfpax-netfoundry-deb-stable' }}
NF_RPM_STABLE_REPO: ${{ vars.NF_RPM_STABLE_REPO || 'nfpax-netfoundry-rpm-stable' }}
JFROG_CLI_VERSION: ${{ vars.JFROG_CLI_VERSION || '2.78.2' }}
JFROG_CLI_VERSION: ${{ vars.JFROG_CLI_VERSION || '2.133.0' }}
steps:
- name: Configure jFrog CLI
uses: jfrog/setup-jfrog-cli@v4
uses: jfrog/setup-jfrog-cli@4c2f06da03095113100534a16d58d8a252680949 # v5.3.5
with:
version: ${{ env.JFROG_CLI_VERSION }}
oidc-provider-name: nf-github-actions-setup-jfrog-cli
Expand Down
43 changes: 30 additions & 13 deletions .github/workflows/ziti-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ name: Integration Test
# ZTS_CHECKOUT_TOKEN — fine-grained PAT with read access to
# netfoundry/ziti-test-suite
#
# The topology is defined in suites/ziti-ssh/suite.yml:
# • 1 Ziti controller — runs ziti-ssh-ca
# • 2 edge routers — each runs ziti-ssh-host (proxies Ziti → local sshd)
# • 1 client VM — runs ziti-ssh and ziti-scp
# Two suites, same topology (1 controller running ziti-ssh-ca, 2 edge routers
# each running ziti-ssh-host, 1 client VM running ziti-ssh and ziti-scp):
# • suites/ziti-ssh/suite.yml — shared mode
# • suites/ziti-ssh-per-identity/suite.yml — per-identity mode (accounts,
# grant policy, config reload, revocation)
# Each suite gets its own stack (run_id_override). The called workflow's
# concurrency group may run them one after the other.

on:
workflow_dispatch:
Expand All @@ -26,37 +29,51 @@ on:
- 'false'
- 'true'

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
# Least privilege by default; jobs below widen only what they need.
permissions:
contents: read

jobs:
build-debs:
name: Build Debian Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-go@v5
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: go.mod
cache: true

- name: Build .deb packages
run: VERSION=0.0.0 ./scripts/build-deb.sh
run: VERSION=0.0.0 FORMAT=deb ARCHS=amd64 ./scripts/build-packages.sh

- name: Upload packages
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ziti-ssh-debs
path: dist/*.deb
retention-days: 1

integration-test:
name: Integration Test
name: Integration Test (${{ matrix.suite }})
needs: build-debs
uses: netfoundry/ziti-test-suite/.github/workflows/ziti-network.yml@main
strategy:
fail-fast: false
matrix:
suite: [ziti-ssh, ziti-ssh-per-identity]
# The reusable workflow and the suite code it checks out are pinned to the
# same commit (ziti-test-suite main, 2026-04-24). ziti-test-suite is private:
# bump both SHAs together by hand unless Dependabot has been granted access.
# id-token: write is the maximum the called workflow requests (AWS OIDC).
permissions:
contents: read
id-token: write
uses: netfoundry/ziti-test-suite/.github/workflows/ziti-network.yml@fdba452ba30e016a7cc8bbb051784606efe35c55 # main 2026-04-24
with:
topology_file: suites/ziti-ssh/suite.yml
topology_file: suites/${{ matrix.suite }}/suite.yml
run_id_override: run${{ github.run_number }}-${{ matrix.suite }}
ziti_test_suite_ref: fdba452ba30e016a7cc8bbb051784606efe35c55
artifacts: ziti-ssh-debs
keep_on_failure: ${{ inputs.keep_on_failure || 'false' }}
secrets:
Expand Down
Loading