Skip to content

Commit d52b806

Browse files
committed
added a new rule
1 parent fbb44e7 commit d52b806

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

engine/sessions/scope/assoc.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,12 @@ func (s *Scope) awayFromAssetsWithAssociation(assoc *dbt.Entity) ([]*dbt.Entity,
246246
outSince = s.ttlStartTime(oam.AutnumRecord, oam.ContactRecord)
247247
case oam.TLSCertificate:
248248
out = true
249-
outRels = append(outRels, "subject_contact")
249+
outRels = append(outRels, "common_name", "subject_contact")
250+
since1 := s.ttlStartTime(oam.TLSCertificate, oam.FQDN)
250251
outSince = s.ttlStartTime(oam.TLSCertificate, oam.ContactRecord)
252+
if !since1.IsZero() && since1.Before(outSince) {
253+
outSince = since1
254+
}
251255
case oam.ContactRecord:
252256
out = true
253257
outRels = append(outRels, "organization", "location")

0 commit comments

Comments
 (0)