Skip to content

Commit cd9d765

Browse files
committed
fix: remove import of tailscale ssh package
1 parent 43c27a1 commit cd9d765

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

go.mod

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ require (
7878
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
7979
github.com/akutz/memconn v0.1.0 // indirect
8080
github.com/alexbrainman/sspi v0.0.0-20231016080023-1a75b4708caa // indirect
81-
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect
8281
github.com/aws/aws-sdk-go v1.51.29 // indirect
8382
github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect
8483
github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect
@@ -103,7 +102,6 @@ require (
103102
github.com/containerd/continuity v0.4.3 // indirect
104103
github.com/coreos/go-iptables v0.7.0 // indirect
105104
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
106-
github.com/creack/pty v1.1.21 // indirect
107105
github.com/danieljoos/wincred v1.2.1 // indirect
108106
github.com/davecgh/go-spew v1.1.1 // indirect
109107
github.com/dblohm7/wingoes v0.0.0-20240123200102-b75a8a7d7eb0 // indirect
@@ -162,7 +160,6 @@ require (
162160
github.com/jsimonetti/rtnetlink v1.4.1 // indirect
163161
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
164162
github.com/kortschak/wol v0.0.0-20200729010619-da482cc4850a // indirect
165-
github.com/kr/fs v0.1.0 // indirect
166163
github.com/kylelemons/godebug v1.1.0 // indirect
167164
github.com/labstack/gommon v0.4.2 // indirect
168165
github.com/lib/pq v1.10.6 // indirect
@@ -187,7 +184,6 @@ require (
187184
github.com/pierrec/lz4/v4 v4.1.21 // indirect
188185
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
189186
github.com/pkg/errors v0.9.1 // indirect
190-
github.com/pkg/sftp v1.13.6 // indirect
191187
github.com/pmezard/go-difflib v1.0.0 // indirect
192188
github.com/prometheus/client_model v0.6.1 // indirect
193189
github.com/prometheus/common v0.53.0 // indirect
@@ -206,7 +202,6 @@ require (
206202
github.com/tailscale/wireguard-go v0.0.0-20231121184858-cc193a0b3272 // indirect
207203
github.com/tcnksm/go-httpstat v0.2.0 // indirect
208204
github.com/tkuchiki/go-timezone v0.2.3 // indirect
209-
github.com/u-root/u-root v0.12.0 // indirect
210205
github.com/u-root/uio v0.0.0-20240118234441-a3c409a6018e // indirect
211206
github.com/ulikunitz/xz v0.5.12 // indirect
212207
github.com/valyala/bytebufferpool v1.0.0 // indirect

go.sum

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,6 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
582582
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
583583
github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU=
584584
github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo=
585-
github.com/hugelgupf/vmtest v0.0.0-20240102225328-693afabdd27f h1:ov45/OzrJG8EKbGjn7jJZQJTN7Z1t73sFYNIRd64YlI=
586-
github.com/hugelgupf/vmtest v0.0.0-20240102225328-693afabdd27f/go.mod h1:JoDrYMZpDPYo6uH9/f6Peqms3zNNWT2XiGgioMOIGuI=
587585
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
588586
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
589587
github.com/illarion/gonotify v1.0.1 h1:F1d+0Fgbq/sDWjj/r66ekjDG+IDeecQKUFH4wNwsoio=
@@ -880,8 +878,6 @@ github.com/tkuchiki/go-timezone v0.2.3 h1:D3TVdIPrFsu9lxGxqNX2wsZwn1MZtTqTW0mdev
880878
github.com/tkuchiki/go-timezone v0.2.3/go.mod h1:oFweWxYl35C/s7HMVZXiA19Jr9Y0qJHMaG/J2TES4LY=
881879
github.com/travisjeffery/certmagic-sqlstorage v1.1.1 h1:xJyKQUnX8yc3vDZJAavBU0j+0XvaLDsPFk06OLwnhPg=
882880
github.com/travisjeffery/certmagic-sqlstorage v1.1.1/go.mod h1:bCTLU/lPOaLBZuVdjB3CT+tSQ9DAz77bsR/xxMZUKD4=
883-
github.com/u-root/gobusybox/src v0.0.0-20231228173702-b69f654846aa h1:unMPGGK/CRzfg923allsikmvk2l7beBeFPUNC4RVX/8=
884-
github.com/u-root/gobusybox/src v0.0.0-20231228173702-b69f654846aa/go.mod h1:Zj4Tt22fJVn/nz/y6Ergm1SahR9dio1Zm/D2/S0TmXM=
885881
github.com/u-root/u-root v0.12.0 h1:K0AuBFriwr0w/PGS3HawiAw89e3+MU7ks80GpghAsNs=
886882
github.com/u-root/u-root v0.12.0/go.mod h1:FYjTOh4IkIZHhjsd17lb8nYW6udgXdJhG1c0r6u0arI=
887883
github.com/u-root/uio v0.0.0-20240118234441-a3c409a6018e h1:BA9O3BmlTmpjbvajAwzWx4Wo2TRVdpPXZEeemGQcajw=
@@ -978,7 +974,6 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
978974
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
979975
golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
980976
golang.org/x/crypto v0.0.0-20221012134737-56aed061732a/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
981-
golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw=
982977
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
983978
golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30=
984979
golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=

pkg/ssh/recorder.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"os/signal"
1414
"path"
1515
"syscall"
16-
"tailscale.com/ssh/tailssh"
16+
"tailscale.com/tailcfg"
1717
"tailscale.com/tsnet"
1818
"time"
1919
)
@@ -26,6 +26,11 @@ type RecorderConfig struct {
2626
Hostname string
2727
}
2828

29+
type CastHeader struct {
30+
Timestamp int64 `json:"timestamp"`
31+
SrcNodeID tailcfg.StableNodeID `json:"srcNodeID"`
32+
}
33+
2934
func Start(ctx context.Context, c RecorderConfig) error {
3035
ctx = contextWithSigterm(ctx)
3136

@@ -104,7 +109,7 @@ func record(dir string) func(echo.Context) error {
104109
return err
105110
}
106111

107-
var header tailssh.CastHeader
112+
var header CastHeader
108113
if err := json.Unmarshal(line, &header); err != nil {
109114
return err
110115
}

0 commit comments

Comments
 (0)