Skip to content

ssh/tailssh: unfork x/crypto/ssh #8593

Closed

Description

@bradfitz

We had to fork golang.org/x/crypto/ssh to ship Tailscale SSH, to add some API upstream didn't have.

This is a tracking bug to get our API changes upstream so we can unfork.

e.g.

 $ perl -i -npe 's,github.com/tailscale/golang-x-crypto/ssh,golang.org/x/crypto/ssh,' $(git grep -l golang-x-crypto)
$ ./tool/go install ./cmd/tailscaled/
# tailscale.com/tempfork/gliderlabs/ssh
tempfork/gliderlabs/ssh/context.go:124:46: conn.SendAuthBanner undefined (type "golang.org/x/crypto/ssh".ConnMetadata has no field or method SendAuthBanner)

/cc @awly @noncombatant @maisem

Activity

  1. added
    security
    ssh
    on Jul 12, 2023
  2. bradfitz commented on Jul 12, 2023

    @bradfitz
    MemberAuthor
  3. bradfitz commented on Jul 12, 2023

    @bradfitz
    MemberAuthor

    (But that's unlikely acceptable for upstream, given how it adds a weird imperative method on an otherwise getter-only metadata interface)

  4. bradfitz commented on Nov 13, 2023

    @bradfitz
    MemberAuthor

    /cc @dsnet too

  5. self-assigned this
    on Dec 12, 2023
  6. awly commented on Feb 21, 2024

    @awly
    Member

    FYI, the two upstream proposals needed to unfork:

  7. oxtoacart commented on Feb 27, 2024

    @oxtoacart
    Contributor

    Per discussion with @rhealitycheck and @awly, we'll go ahead and refactor the client to prepare for the form of x/crypto/ssh anticipated based on the two open proposals.

    We'll also consider removing PubKeys from SSHPrincipal as this functionality is currently unused and not anticipated to come into use.

  8. 52 remaining items

  9. oxtoacart commented on Jan 28, 2025

    @oxtoacart
    Contributor

    This is done, thanks for all your work upstreaming changes and reviewing our integration @awly and @bradfitz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

securityssh

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions