aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log/ExceptionSerializer.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(logger): Fix closure detection when filtering sensitive parametersJoas Schilling2024-11-081-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* refactor(encryption): Migrate away from Hooks to typed eventsFerdinand Thiessen2024-10-151-9/+12
| | | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Louis <louis@chmn.me> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(logger): Remove more parameters of other methodsbugfix/noid/censor-more-valuesJoas Schilling2024-10-071-2/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-25/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Refactors lib/private/Log.Faraz Samapoor2023-06-281-7/+5
| | | | | | Mainly using PHP8's constructor property promotion. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* fix: treat text app session parameters as sensitive valuesMax2023-03-011-0/+10
| | | | | | | | | | * `PublicSessionController create` receives a share token. * The others receive the parameters for a text session: `document_id`, `session_id`, `session_token`. Even though these are relatively short lived they could be used to retrieve content from the document when leaked. Signed-off-by: Max <max@nextcloud.com>
* fix(ExceptionSerializer): encode arguments before filtering the traceJulius Härtl2023-01-161-3/+3
| | | | | | | | This will avoid running into a Nesting level too deep error as the encodeArg calls will limit potential recursive calls on the arguments to a nesting level of 5 Signed-off-by: Julius Härtl <jus@bitgrid.net>
* allow apps to specify methods carrying sensitive parametersArthur Schiwon2022-07-281-3/+10
| | | | | | … in order to remove them from logging. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* make placeholder a const for reuseArthur Schiwon2022-06-161-2/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix overwriting original vars when loggingArthur Schiwon2022-06-161-2/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Always list the class of an object firstJulius Härtl2021-08-051-3/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Set a maximum level of encoding nested arguments of exception tracesJulius Härtl2021-08-051-3/+18
| | | | | | | | This will make sure that nested objects or arrays do not cause exceeding the maximum nesting level of functions when parsing arguments of an exception trace Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Sanitize more functions from the encryption appLukas Reschke2021-07-211-1/+57
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Mask password for Redis and RedisCluster on connection failureDaniel Kesselberg2021-07-191-0/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Don't log keys on checkSignatureJoas Schilling2021-01-181-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Avoid huge exception argument loggingRoeland Jago Douma2020-12-291-3/+21
| | | | | | | | | | | | | In some cases it might happen that you have an argument that deep down somewhere has an array with a lot of entries (think thousands). Now before we would just happily print them all. Which would fill the log. Now it will just print the first 5. And add a line that there are N more. If you are on debug level we will still print them all. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't log params of imagecreatefromstringVincent Petry2020-12-041-0/+3
| | | | | | To prevent flooding the log with actual image data. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in ↵Morris Jobke2020-07-101-1/+1
| | | | | | files_external Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't log KeysJoas Schilling2020-06-191-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 18Christoph Wurst2019-12-201-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix logger testRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Sensitive values handlingRoeland Jago Douma2019-11-271-2/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fix class might be undefinedJoas Schilling2019-05-081-2/+2
| | | | | | Co-Authored-By: blizzz <blizzz@arthur-schiwon.de> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove args from logging of common-spelled methods dependent on classArthur Schiwon2019-05-071-10/+24
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove setup args from loggingArthur Schiwon2019-05-061-0/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove sensitive SMB arguments from exception logMorris Jobke2019-03-121-0/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't log parameters on user creation in case of error/exceptionJoas Schilling2019-01-101-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* make exception serializer a bit more robustRobin Appelman2018-07-181-3/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Sanitize parameters in createSessionToken() while loggingMorris Jobke2018-07-111-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Log classnames of arguments in exception traceRobin Appelman2018-04-171-0/+140
Signed-off-by: Robin Appelman <robin@icewind.nl>