From 6848316a5b3b6c2a477e0f0304d6ff867e7018d3 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Fri, 3 Feb 2023 14:29:58 -0500 Subject: [PATCH] Make the .notified file a hidden file Since it's an implementation detail that users shouldn't need to know about. --- monitor/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/process.go b/monitor/process.go index e5fff74..f5597b1 100644 --- a/monitor/process.go +++ b/monitor/process.go @@ -111,7 +111,7 @@ func processCertificate(ctx context.Context, config *Config, entry *logEntry, ce return fmt.Errorf("error creating directory in which to save certificate %x: %w", cert.LeafSHA256, err) } - notifiedPath = filepath.Join(prefixPath, hexFingerprint+".notified") // TODO-3: maybe this should be a hidden file? + notifiedPath = filepath.Join(prefixPath, "."+hexFingerprint+".notified") cert.CertPath = filepath.Join(prefixPath, hexFingerprint+".pem") cert.JSONPath = filepath.Join(prefixPath, hexFingerprint+".json") // TODO-3: consider using .v1.json extension in case I change the format later? cert.TextPath = filepath.Join(prefixPath, hexFingerprint+".txt")