From 64080ccf0dfe1b0c44183b8d1455e002adb73046 Mon Sep 17 00:00:00 2001 From: Martin Hutchinson Date: Wed, 23 Oct 2024 17:35:54 +0100 Subject: [PATCH] Distribute all logs, not just ones with feeders (#288) This allows bastion-only logs to be distributed --- omniwitness/omniwitness.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/omniwitness/omniwitness.go b/omniwitness/omniwitness.go index 07e0283..b7493bb 100644 --- a/omniwitness/omniwitness.go +++ b/omniwitness/omniwitness.go @@ -115,6 +115,7 @@ func Main(ctx context.Context, operatorConfig OperatorConfig, p LogStatePersiste feeders[lc] = l.Feeder.FeedFunc() } logs = append(logs, lc) + klog.Infof("Added log %q: %s", lc.Origin, lc.ID) } signerLegacy, err := note.NewSigner(operatorConfig.WitnessKey) @@ -177,10 +178,6 @@ func Main(ctx context.Context, operatorConfig OperatorConfig, p LogStatePersiste if operatorConfig.RestDistributorBaseURL != "" { klog.Infof("Starting RESTful distributor for %q", operatorConfig.RestDistributorBaseURL) - logs := make([]config.Log, 0, len(feeders)) - for l := range feeders { - logs = append(logs, l) - } runRestDistributors(ctx, g, httpClient, operatorConfig.DistributeInterval, logs, operatorConfig.RestDistributorBaseURL, bw, signerCosigV1.Verifier()) }