Skip to content

Commit

Permalink
removing draft logging
Browse files Browse the repository at this point in the history
  • Loading branch information
misteriaud committed Feb 7, 2025
1 parent 374a3e7 commit b3a27bf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/api/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,6 @@ func CreateAndSetAuthToken(config model.Reader) error {
return fmt.Errorf("error while creating or fetching IPC cert: %w", err)
}

h := sha256.New()

_, err = h.Write(bytes.Join([][]byte{[]byte(token), ipccert, ipckey}, []byte{}))
if err != nil {
log.Errorf("error while hashing authtoken, cert and key: %v", err)
}

bs := h.Sum(nil)

log.Infof("auth hash: %x", bs)

certPool := x509.NewCertPool()
if ok := certPool.AppendCertsFromPEM(ipccert); !ok {
return fmt.Errorf("Unable to generate certPool from PERM IPC cert")
Expand Down

0 comments on commit b3a27bf

Please sign in to comment.