Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto committed Jan 14, 2025
1 parent 48be1cb commit faa4cdb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
22 changes: 22 additions & 0 deletions internal/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@ type Resolver interface {
AddrFromModelUUID(ctx context.Context, user openfga.User, modelUUID string) (string, error)
}

// forwardMessage is the struct holding the information about the jump message received by the ssh client.
type forwardMessage struct {
DestAddr string
DestPort uint32
SrcAddr string
SrcPort uint32
}

// Server is the custom struct to embed the gliderlabs.ssh server and a resolver.
type Server struct {
*ssh.Server

resolver Resolver
}

// Config is the struct holding the configuration for the jump server.
type Config struct {
Port string
HostKey []byte
MaxConcurrentConnections string
}

// NewJumpServer creates the jump server struct.
func NewJumpServer(ctx context.Context, config Config, resolver Resolver) (Server, error) {
zapctx.Info(ctx, "NewJumpServer")
Expand Down
26 changes: 0 additions & 26 deletions internal/ssh/types.go

This file was deleted.

0 comments on commit faa4cdb

Please sign in to comment.