Skip to content

Commit e5bb7db

Browse files
authored
fix: remove raw vars from config trace log to prevent token leak (#190)
1 parent 0eb595d commit e5bb7db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ func NewConfig(requiredVars []string) Config {
142142
"invasive", invasive,
143143
"applicability", applicability,
144144
"control-catalogs", catalogs,
145-
"vars", vars,
146145
"output", output,
147146
)
148147
return config
@@ -158,7 +157,7 @@ func printSanitizedVars(logger hclog.Logger, vars map[string]interface{}) {
158157
sanitizedVars[key] = value
159158
}
160159
}
161-
logger.Trace("Using vars: %v", sanitizedVars)
160+
logger.Trace("Using vars", "vars", sanitizedVars)
162161
}
163162

164163
func defaultWritePath() string {

0 commit comments

Comments
 (0)