Skip to content

Commit

Permalink
Merge pull request #21 from uselagoon/log-session-id
Browse files Browse the repository at this point in the history
feat: send session ID in query to service-api
  • Loading branch information
smlx authored Feb 15, 2022
2 parents af3ef44 + a3fccab commit 30af497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/serviceapi/sshportal.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type SSHAccessQuery struct {
NamespaceName string
ProjectID int
EnvironmentID int
SessionID string
}

var (
Expand Down
1 change: 1 addition & 0 deletions internal/sshserver/authhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func pubKeyAuth(log *zap.Logger, nc *nats.Conn,
NamespaceName: ctx.User(),
ProjectID: pid,
EnvironmentID: eid,
SessionID: ctx.SessionID(),
})
if err != nil {
log.Warn("couldn't marshal SSHAccessQuery",
Expand Down

0 comments on commit 30af497

Please sign in to comment.