Skip to content

Commit

Permalink
Distribute all logs, not just ones with feeders (#288)
Browse files Browse the repository at this point in the history
This allows bastion-only logs to be distributed
  • Loading branch information
mhutchinson authored Oct 23, 2024
1 parent d1b22ee commit 64080cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions omniwitness/omniwitness.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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())
}

Expand Down

0 comments on commit 64080cc

Please sign in to comment.