Skip to content

build(deps): bump charm.land/ssh from 0.4.2 to 0.4.3 in the go-modules group - #12

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/go-modules-435e3382b9
Closed

build(deps): bump charm.land/ssh from 0.4.2 to 0.4.3 in the go-modules group#12
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/go-modules-435e3382b9

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 12, 2026

Copy link
Copy Markdown
Contributor

Bumps the go-modules group with 1 update: charm.land/ssh.

Updates charm.land/ssh from 0.4.2 to 0.4.3

Release notes

Sourced from charm.land/ssh's releases.

v0.4.3

What's New in charm.land/ssh v0.4.3

A small release that fixes a data race in connection deadline handling.

If your server sets both HandshakeTimeout and IdleTimeout, running under -race would turn up something like this:

WARNING: DATA RACE
Write at 0x00c000a95468 by goroutine 347:
  charm.land/ssh.(*Server).handleConn()

Previous read at 0x00c000a95468 by goroutine 348:
charm.land/ssh.(*serverConn).updateDeadline()
charm.land/ssh.(*serverConn).Read()
golang.org/x/crypto/ssh.(*handshakeTransport).readLoop()

The server clears the handshake deadline once the handshake finishes. By that point crypto/ssh has already started its read loop, and every read consults that same deadline whenever IdleTimeout is set. Nothing stood between the two.

The field is now guarded by a mutex and every access goes through it.

srv := &ssh.Server{
    HandshakeTimeout: 30 * time.Second,
    IdleTimeout:      10 * time.Minute,
}

There's nothing to configure. Upgrade and the warning goes away.

The racing write lands after the handshake has already succeeded, so it could never widen the window for an unauthenticated connection. The handshake deadline had done its job by then. The only problem was that a stale read could leave a connection holding a deadline it should have dropped, and a torn read could hand SetDeadline an incorrect value.


Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the go-modules group with 1 update: [charm.land/ssh](https://github.com/charmbracelet/ssh).


Updates `charm.land/ssh` from 0.4.2 to 0.4.3
- [Release notes](https://github.com/charmbracelet/ssh/releases)
- [Commits](charmbracelet/ssh@v0.4.2...v0.4.3)

---
updated-dependencies:
- dependency-name: charm.land/ssh
  dependency-version: 0.4.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-modules
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Aug 12, 2026
@dependabot @github

dependabot Bot commented on behalf of github Aug 16, 2026

Copy link
Copy Markdown
Contributor Author

Looks like charm.land/ssh is updatable in another way, so this is no longer needed.

@dependabot dependabot Bot closed this Aug 16, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/go-modules-435e3382b9 branch August 16, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants