Skip to content

Commit 378bb36

Browse files
committed
Add DNS SANs to the audit event
1 parent e98e74e commit 378bb36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/auth/machineid/workloadidentityv1/issuer_service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ func (s *IssuanceService) issueX509SVID(
506506
evt := baseEvent(ctx, wid, spiffeID)
507507
evt.SVIDType = "x509"
508508
evt.SerialNumber = serialString
509+
evt.DNSSANs = wid.GetSpec().GetSpiffe().GetX509Svid().GetDnsSans()
509510
if err := s.emitter.EmitAuditEvent(ctx, evt); err != nil {
510511
s.logger.WarnContext(
511512
ctx,

0 commit comments

Comments
 (0)