https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42766
--- Comment #19 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 202906 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202906&action=edit Bug 42766: Add ScriptLog auto-logging and ARGV scrubbing to Koha::Script Extends the INIT/END blocks added by Bug 42714 to also log non-cron scripts (those using bare 'use Koha::Script') to the SCRIPTS action-log module when the new ScriptLog system preference is enabled. Also introduces _scrub_argv(), which redacts the value of any command- line flag whose name contains a sensitive pattern (password, secret, token, etc.) before the argument list is logged. Scrubbing applies to both cron and non-cron scripts, covering both --flag value and --flag=value forms. This prevents credentials passed on the command line (e.g. misc/devel/create_superlibrarian.pl --password ...) from appearing in the action log. Signed-off-by: David Nind <[email protected]> Signed-off-by: Nick Clemens <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
