Skip to content

Commit

Permalink
Use stored seal generation info for response to sys/seal-backend-status.
Browse files Browse the repository at this point in the history
  • Loading branch information
victorr committed Oct 8, 2024
1 parent 163cfd2 commit 7bcd6a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vault/logical_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -5642,7 +5642,10 @@ func (c *Core) GetSealBackendStatus(ctx context.Context) (*SealBackendStatusResp
if err != nil {
return nil, fmt.Errorf("could not list partially seal wrapped values: %w", err)
}
genInfo := c.seal.GetAccess().GetSealGenerationInfo()
genInfo, err := PhysicalSealGenInfo(ctx, c.physical)
if err != nil {
return nil, fmt.Errorf("could not read seal generation information: %w", err)
}
r.FullyWrapped = genInfo.IsRewrapped() && len(pps) == 0
return &r, nil
}
Expand Down

0 comments on commit 7bcd6a9

Please sign in to comment.