Files
labca/patches/crl-storer_main.patch
2025-09-06 12:39:43 +02:00

24 lines
839 B
Diff

diff --git a/cmd/crl-storer/main.go b/cmd/crl-storer/main.go
index 8753d858f..87c11e1fc 100644
--- a/cmd/crl-storer/main.go
+++ b/cmd/crl-storer/main.go
@@ -47,6 +47,9 @@ type Config struct {
// https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html.
AWSCredsFile string
+ // If this is set, store the files locally instead of using (fake) S3
+ LocalStorePath string
+
Features features.Config
}
@@ -130,7 +133,7 @@ func main() {
}
s3client := s3.NewFromConfig(awsConfig, s3opts...)
- csi, err := storer.New(issuers, s3client, c.CRLStorer.S3Bucket, scope, logger, clk)
+ csi, err := storer.New(issuers, s3client, c.CRLStorer.S3Bucket, c.CRLStorer.LocalStorePath, scope, logger, clk)
cmd.FailOnError(err, "Failed to create CRLStorer impl")
start, err := bgrpc.NewServer(c.CRLStorer.GRPC, logger).Add(