• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / AccessControl / 41085348020
83%

Build:
DEFAULT BRANCH: master
Ran 30 Oct 2026 04:00PM UTC
Jobs 1
Files 59
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Oct 2026 03:56PM UTC coverage: 82.04% (+0.8%) from 81.275%
41085348020

push

github

web-flow
Add freeze_security_declarations. (#172)

* Add freeze_security_declarations.

Call it once all code has been loaded, for example when Zope has started.
Afterwards, any change to module security declarations, for example with
allow_module or ModuleSecurityInfo, raises Forbidden.  The same is true for
allow_class, allow_type and other changes to ContainerAssertions.
Normal class security declarations with ClassSecurityInfo still work,
because classes may be imported later, for example when loading objects
from the database.  Calling it a second time does nothing, so both Zope
and Plone can call it on startup.

Dangerous modules like os, subprocess and AccessControl itself that are
fully accessible from restricted code are logged as a warning.  Use
check_dangerous_modules to check other modules, also after the freeze.

Also remove the module security declaration for sets, which only existed
in Python 2.

* Add third-party network libraries to the dangerous modules.

These are aiohttp, httpx, pycurl, requests and urllib3.  Requests from
the server itself can reach internal services, and httpx can use local
Unix sockets.

* Note that DANGEROUS_MODULES is not guaranteed to be complete or up to date.

Review comment by Jens.

Co-authored-by: Jens Vagelpohl <jens@plyp.com>

---------

Co-authored-by: Jens Vagelpohl <jens@plyp.com>

716 of 1220 branches covered (58.69%)

Branch coverage included in aggregate %.

291 of 293 new or added lines in 6 files covered. (99.32%)

5414 of 6252 relevant lines covered (86.6%)

4.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
99.11
-0.89% src/AccessControl/tests/testModuleSecurity.py
Jobs
ID Job ID Ran Files Coverage
1 41085348020.1 30 Oct 2026 04:00PM UTC 59
82.04
GitHub Action Run
Source Files on build 41085348020
  • Tree
  • List 59
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #41085348020
  • c3809464 on github
  • Prev Build on master (#41017534326)
  • Next Build on master (#41087035836)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc