Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Fix keyboardInteractive with audit-log
Browse files Browse the repository at this point in the history
  • Loading branch information
tsipinakis committed Feb 15, 2024
1 parent 2c74d26 commit 1d5a4ce
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions internal/auditlogintegration/handler_networkconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package auditlogintegration

import (
"context"
"fmt"

Check failure on line 5 in internal/auditlogintegration/handler_networkconnection.go

View workflow job for this annotation

GitHub Actions / go test

imported and not used: "fmt"

Check failure on line 5 in internal/auditlogintegration/handler_networkconnection.go

View workflow job for this annotation

GitHub Actions / go test

imported and not used: "fmt"

Check failure on line 5 in internal/auditlogintegration/handler_networkconnection.go

View workflow job for this annotation

GitHub Actions / golangci-lint

"fmt" imported and not used (typecheck)

Check failure on line 5 in internal/auditlogintegration/handler_networkconnection.go

View workflow job for this annotation

GitHub Actions / golangci-lint

"fmt" imported and not used (typecheck)

Check failure on line 5 in internal/auditlogintegration/handler_networkconnection.go

View workflow job for this annotation

GitHub Actions / go test

imported and not used: "fmt"

Check failure on line 5 in internal/auditlogintegration/handler_networkconnection.go

View workflow job for this annotation

GitHub Actions / go test

imported and not used: "fmt"

"go.containerssh.io/libcontainerssh/auditlog/message"
publicAuth "go.containerssh.io/libcontainerssh/auth"
"go.containerssh.io/libcontainerssh/internal/auditlog"
internalAuth "go.containerssh.io/libcontainerssh/internal/auth"
"go.containerssh.io/libcontainerssh/internal/sshserver"
"go.containerssh.io/libcontainerssh/metadata"
"go.containerssh.io/libcontainerssh/auditlog/message"
publicAuth "go.containerssh.io/libcontainerssh/auth"
"go.containerssh.io/libcontainerssh/internal/auditlog"
internalAuth "go.containerssh.io/libcontainerssh/internal/auth"
"go.containerssh.io/libcontainerssh/internal/sshserver"
"go.containerssh.io/libcontainerssh/metadata"
)

type networkConnectionHandler struct {
Expand Down Expand Up @@ -44,8 +45,8 @@ func (n *networkConnectionHandler) OnAuthKeyboardInteractive(
return answers, err
}
var auditAnswers []message.KeyboardInteractiveAnswer
for _, q := range auditQuestions {
a, err := answers.GetByQuestionText(q.Question)
for _, q := range questions {
a, err := answers.Get(q)
if err != nil {
return answers, err
}
Expand Down

0 comments on commit 1d5a4ce

Please sign in to comment.