Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SSH server #18711

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b002923
Update SSH server
Feb 10, 2022
5a6843f
Use replace instead
Feb 10, 2022
44d87b4
Merge branch 'main' into fix-ssh-server
Feb 12, 2022
d92f847
Use gitea.com
Feb 12, 2022
fb8f6a6
Merge branch 'main' into fix-ssh-server
Feb 15, 2022
cc0a6ca
Use gitea.com for go-crypto
Feb 15, 2022
aeaf84a
Use really really updated forks
Feb 16, 2022
d561b2d
Merge branch 'main' into fix-ssh-server
Feb 16, 2022
e7e7d7c
Replace x/crypto in our go.mod
Feb 16, 2022
6c24258
Merge branch 'main' into fix-ssh-server
Feb 25, 2022
7d54da2
Merge branch 'main' into fix-ssh-server
Mar 4, 2022
c01ea7c
Use hard-forks
Mar 4, 2022
30dc0bd
Merge remote-tracking branch 'origin/main' into fix-ssh-server
zeripath Mar 9, 2022
45bef04
Merge branch 'main' into fix-ssh-server
zeripath Mar 10, 2022
23e009f
Merge branch 'main' into fix-ssh-server
Mar 10, 2022
96a04ab
Merge branch 'main' into fix-ssh-server
Mar 13, 2022
96cdeb8
Make gitea-vet proof
Mar 13, 2022
fbf26a3
Merge branch 'master' into fix-ssh-server
6543 Mar 24, 2022
212f9fc
Merge branch 'main' into fix-ssh-server
Mar 24, 2022
3fe526f
Merge branch 'main' into fix-ssh-server
6543 Mar 25, 2022
f6614ec
Update depedencies
Mar 25, 2022
933b3fc
Merge branch 'main' into fix-ssh-server
Mar 25, 2022
f33cde4
Merge branch 'main' into fix-ssh-server
Apr 12, 2022
926efca
Merge branch 'main' into fix-ssh-server
Apr 14, 2022
194d48e
Merge branch 'main' into fix-ssh-server
6543 Apr 20, 2022
782628c
Merge branch 'main' into fix-ssh-server
Apr 28, 2022
8ac01a6
Merge branch 'main' into fix-ssh-server
May 5, 2022
f6d8090
Merge remote-tracking branch 'origin/main' into fix-ssh-server
May 28, 2022
27bb9df
Merge branch 'main' into fix-ssh-server
techknowlogick May 28, 2022
66c0c55
Merge branch 'main' into fix-ssh-server
6543 May 29, 2022
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
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ go 1.17
require (
code.gitea.io/gitea-vet v0.2.2-0.20220122151748-48ebc902541b
code.gitea.io/sdk/gitea v0.15.1
gitea.com/gitea/gliderlabs-ssh v0.0.0-20220325210844-b53dd11d9536
gitea.com/gitea/go-crypto v0.0.0-20220325193035-0bf7b22f0acf
gitea.com/go-chi/binding v0.0.0-20220309004920-114340dabecb
gitea.com/go-chi/cache v0.0.0-20211201020628-dcb774c4ffea
gitea.com/go-chi/captcha v0.0.0-20211013065431-70641c1a35d5
Expand All @@ -25,7 +27,6 @@ require (
github.com/editorconfig/editorconfig-core-go/v2 v2.4.3
github.com/emirpasic/gods v1.12.0
github.com/ethantkoenig/rupture v1.0.1
github.com/gliderlabs/ssh v0.3.3
github.com/go-chi/chi/v5 v5.0.7
github.com/go-chi/cors v1.2.0
github.com/go-enry/go-enry/v2 v2.8.0
Expand Down
7 changes: 5 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ contrib.go.opencensus.io/exporter/stackdriver v0.13.5/go.mod h1:aXENhDJ1Y4lIg4EU
contrib.go.opencensus.io/integrations/ocsql v0.1.4/go.mod h1:8DsSdjz3F+APR+0z0WkU1aRorQCFfRxvqjUUPMbF3fE=
contrib.go.opencensus.io/resource v0.1.1/go.mod h1:F361eGI91LCmW1I/Saf+rX0+OFcigGlFvXwEGEnkRLA=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
gitea.com/gitea/gliderlabs-ssh v0.0.0-20220325210844-b53dd11d9536 h1:x0r+UU5zhDnSVhydsyAEREB717CzD6QPuIsMO8pPSiw=
gitea.com/gitea/gliderlabs-ssh v0.0.0-20220325210844-b53dd11d9536/go.mod h1:qh1xCKK4gZqEBS9vSRqo5DrVheLOd7m6jeiuNxIsx3E=
gitea.com/gitea/go-crypto v0.0.0-20220325193035-0bf7b22f0acf h1:44CHfaz3/pDiBAGAfGJ6sXCEpEBO56zCtnsXxImdLnQ=
gitea.com/gitea/go-crypto v0.0.0-20220325193035-0bf7b22f0acf/go.mod h1:buuLZh9epm8aBFMsO7hQX3n+J4Ck0Tz8mOKrJ1OTLe4=
gitea.com/go-chi/binding v0.0.0-20220309004920-114340dabecb h1:Yy0Bxzc8R2wxiwXoG/rECGplJUSpXqCsog9PuJFgiHs=
gitea.com/go-chi/binding v0.0.0-20220309004920-114340dabecb/go.mod h1:77TZu701zMXWJFvB8gvTbQ92zQ3DQq/H7l5wAEjQRKc=
gitea.com/go-chi/cache v0.0.0-20210110083709-82c4c9ce2d5e/go.mod h1:k2V/gPDEtXGjjMGuBJiapffAXTv76H4snSmlJRLUhH0=
Expand Down Expand Up @@ -444,9 +448,8 @@ github.com/fxamacker/cbor/v2 v2.4.0/go.mod h1:TA1xS00nchWmaBnEIxPSE5oHLuJBAVvqrt
github.com/getsentry/raven-go v0.2.0 h1:no+xWJRb5ZI7eE8TWgIq1jLulQiIoLG0IfYxv5JYMGs=
github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0=
github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
github.com/gliderlabs/ssh v0.3.3 h1:mBQ8NiOgDkINJrZtoizkC3nDNYgSaWtxyem6S2XHBtA=
github.com/gliderlabs/ssh v0.3.3/go.mod h1:ZSS+CUoKHDrqVakTfTWUlKSr9MtMFkC4UvtQKD7O914=
github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q=
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q=
github.com/glycerine/go-unsnap-stream v0.0.0-20181221182339-f9677308dec2/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE=
Expand Down
5 changes: 3 additions & 2 deletions modules/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

package ssh

// Allow "gitea.com/gitea/go-crypto/ssh" import.
import (
"bytes"
"context"
Expand All @@ -29,8 +30,8 @@ import (
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"

"github.com/gliderlabs/ssh"
gossh "golang.org/x/crypto/ssh"
ssh "gitea.com/gitea/gliderlabs-ssh"
gossh "gitea.com/gitea/go-crypto/ssh"
)

type contextKey string
Expand Down
2 changes: 1 addition & 1 deletion modules/ssh/ssh_graceful.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"

"github.com/gliderlabs/ssh"
ssh "gitea.com/gitea/gliderlabs-ssh"
)

func listen(server *ssh.Server) {
Expand Down