From c6f9f0a3f7a65f8da8bad77b678d71f03805fe9e Mon Sep 17 00:00:00 2001 From: Dan Raviv Date: Sat, 18 Jul 2026 17:10:17 -0700 Subject: [PATCH] feat: Config retains the egress ACL file path Allows smokescreen lib clients to perform logic related to the file (hot-reload changes to rules, alert on modifications, etc.) without having to re-parse the file path from the command-line. --- pkg/smokescreen/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/smokescreen/config.go b/pkg/smokescreen/config.go index ff0397e8..63950261 100644 --- a/pkg/smokescreen/config.go +++ b/pkg/smokescreen/config.go @@ -81,6 +81,7 @@ type Config struct { ExitTimeout time.Duration MetricsClient metrics.MetricsClientInterface EgressACL acl.Decider + EgressACLFile string SupportProxyProtocol bool TlsConfig *tls.Config CrlByAuthorityKeyId map[string]*pkix.CertificateList @@ -576,6 +577,7 @@ func (config *Config) SetupPrometheus(endpoint string, port string, listenAddr s func (config *Config) SetupEgressAcl(aclFile string) error { if aclFile == "" { config.EgressACL = nil + config.EgressACLFile = "" return nil } @@ -587,6 +589,7 @@ func (config *Config) SetupEgressAcl(aclFile string) error { return err } config.EgressACL = egressACL + config.EgressACLFile = aclFile return nil }