fix(k-radius): Reduce log level

In debug mode, the radius secrets were printed to the log...
This commit is contained in:
Tom Hubrecht 2025-05-02 10:29:45 +02:00
parent 2537b8550d
commit b13ba3f17a
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
4 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,13 @@
diff --git i/kanidm/radius/__init__.py w/kanidm/radius/__init__.py
index e707cf602..999c8e7bf 100644
--- i/kanidm/radius/__init__.py
+++ w/kanidm/radius/__init__.py
@@ -40,7 +40,7 @@ def find_radius_config_path() -> Optional[Path]:
def instantiate(_: Any) -> Any:
"""start up radiusd"""
logging.basicConfig(
- level=logging.DEBUG,
+ level=logging.INFO,
stream=sys.stderr,
)
logging.info("Starting up!")

View file

@ -19,6 +19,7 @@ buildPythonPackage {
patches = [
./02-remove-noisy-logs.patch
./03-set-log-level.patch
];
sourceRoot = "source/pykanidm";