Skip to content

Commit

Permalink
Correct edge names in log.Warnf calls for the ADCSESCx edges. (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7ZJ authored Dec 3, 2024
1 parent 70563e4 commit 5544813
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/go/analysis/ad/adcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC1(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC1.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC1.String(), err)
}
Expand All @@ -130,7 +130,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC3(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC3.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC3.String(), err)
}
Expand All @@ -139,7 +139,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC4(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC4.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC4.String(), err)
}
Expand All @@ -148,7 +148,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC6a(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC6a.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC6a.String(), err)
}
Expand All @@ -157,7 +157,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC6b(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC6b.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC6b.String(), err)
}
Expand All @@ -166,7 +166,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC9a(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC9a.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC9a.String(), err)
}
Expand All @@ -175,7 +175,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC9b(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC9b.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC9b.String(), err)
}
Expand All @@ -184,7 +184,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC10a(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC10a.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC10a.String(), err)
}
Expand All @@ -193,7 +193,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC10b(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC10b.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC10b.String(), err)
}
Expand All @@ -202,7 +202,7 @@ func processEnterpriseCAWithValidCertChainToDomain(enterpriseCA, domain *graph.N

operation.Operation.SubmitReader(func(ctx context.Context, tx graph.Transaction, outC chan<- analysis.CreatePostRelationshipJob) error {
if err := PostADCSESC13(ctx, tx, outC, groupExpansions, enterpriseCA, domain, cache); errors.Is(err, graph.ErrPropertyNotFound) {
log.Warnf("Post processing for %s: %v", ad.GoldenCert.String(), err)
log.Warnf("Post processing for %s: %v", ad.ADCSESC13.String(), err)
} else if err != nil {
log.Errorf("Failed post processing for %s: %v", ad.ADCSESC13.String(), err)
}
Expand Down

0 comments on commit 5544813

Please sign in to comment.