[management] validate posture checks on meta change before account update (#6527)

This commit is contained in:
Pascal Fischer
2026-06-25 15:02:04 +02:00
committed by GitHub
parent 17b2044596
commit 221b9c012c
5 changed files with 291 additions and 113 deletions
@@ -610,12 +610,10 @@ func (c *Controller) GetValidatedPeerWithMap(ctx context.Context, isRequiresAppr
return nil, nil, 0, err
}
startPosture := time.Now()
postureChecks, err := c.getPeerPostureChecks(account, peerID)
if err != nil {
return nil, nil, 0, err
}
log.WithContext(ctx).Debugf("getPeerPostureChecks took %s", time.Since(startPosture))
accountZones, err := c.repo.GetAccountZones(ctx, account.Id)
if err != nil {