From 533fea58155ad97dcffdba1c7d9b786d172914db Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 4 Aug 2024 10:28:13 -0700 Subject: [PATCH] pagekite: Mark secret strings in privileged actions Tests: - Run affected privileged actions through UI and notice that secret strings are not logged. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/pagekite/privileged.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/pagekite/privileged.py b/plinth/modules/pagekite/privileged.py index c432a145f..cfdf4dee0 100644 --- a/plinth/modules/pagekite/privileged.py +++ b/plinth/modules/pagekite/privileged.py @@ -6,7 +6,7 @@ import os import augeas from plinth import action_utils -from plinth.actions import privileged +from plinth.actions import privileged, secret_str from plinth.modules.pagekite import utils PATHS = { @@ -85,7 +85,7 @@ def get_config() -> dict[str, object]: @privileged -def set_config(frontend: str, kite_name: str, kite_secret: str): +def set_config(frontend: str, kite_name: str, kite_secret: secret_str): """Set pagekite kite name, secret and frontend URL.""" aug = _augeas_load() aug.remove(PATHS['abort_not_configured'])