Bug 58754 - Update python-logfmter to v0.0.11
Summary: Update python-logfmter to v0.0.11
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: univention-debug
Version: UCS 5.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.2-3-errata
Assignee: Florian Best
QA Contact: Felix Botner
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-28 16:50 CET by Florian Best
Modified: 2025-11-05 15:06 CET (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Security
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2025-10-28 16:50:00 CET
python3-logfmter should be updated to v0.0.11.
It contains some critical changes regarding logging of special control characters.

Our contributions:
[test(external_tools_compatibility): update go logfmt](https://github.com/josheppinette/python-logfmter/pull/56)
[fix: replace invisible control characters in keys with "_"](https://github.com/josheppinette/python-logfmter/pull/55)
[ci(tests): find path of golang-logfmt-echo dynamically](https://github.com/josheppinette/python-logfmter/pull/53)
[fix: always quote control chars](https://github.com/josheppinette/python-logfmter/pull/52)
[fix: add quoting for newlines](https://github.com/josheppinette/python-logfmter/pull/50)
[feat: use already calculated exc_text](https://github.com/josheppinette/python-logfmter/pull/48)
[fix: fix original dict being logged in nested keys](https://github.com/josheppinette/python-logfmter/pull/47)
[fix: do not calculate asctime multiple times](https://github.com/josheppinette/python-logfmter/pull/46)
[ci(pytest): fix PytestUnknownMarkWarning: Unknown pytest.mark.external](https://github.com/josheppinette/python-logfmter/pull/45)
[test: add test for stack_info and exc_info formatting](https://github.com/josheppinette/python-logfmter/pull/44)
[feat: allow specifying excluded ignore_keys](https://github.com/josheppinette/python-logfmter/pull/43)
[feat: format stack_info if given](https://github.com/josheppinette/python-logfmter/pull/41)
[ci(pre-commit): replace black,isort,flake with ruff](https://github.com/josheppinette/python-logfmter/pull/38)
[feat: allow specifying format-able default values](https://github.com/josheppinette/python-logfmter/pull/37)
[refactor: Simplify Traceback Generation](https://github.com/josheppinette/python-logfmter/pull/30)
Comment 2 Florian Best univentionstaff 2025-10-29 16:57:54 CET
python-logfmter has been updated. The CI pipeline of the repository has been adjusted so that the package is automatically build when a new git tag is pushed.

Unittests of univention.logging have been extended to include tests for all possible ways to include control characters.

univention-debug-python.yaml
59cabc4e0a53 | fix(debug): fix encoding of control sequence chars

univention-debug-python (14.3.1)
59cabc4e0a53 | fix(debug): fix encoding of control sequence chars

python-logftmer.yaml
59cabc4e0a53 | fix(debug): fix encoding of control sequence chars


One patch is still required, as it's not included in 0.0.11:
ba7fcff821dd | fix(python-logfmter): rename into quilt patch
ab1b0f798888 | fix(python-logfmter): add 001-fix-replace-invisible-control-characters.patch
Comment 3 Felix Botner univentionstaff 2025-11-05 10:19:31 CET
OK tests
OK advisory
OK univention-debug-python
OK python-logftmer