feat(outbound): warn at startup about allow-list patterns that grant more than intended

This commit is contained in:
Julien Neuhart
2026-09-04 19:52:41 +02:00
parent 86a013b664
commit 201e80b9d7
5 changed files with 1002 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ func Run() {
// Override their values if the corresponding environment variables are
// set.
fs.VisitAll(func(f *flag.Flag) {
envName := strings.ToUpper(strings.ReplaceAll(f.Name, "-", "_"))
envName := gotenberg.EnvVarName(f.Name)
val, ok := os.LookupEnv(envName)
if !ok {
return