Mirror of mitogen
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.
 
 
 
Go to file
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
8 months ago
.ci ansible_mitogen: Add Ansible 7 support 8 months ago
.github chore: Add issue templates for 0.2 vs 0.3 releases 4 years ago
ansible_mitogen ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 8 months ago
docs ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 8 months ago
examples Replace os.system() with subprocess.check_call() 3 years ago
mitogen mitogen: Raise TypeError on `mitogen.utils.cast(custom_str)` failures 8 months ago
scripts remove unused imports flagged by lgtm 5 years ago
tests ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 8 months ago
.gitignore Ignore Ansible retry files 9 months ago
.lgtm.yml Whoops, merge together lgtm.yml and .lgtm.yml 5 years ago
LICENSE Bump copyright year and use generic author name (testing Travis) 4 years ago
MANIFEST.in setup.py: include LICENSE; closes #538. 6 years ago
README.md Abandon Travis CI We have no credits, and its a PITA to maintain two CI platforms. The tests running on Travis provide very little extra coverage vs Azure Pipelines alone 3 years ago
dev_requirements.txt Split dev_requirements.txt up according to test mode. 6 years ago
preamble_size.py mitogen.parent: Remove tabs from minimized first stage 3 years ago
run_tests tests: Remove unittest2, use stdlib unittest 3 years ago
setup.cfg Declare universal wheel support 4 years ago
setup.py mitogen: Support Python 3.12 8 months ago
tox.ini ansible_mitogen: Add Ansible 7 support 8 months ago

README.md