You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/ansible_mitogen
Alex Willmer b822f20007 ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7
Follwing fixes in Ansible 7-9 for CVE-2023-5764 cating `AnsibleUnsafeBytes` &
`AnsibleUnsafeText` to `bytes()` or `str()` requires special handling. The
handling is Ansible specific, so it shouldn't go in the mitogen package but
rather the ansible_mitogen package.

`ansible_mitogen.utils.unsafe.cast()` is most like `mitogen.utils.cast()`.
During development it began as `ansible_mitogen.utils.unsafe.unwrap_var()`,
closer to an inverse of `ansible.utils.unsafe_procy.wrap_var()`. Future
enhancements may move in this direction.

refs #977, refs #1046

See also
- https://github.com/advisories/GHSA-7j69-qfc3-2fq9
- https://github.com/ansible/ansible/pull/82293
- https://github.com/mitogen-hq/mitogen/wiki/AnsibleUnsafe-notes
2 months ago
..
compat Remove vendored mitogen.compat.simplejson 1 year ago
plugins add SSH args into options documentation 2 years ago
utils ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 2 months ago
__init__.py ansible: restructure to avoid intermediate imports 6 years ago
affinity.py ansible_mitogen: Standardise __future__ imports to match Ansible 2 years ago
connection.py ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 2 months ago
loaders.py ansible_mitogen: Add Ansible 7 support 2 months ago
logging.py ansible_mitogen: Standardise __future__ imports to match Ansible 2 years ago
mixins.py ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 2 months ago
module_finder.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 3 months ago
parsing.py ansible_mitogen: Standardise __future__ imports to match Ansible 2 years ago
planner.py Add ansible.builtin.dnf to ALWAYS_FORK_MODULES 2 years ago
process.py Remove vendored mitogen.compat.simplejson 1 year ago
runner.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 3 months ago
services.py ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 2 months ago
strategy.py ansible_mitogen: Standardise __future__ imports to match Ansible 2 years ago
target.py Remove vendored mitogen.compat.simplejson 1 year ago
transport_config.py ansible_mitogen: correct typo in MitogenViaSpec.mitogen_lxc_path() 1 year ago