Skip to content

Commit

Permalink
fix: don't print auth headers to stdout :(
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Sep 22, 2023
1 parent 01b0e76 commit 07f833a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion authn/authn.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func GetAuthenticationHeaders(ctx context.Context, endpoint *url.URL, authentica
w := &strings.Builder{}
for name, values := range headers {
for _, value := range values {
fmt.Printf("%s: %s\r\n", name, value)
fmt.Fprintf(w, "%s: %s\r\n", name, value)
}
}
err = keyring.Set(keyringKey, usr.Name, w.String())
Expand Down
4 changes: 4 additions & 0 deletions backend/common/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func InitialiseClients(authenticators map[string]string) {
}
}

func init() {
InitialiseClients(map[string]string{})
}

var (
dialer = &net.Dialer{
Timeout: time.Second * 10,
Expand Down

0 comments on commit 07f833a

Please sign in to comment.