Skip to content

Instantly share code, notes, and snippets.

@pando85
pando85 / merge_dict.py
Last active February 11, 2020 08:59
Python deep merge dict
import pytest
def merge_dict(a, b):
for key in b:
if key in a:
if isinstance(a[key], dict) and isinstance(b[key], dict):
merge_dict(a[key], b[key])
elif a[key] == b[key]:
pass
@pando85
pando85 / replica-0.logs.txt
Created October 30, 2025 10:25
Kanidm: Concurrent replication certification renewals block each other
πŸ“œ Using config file: "/run/kanidm/server.toml"
00000000-0000-0000-0000-000000000000 INFO i [info]: Starting Kanidmd | version: 1.7.4
00000000-0000-0000-0000-000000000000 WARN 🚧 [warn]: This is running as uid == 0 (root) which may be a security risk.
00000000-0000-0000-0000-000000000000 WARN 🚧 [warn]: permissions on /run/kanidm/server.toml may not be secure. Should be readonly to running uid. This could be a security risk ...
00000000-0000-0000-0000-000000000000 WARN 🚧 [warn]: WARNING: /run/kanidm/server.toml has 'everyone' permission bits in the mode. This could be a security risk ...
00000000-0000-0000-0000-000000000000 WARN 🚧 [warn]: WARNING: /run/kanidm/server.toml owned by the current uid, which may allow file permission changes. This could be a security risk ...
00000000-0000-0000-0000-000000000000 WARN 🚧 [warn]: WARNING: DB folder /data has 'everyone' permission bits in the mode. This could be a security risk ...
00000000-0000-0000-0000-000000000000 DEBUG πŸ› [debug]: Acquired k