Skip to content

Commit

Permalink
create tpm signer once
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Jan 3, 2025
1 parent 888a2d0 commit f44966e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ee/tpmrunner/tpmrunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ func (tr *tpmRunner) loadOrCreateKeys(ctx context.Context) error {
tr.mux.Lock()
defer tr.mux.Unlock()

// tpm signer was already created
if tr.signer != nil {
return nil
}

priData, pubData, err := fetchKeyData(tr.store)
if err != nil {
thisErr := fmt.Errorf("fetching key data for data store: %w", err)
Expand Down

0 comments on commit f44966e

Please sign in to comment.