Skip to content

Commit db048a2

Browse files
committed
updated deps
1 parent e4f6487 commit db048a2

File tree

375 files changed

+16
-224590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

375 files changed

+16
-224590
lines changed

go.mod

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,15 @@ require (
88
github.com/dusted-go/logging v1.3.0
99
github.com/gorilla/mux v1.8.1
1010
github.com/gorilla/websocket v1.5.3
11-
github.com/sirupsen/logrus v1.9.3
1211
github.com/tionis/ssh-tools v0.0.0-20240919143858-d053c915c7d2
1312
github.com/urfave/cli/v2 v2.27.7
13+
gopkg.in/yaml.v3 v3.0.1
1414
)
1515

16-
require golang.org/x/crypto v0.40.0 // indirect
17-
1816
require (
1917
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
2018
github.com/russross/blackfriday/v2 v2.1.0 // indirect
21-
github.com/stretchr/testify v1.10.0 // indirect
2219
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 // indirect
23-
golang.org/x/sys v0.34.0 // indirect
24-
gopkg.in/yaml.v3 v3.0.1
20+
golang.org/x/crypto v0.41.0 // indirect
21+
golang.org/x/sys v0.35.0 // indirect
2522
)

go.sum

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,26 @@
11
github.com/cpuguy83/go-md2man/v2 v2.0.7 h1:zbFlGlXEAKlwXpmvle3d8Oe3YnkKIK4xSRTd3sHPnBo=
22
github.com/cpuguy83/go-md2man/v2 v2.0.7/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
3-
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4-
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
5-
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
63
github.com/dusted-go/logging v1.3.0 h1:SL/EH1Rp27oJQIte+LjWvWACSnYDTqNx5gZULin0XRY=
74
github.com/dusted-go/logging v1.3.0/go.mod h1:s58+s64zE5fxSWWZfp+b8ZV0CHyKHjamITGyuY1wzGg=
85
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
96
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
107
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
118
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
12-
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
13-
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
149
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
1510
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
16-
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
17-
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
18-
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
19-
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
20-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
21-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
2211
github.com/tionis/ssh-tools v0.0.0-20240919143858-d053c915c7d2 h1:VAOv+fu2vykyqVVP1D5a0KUNVDhZEAbHKTACGt4ftZw=
2312
github.com/tionis/ssh-tools v0.0.0-20240919143858-d053c915c7d2/go.mod h1:Al0a62rNWs9VVo60gvHZ3tzy2cQ5B1PVxi1qY3zDB40=
2413
github.com/urfave/cli/v2 v2.27.7 h1:bH59vdhbjLv3LAvIu6gd0usJHgoTTPhCFib8qqOwXYU=
2514
github.com/urfave/cli/v2 v2.27.7/go.mod h1:CyNAG/xg+iAOg0N4MPGZqVmv2rCoP267496AOXUZjA4=
2615
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 h1:FnBeRrxr7OU4VvAzt5X7s6266i6cSVkkFPS0TuXWbIg=
2716
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
28-
golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM=
29-
golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY=
30-
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
31-
golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
32-
golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
33-
golang.org/x/term v0.33.0 h1:NuFncQrRcaRvVmgRkvM3j/F00gWIAlcmlB8ACEKmGIg=
34-
golang.org/x/term v0.33.0/go.mod h1:s18+ql9tYWp1IfpV9DmCtQDDSRBUjKaw9M1eAv5UeF0=
17+
golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4=
18+
golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc=
19+
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
20+
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
21+
golang.org/x/term v0.34.0 h1:O/2T7POpk0ZZ7MAzMeWFSg6S5IpWd/RXDlM9hgM3DR4=
22+
golang.org/x/term v0.34.0/go.mod h1:5jC53AEywhIVebHgPVeg0mj8OD3VO9OzclacVrqpaAw=
3523
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
3624
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
37-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
3825
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
3926
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

internal/handlers/handlers.go

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func PublicHandler(s *types.Server) http.HandlerFunc {
3737
return func(w http.ResponseWriter, r *http.Request) {
3838
vars := mux.Vars(r)
3939
path := vars["path"]
40-
40+
4141
s.Logger.Info("Public request",
4242
"path", path,
4343
"method", r.Method,
@@ -69,9 +69,7 @@ func UserHandler(s *types.Server) http.HandlerFunc {
6969
}
7070

7171
// Handle different Authorization header formats
72-
if strings.HasPrefix(token, "Bearer ") {
73-
token = strings.TrimPrefix(token, "Bearer ")
74-
}
72+
token = strings.TrimPrefix(token, "Bearer ")
7573

7674
allowed, reason, err := auth.AuthenticateToken(
7775
s.AuthCache,
@@ -121,9 +119,7 @@ func UserAdminHandler(s *types.Server) http.HandlerFunc {
121119
}
122120

123121
// Handle different Authorization header formats
124-
if strings.HasPrefix(token, "Bearer ") {
125-
token = strings.TrimPrefix(token, "Bearer ")
126-
}
122+
token = strings.TrimPrefix(token, "Bearer ")
127123

128124
// Check if user is admin
129125
allowed, reason, err := auth.AuthenticateToken(
@@ -223,9 +219,7 @@ func ForwardHookHandler(s *types.Server) http.HandlerFunc {
223219
}
224220

225221
// Handle different Authorization header formats
226-
if strings.HasPrefix(token, "Bearer ") {
227-
token = strings.TrimPrefix(token, "Bearer ")
228-
}
222+
token = strings.TrimPrefix(token, "Bearer ")
229223

230224
allowed, reason, err := auth.AuthenticateToken(
231225
s.AuthCache,
@@ -314,9 +308,7 @@ func ReverseHookHandler(s *types.Server) http.HandlerFunc {
314308
}
315309

316310
// Handle different Authorization header formats
317-
if strings.HasPrefix(token, "Bearer ") {
318-
token = strings.TrimPrefix(token, "Bearer ")
319-
}
311+
token = strings.TrimPrefix(token, "Bearer ")
320312

321313
allowed, reason, err := auth.AuthenticateToken(
322314
s.AuthCache,

vendor/github.com/sirupsen/logrus/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

vendor/github.com/sirupsen/logrus/.golangci.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

vendor/github.com/sirupsen/logrus/.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)