Add hook property to control command output logging
Author: moorereasonCreated Apr 1, 2024Updated Jul 21, 2026
Labelsenhancement
webhook currently logs command output on every request. When using include-command-output-in-response to send a complex response body, it may not be desirable to log the command output. See https://github.com/adnanh/webhook/issues/676#issuecomment-2028214136.
Proposal
Add a boolean disable-command-output-logging property. The default is false so that we're backward compatible.
This property would only affect "success" logging (as seen below). Errors would still be logged.
https://github.com/adnanh/webhook/blob/dbc6565c3544949395ebc4e2d6e4edf64d5912fe/webhook.go#L624
Source: adnanh/webhook