From 2a6f46e6891ee82b613be6151d2f51583c45c2bf Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 28 Jul 2022 23:30:17 +0200 Subject: allow apps to specify methods carrying sensitive parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … in order to remove them from logging. Signed-off-by: Arthur Schiwon --- lib/public/AppFramework/Bootstrap/IRegistrationContext.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/public') diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php index a5d675f14c7..6b10d7bfc0f 100644 --- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php +++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php @@ -306,4 +306,15 @@ interface IRegistrationContext { * @since 24.0.0 */ public function registerUserMigrator(string $migratorClass): void; + + /** + * Announce methods of classes that may contain sensitive values, which + * should be obfuscated before being logged. + * + * @param string $class + * @param string[] $methods + * @return void + * @since 25.0.0 + */ + public function registerSensitiveMethods(string $class, array $methods): void; } -- cgit v1.2.3