Contributions

These are contributions to other projects, mostly things we use and wanted to have improved.

This is just a quick and rudimentary list, there are more that aren’t listed in here.

Multitail contribution

Updating the multitail tool to V7 in FreeBSD. With this contribution, the multitail tool got updated to V7 in FreeBSD, and we’ve also added our UWSGI syntax to the defaults. https://github.com/folkertvanheusden/multitail/pull/40 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280755

django-debug-toolbar contribution

Rendering CSP nonces in script and link tags, whenever available. This contribution aimed for rendering CSP nonces when a project uses CSP rules. With using this, the locally rendered script and link tags won’t be rejected by the browser, when using a strict-dynamic CSP rule with a nonce. https://github.com/django-commons/django-debug-toolbar/pull/1975

Contributions to django-webpack-loader

Contributions to the django-webpack-loader project, adding new functionalities and fixing bugs. Adding skip_common_chunks option to the get_files() template tag: https://github.com/django-webpack/django-webpack-loader/pull/386 Failsafe request checking fix: https://github.com/django-webpack/django-webpack-loader/pull/301 Add skip_common_chunks functionality: https://github.com/django-webpack/django-webpack-loader/pull/297 Automatic CROSSORIGIN & django-csp module handling: https://github.com/django-webpack/django-webpack-loader/pull/405

webpack-bundle-tracker contribution

Fixing previously broken integrity hashes in webpack-bundle-tracker for security causes. In here, we rewrote the entire hash calculation of webpack bundles, in a compatible way with V4 and V5. We did it because we needed the functionality in our projects. https://github.com/django-webpack/webpack-bundle-tracker/pull/127

DefinitelyTyped contribution

Adding a missing function definition to the webpack API in Typescript As we extended the webpack-bundle-tracker, we added a missing function declaration in DefinitelyTyped, so it can be used by others as well: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/70176

Contributions to uwsgi

These are improvements and fixes contributed to the uwsgi project, mostly FreeBSD related. Remove unused variables due to compilation failure: https://github.com/unbit/uwsgi/pull/2584 Fix compilation with clang11 on FreeBSD 13.0: https://github.com/unbit/uwsgi/pull/2305

Contributions for the typeshed module for python

These are quick contributions for typeshed to depict python’s function parameters and class attributes better, when programming with using typing. Fix datetime.strftime: https://github.com/python/typeshed/pull/6317 Add HTTPResponse.fp as io.BufferedReader: https://github.com/python/typeshed/pull/6324

Fixing a django-stubs issue

Django’s deconstructible decorator caused to lose type information when using the typing module. This pull request fixed it. https://github.com/typeddjango/django-stubs/pull/1116

Improvements for xapian-haystack

These are fixes and improvements provided for the xapian-haystack project. Fixing untrustable os.path.exists(): https://github.com/notanumber/xapian-haystack/pull/175 Add DJANGO_CT, DJANGO_ID, ID to be used with __exact internally: https://github.com/notanumber/xapian-haystack/pull/232

Improving django-multiselectfield

This addition to the django-multiselectfield project ensured that internal usage of the field as a formfield and DB field is improved. When selecting a model that has a multiselectfield, with a result from a former multiselectfield (MSFList), the DB conversion will fail, resulting in false negatives. This patch fixes it. https://github.com/goinnn/django-multiselectfield/pull/135

Initial typing for django-money

This is a pull request on github to get typing going for the django-money python module. https://github.com/django-money/django-money/pull/686

Pyyaml improvement for FreeBSD compilation

This is a pull request on Github to improve compilation for FreeBSD, without having to pass extra options for compiling the pkg-provided libyaml. https://github.com/yaml/pyyaml/pull/618

Contributions to fail2ban

Various contributions to fail2ban, so that it would work more smoothly not just on our systems, but on others as well. Adjusting for updated dovecot log format: https://github.com/fail2ban/fail2ban/pull/3210 Add to postfix accepted logs: https://github.com/fail2ban/fail2ban/pull/3690