Repository navigation
Releases
v1.13.13 - Prevent race in clients requesting READ/WRITE/READDIR simultaneous to OPEN/OPENDIR
What's Changed
- security fix: GHSA-2cq8-f6vp-3rjq
- fix: preserve literal paths in Glob by @hoobnn in #665
- server: do not let SSH_FXP_RENAME replace an existing file by @likitha011 in #704
- [v1] add an example of a client that reconnects by @christhomas in #690
- return an error when the server reuses an open handle by @christhomas in #672
- use the attribute flags for the attributes of an open request by @christhomas in #675
- [v1] link to the drafts on datatracker again by @christhomas in #680
- Preserve relative server symlink targets with a working directory by @omrzk in #702
- close session when NewClient fails by @christhomas in #671
- [v1] add examples of SFTP over TLS without SSH by @christhomas in #689
New Contributors
Full Changelog: v1.13.12...v1.13.13
v1.13.12
What's Changed
- fix flaky TestClientStatVFS on macOS by @drakkan in #666
- harden client reply parsers against malformed server replies by @drakkan in #655
- fix flaky TestRequestStatVFS by @christhomas in #676
- return write error for short final chunk in File.ReadFrom by @christhomas in #670
- reject hardlink and create/truncate opens on a read-only server by @likitha011 in #682
- server: do not dispatch packets that failed to unmarshal by @likitha011 in #694
- return the reader's io.ErrUnexpectedEOF from File.ReadFrom by @christhomas in #674
- [v1] send exit-status from the example servers by @christhomas in #686
New Contributors
- @likitha011 made their first contribution in #682
Full Changelog: v1.13.11...v1.13.12
v1.13.11 - maintenance release
This release bounds an unchecked pre-allocation in the SSH_FILEXFER_ATTRS decoder, updates dependencies, and includes minor code cleanups.
Security/robustness
The attribute decoder (unmarshalFileStat) allocated the extended-attribute slice directly from the wire-supplied extended_count without bounding it against the available bytes. A peer could advertise a huge extended_count in a small packet and force a multi-gigabyte allocation up front, crashing the process with fatal error: out of memory before a single entry was parsed.
What's Changed
- fix: ineffective assignments by @alrs in #650
- refactor: replace interface{} with any (Go 1.18+) by @MD-Mushfiqur123 in #652
- fix: bound extended-count pre-allocation in unmarshalFileStat by @drakkan (co-authored by @mjbommar)
New Contributors
- @alrs made their first contribution in #650
- @MD-Mushfiqur123 made their first contribution in #652
Full Changelog: v1.13.10...v1.13.11
v2.0.0-alpha2
What's Changed
- Ioslate
ssh/x/cryptowith generics by @puellanivis in #647
Full Changelog: v2.0.0-alpha...v2.0.0-alpha2
v2.0.0-alpha: A Proper Prerelease
I think we’ve basically gotten all the progress we’re going to get from pre-prereleasing and just living off of a separate branch.
So, we’re happy to release the dev-v2 branch as a proper prerelease tag v2.0.0-alpha, and we can maybe get some more traction and eyes on development and experimentation.
v1.13.10 - maintenance release
We’ve made a bunch of little fixes here and there, and I imagine the tests alone could benefit from a proper release to various systems automations.
What's Changed
- Update crypto version to v0.35.0 sftp#625 by @kbutz in #626
- go.mod: set the minimum version to 1.23.0 as x/crypto by @drakkan in #628
- run go mod tidy by @drakkan in #629
- Fix SSH subsystemrequest usage by @puellanivis in #632
- Updating go packages by @Farokhcpu in #635
- add security policy by @drakkan in #637
- Fix typos in InMemHandler comments by @KleeKitz in #640
- Don't use LICENSE as a self-test sample file by @jas4711 in #638
- Accept '-' in usernames for ls self-test by @jas4711 in #639
New Contributors
- @kbutz made their first contribution in #626
- @Farokhcpu made their first contribution in #635
- @KleeKitz made their first contribution in #640
- @jas4711 made their first contribution in #638
Full Changelog: v1.13.9...v1.13.10
v1.13.9 - better Remove errors, short-circuit unsupported fsync, and ReadFull for readfrom
What's Changed
- Backport v2/Client.Remove and File.Sync by @puellanivis in #618
- perf: ensure full write buffer for *File.ReadFrom by @justfalter in #623
New Contributors
- @justfalter made their first contribution in #623
Full Changelog: v1.13.8...v1.13.9
v1.13.8 - readAt bug fix and drive enumeration for Windows
What's Changed
- Bump golang.org/x/crypto from 0.17.0 to 0.31.0 by @dependabot in #607
- server.go: "/" for windows by @powellnorma in #571
- Issue #609 - clarify what 'path contains a regular file' actually means by @puellanivis in #611
- fix: readAt() occasional hang in concurrent reads by @cloudsbit in #621
New Contributors
- @powellnorma made their first contribution in #571
- @cloudsbit made their first contribution in #621
Full Changelog: v1.13.7...v1.13.8
v1.13.7 - z/OS support
What's Changed
- Fix typo in request-interfaces.go by @Lilja in #558
- fix: remove ioutil and use io/os libraries by @urko-b in #560
- fix: sftp client hang when exit in sftp server example by @wwcd in #564
- Cancelable ReadDirContext by @ungerik in #565
- Bump golang.org/x/crypto from 0.1.0 to 0.17.0 by @dependabot in #568
- Rework client to prevent after-Close usage, and support perm at Open by @puellanivis in #574
- Add support for z/OS by @puellanivis in #580
- Add support for zos/s390x by @dustin-ward in #582
- add CloserListerAt by @drakkan in #577
- Add SetExtendedAttrs to Client by @peterverraedt in #583
- Add WithMaxTxPacket server option by @peterverraedt in #584
- update ReadFrom and ReadFromWithConcurrency docs by @emar-kar in #588
New Contributors
- @Lilja made their first contribution in #558
- @urko-b made their first contribution in #560
- @wwcd made their first contribution in #564
- @ungerik made their first contribution in #565
- @dependabot made their first contribution in #568
- @dustin-ward made their first contribution in #582
- @emar-kar made their first contribution in #588
Full Changelog: v1.13.6...v1.13.7
v1.13.6
[GH-499] writeToSequential: improve tests for write errors
[GH-513] More context for EOF during client setup
[GH-516] RealPathFileLister: allow to return an error
[GH-525] Document the weirdness of the reversal of arguments to SSH_FXP_SYMLINK
[GH-526] request server: handle relative symlinks
[GH-528] Add support for working directory in Server
[GH-533] CI: add CIFuzz integration
[GH-537] Stop ReadFromWithConcurrency sending more data than it needs to
[GH-545] refactor sshfx encoding, fix link rot, go fmt
[GH-553] Marshal extended attribute data if FileInfo supports it
[GH-554] Properly handle io.EOF error conditions when reading