[![image](https://github.com/collective/collective.hardening/actions/workflows/plone-package.yml/badge.svg)](https://github.com/collective/collective.hardening/actions/workflows/meta.yml)
[![Coveralls](https://coveralls.io/repos/github/collective/collective.hardening/badge.svg?branch=main)](https://coveralls.io/github/collective/collective.hardening?branch=main)
[![image](https://codecov.io/gh/collective/collective.hardening/branch/master/graph/badge.svg)](https://codecov.io/gh/collective/collective.hardening)
[![Latest Version](https://img.shields.io/pypi/v/collective.hardening.svg)](https://pypi.python.org/pypi/collective.hardening/)
[![Egg Status](https://img.shields.io/pypi/status/collective.hardening.svg)](https://pypi.python.org/pypi/collective.hardening)
![image](https://img.shields.io/pypi/pyversions/collective.hardening.svg?style=plastic%20%20%20:alt:%20Supported%20-%20Python%20Versions)
[![License](https://img.shields.io/pypi/l/collective.hardening.svg)](https://pypi.python.org/pypi/collective.hardening/)
# collective.hardening
**collective.hardening** is an add-on designed to enhance Plone security by adding configurable features that help safeguard your site.
## Features
- **Dedicated Control Panel** Easily configure security-related settings from one central location.
- **File Type Restrictions** Control which file types (by extension or MIME type) can be uploaded to your site.
- **Additional Improvements (TDB)** Further enhancements are planned for upcoming releases.
### Control Panel
A new control panel, accessible at `/@@hardening-controlpanel`, allows you to fine-tune the add-on's security settings.
Through this interface, you can define which file types are permissible and ensure that only safe files are uploaded to your Plone site.
You can access the control panel under the **Security** section of the main Plone control panel.
### File Type Restrictions
Using the control panel, you can specify disallowed MIME types or file extensions. This flexibility helps prevent the upload of potentially harmful files, bolstering your site's security.
The implementation is based on:
1. Event subscribers active on created or modified objects.
2. A widget validator that checks the file type on upload.
## Installation
To install **collective.hardening**, add it to your buildout configuration as follows:
```ini
[instance]
eggs +=
collective.hardening
```
After updating the configuration, run buildout:
```bash
bin/buildout
```
And restart your Plone instance.
## Authors
The [Syslab.com](https://www.syslab.com) team.
## Contributors
Put your name here, you deserve it!
- Alessandro Pisa, [Syslab.com](https://www.syslab.com)
## Contribute
- Issue Tracker: <https://github.com/collective/collective.hardening/issues>
- Source Code: <https://github.com/collective/collective.hardening>
## Support
If you are having issues, please let us know in the [issue tracker](https://github.com/collective/collective.hardening/issues).
## License
The project is licensed under the GPLv2.
# Contributors
- ale-rt, alessandro.pisa@gmail.com
# Changelog
## 0.0.2 (2025-01-15)
- Allow Python 3.8.
[ale-rt]
## 0.0.1 (2025-01-15)
- Initial release.
[ale-rt]
Raw data
{
"_id": null,
"home_page": "https://github.com/collective/collective.hardening",
"name": "collective.hardening",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "Python Plone CMS Hardening",
"author": "ale-rt",
"author_email": "alessandro.pisa@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/31/7f/aff784600432595160957f66c94e42e2de7fd1c55f1857a4ba2e527e3a54/collective_hardening-0.0.2.tar.gz",
"platform": null,
"description": "[![image](https://github.com/collective/collective.hardening/actions/workflows/plone-package.yml/badge.svg)](https://github.com/collective/collective.hardening/actions/workflows/meta.yml)\n[![Coveralls](https://coveralls.io/repos/github/collective/collective.hardening/badge.svg?branch=main)](https://coveralls.io/github/collective/collective.hardening?branch=main)\n[![image](https://codecov.io/gh/collective/collective.hardening/branch/master/graph/badge.svg)](https://codecov.io/gh/collective/collective.hardening)\n[![Latest Version](https://img.shields.io/pypi/v/collective.hardening.svg)](https://pypi.python.org/pypi/collective.hardening/)\n[![Egg Status](https://img.shields.io/pypi/status/collective.hardening.svg)](https://pypi.python.org/pypi/collective.hardening)\n![image](https://img.shields.io/pypi/pyversions/collective.hardening.svg?style=plastic%20%20%20:alt:%20Supported%20-%20Python%20Versions)\n[![License](https://img.shields.io/pypi/l/collective.hardening.svg)](https://pypi.python.org/pypi/collective.hardening/)\n\n# collective.hardening\n\n**collective.hardening** is an add-on designed to enhance Plone security by adding configurable features that help safeguard your site.\n\n## Features\n\n- **Dedicated Control Panel** Easily configure security-related settings from one central location.\n\n- **File Type Restrictions** Control which file types (by extension or MIME type) can be uploaded to your site.\n\n- **Additional Improvements (TDB)** Further enhancements are planned for upcoming releases.\n\n### Control Panel\n\nA new control panel, accessible at `/@@hardening-controlpanel`, allows you to fine-tune the add-on's security settings.\nThrough this interface, you can define which file types are permissible and ensure that only safe files are uploaded to your Plone site.\nYou can access the control panel under the **Security** section of the main Plone control panel.\n\n### File Type Restrictions\n\nUsing the control panel, you can specify disallowed MIME types or file extensions. This flexibility helps prevent the upload of potentially harmful files, bolstering your site's security.\n\nThe implementation is based on:\n\n1. Event subscribers active on created or modified objects.\n2. A widget validator that checks the file type on upload.\n\n## Installation\n\nTo install **collective.hardening**, add it to your buildout configuration as follows:\n\n```ini\n[instance]\neggs +=\n collective.hardening\n```\n\nAfter updating the configuration, run buildout:\n\n```bash\nbin/buildout\n```\n\nAnd restart your Plone instance.\n\n## Authors\n\nThe [Syslab.com](https://www.syslab.com) team.\n\n## Contributors\n\nPut your name here, you deserve it!\n\n- Alessandro Pisa, [Syslab.com](https://www.syslab.com)\n\n## Contribute\n\n- Issue Tracker: <https://github.com/collective/collective.hardening/issues>\n- Source Code: <https://github.com/collective/collective.hardening>\n\n## Support\n\nIf you are having issues, please let us know in the [issue tracker](https://github.com/collective/collective.hardening/issues).\n\n## License\n\nThe project is licensed under the GPLv2.\n\n\n# Contributors\n\n\n- ale-rt, alessandro.pisa@gmail.com\n\n\n# Changelog\n\n## 0.0.2 (2025-01-15)\n\n\n- Allow Python 3.8.\n [ale-rt]\n\n\n## 0.0.1 (2025-01-15)\n\n- Initial release.\n [ale-rt]\n",
"bugtrack_url": null,
"license": "GPL version 2",
"summary": "An addon for hardening Plone",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/collective/collective.hardening",
"PyPI": "https://pypi.org/project/collective.hardening/",
"Source": "https://github.com/collective/collective.hardening",
"Tracker": "https://github.com/collective/collective.hardening/issues"
},
"split_keywords": [
"python",
"plone",
"cms",
"hardening"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "317faff784600432595160957f66c94e42e2de7fd1c55f1857a4ba2e527e3a54",
"md5": "a44e03b5a7cf28b156fc5d8ab64addb2",
"sha256": "5490063841e9513b8719f80b099561bfc9a8049e6f6188d1b074a9d8ff2d8b94"
},
"downloads": -1,
"filename": "collective_hardening-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "a44e03b5a7cf28b156fc5d8ab64addb2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 21439,
"upload_time": "2025-01-15T08:16:16",
"upload_time_iso_8601": "2025-01-15T08:16:16.204625Z",
"url": "https://files.pythonhosted.org/packages/31/7f/aff784600432595160957f66c94e42e2de7fd1c55f1857a4ba2e527e3a54/collective_hardening-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-15 08:16:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "collective",
"github_project": "collective.hardening",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"requirements": [],
"tox": true,
"lcname": "collective.hardening"
}