Skip to main content

Security framework for Zope.

Project description

https://github.com/zopefoundation/AccessControl/actions/workflows/tests.yml/badge.svg https://coveralls.io/repos/github/zopefoundation/AccessControl/badge.svg?branch=master Current version on PyPI Supported Python versions

AccessControl

AccessControl provides a general security framework for use in Zope.

Changelog

For changes before version 3.0, see HISTORY.rst.

5.5 (2022-10-10)

  • Switch from -Ofast to -O3 when compiling code for Linux wheels. (#133)

  • Add support for Python 3.11 (as of 3.11.0rc2).

5.4 (2022-08-26)

  • Add support for Python 3.11 (as of 3.11.0b5).

  • Support default argument in next built-in function. (#131)

5.3.1 (2022-03-29)

  • Prevent race condition in guarded_import (#123)

5.3 (2022-02-25)

  • Provide AccessControl.get_safe_globals to facilitate safe use.

  • Honor PURE_PYTHON environment variable to enable python implementation during runtime.

  • Add support for Python 3.10.

5.2 (2021-07-30)

  • Fix Appveyor configuration so tests can run and wheels build.

5.1 (2021-07-30)

NOTE: This release has been yanked from PyPI due to wheel build issues.

  • Fix a remote code execution issue by preventing access to string.Formatter from restricted code.

5.0 (2020-10-07)

  • Add support for Python 3.9.

  • Remove deprecated classes and functions in (see #32):

    • AccessControl/DTML.py

    • AccessControl/Owned.py

    • AccessControl/Role.py

    • AccessControl/Permissions.py

  • Add deprecation warnings for BBB imports in:

    • AccessControl/AuthEncoding.py

    • AccessControl/Owned.py

    • AccessControl/Role.py

    • AccessControl/User.py

  • Although this version might run on Zope 4, it is no longer supported because of the dropped deprecation warnings.

4.2 (2020-04-20)

  • Add missing permission Manage WebDAV Locks

  • Fix regression for BBB import of `users.UnrestrictedUser (#94)

  • Add a check if database is present in .owner.ownerInfo. (#91).

4.1 (2019-09-02)

  • Python 3: Allow iteration over the result of dict.{keys,values,items} (#89).

4.0 (2019-05-08)

Changes since 3.0.12:

  • Add support for Python 3.5, 3.6, 3.7 and 3.8.

  • Restore simple access to bytes methods in Python 3 (#83)

  • Clarify deprecation warnings for several BBB shims. (#32)

  • Add a test to prove that a user folder flag cannot be acquired elsewhere. (#7)

  • Tighten basic auth string handling in BasicUserFolder.identify (#56)

  • Prevent the Zope 4 ZMI from showing an add dialog for the user folder. (#82)

  • Fix order of roles returned by AccessControl.rolemanager.RoleManager.userdefined_roles.

  • Add configuration for zodbupdate.

  • Add TaintedBytes besides TaintedString in AccessControl.tainted. (#57)

  • Security fix: In str.format, check the security for attributes that are accessed. (Ported from 2.13).

  • Port override_container context manager here from 2.13.

  • Add AppVeyor configuration to automate building Windows eggs.

  • Fix for compilers that only support C89 syntax (e.g. on Windows).

  • Sanitize and test RoleManager role handling.

  • Depend on RestrictedPython >= 4.0.

  • #16: Fixed permission handling by avoiding column and row numbers as identifiers for permissions and roles.

  • Extract .AuthEncoding to its own package for reuse.

  • Declare missing dependency on BTrees.

  • Drop Record dependency, which now does its own security declaration.

  • Remove leftovers from history support dropped in Zope.

  • Remove duplicate guard against * imports. (#60)

3.0.12 (2015-12-21)

3.0.11 (2014-11-02)

  • Harden test fix for machines that do not define localhost.

3.0.10 (2014-11-02)

  • Test fix for machines that do not define localhost.

3.0.9 (2014-08-08)

  • GitHub #6: Do not pass SecurityInfo instance itself to declarePublic/declarePrivate when using the public/private decorator. This fixes Conflicting security declarations warnings on Zope startup.

  • LP #1248529: Leave existing security manager in place inside RoleManager.manage_getUserRolesAndPermissions.

3.0.8 (2013-07-16)

  • LP #1169923: ensure initialization of shared ImplPython state (used by ImplC) when using the “C” security policy. Thanks to Arnaud Fontaine for the patch.

3.0.7 (2013-05-14)

  • Remove long-deprecated ‘Shared’ roles support (pre-dates Zope, never used by Zope itself)

  • Prevent infinite loop when looking up local roles in an acquisition chain with cycles.

3.0.6 (2012-10-31)

  • LP #1071067: Use a stronger random number generator and a constant time comparison function.

3.0.5 (2012-10-21)

  • LP #966101: Recognize special zope2.Private permission in ZCML role directive.

3.0.4 (2012-09-09)

  • LP #1047318: Tighten import restrictions for restricted code.

3.0.3 (2012-08-23)

  • Fix a bug in ZopeSecurityPolicy.py. Global variable rolesForPermissionOn could be overridden if __role__ had custom rolesForPermissionOn.

3.0.2 (2012-06-22)

  • Add Anonymous as a default role for Public permission.

3.0.1 (2012-05-24)

  • Fix tests under Python 2.6.

3.0 (2012-05-12)

  • Added decorators for public, private and protected security declarations.

  • Update tests to take advantage of automatic test suite discovery.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AccessControl-5.5.tar.gz (112.5 kB view hashes)

Uploaded Source

Built Distributions

AccessControl-5.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (195.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

AccessControl-5.5-cp310-cp310-win_amd64.whl (142.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

AccessControl-5.5-cp310-cp310-win32.whl (141.0 kB view hashes)

Uploaded CPython 3.10 Windows x86

AccessControl-5.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (191.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

AccessControl-5.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (197.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

AccessControl-5.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl (193.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ i686 manylinux: glibc 2.5+ i686

AccessControl-5.5-cp310-cp310-macosx_11_0_x86_64.whl (141.1 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

AccessControl-5.5-cp39-cp39-win_amd64.whl (142.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

AccessControl-5.5-cp39-cp39-win32.whl (141.0 kB view hashes)

Uploaded CPython 3.9 Windows x86

AccessControl-5.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (191.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

AccessControl-5.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (196.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

AccessControl-5.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl (193.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686 manylinux: glibc 2.5+ i686

AccessControl-5.5-cp39-cp39-macosx_10_15_x86_64.whl (141.1 kB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

AccessControl-5.5-cp38-cp38-win_amd64.whl (142.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

AccessControl-5.5-cp38-cp38-win32.whl (141.0 kB view hashes)

Uploaded CPython 3.8 Windows x86

AccessControl-5.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (195.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

AccessControl-5.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (201.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

AccessControl-5.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl (197.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686 manylinux: glibc 2.5+ i686

AccessControl-5.5-cp38-cp38-macosx_10_15_x86_64.whl (141.1 kB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

AccessControl-5.5-cp37-cp37m-win_amd64.whl (141.9 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

AccessControl-5.5-cp37-cp37m-win32.whl (140.4 kB view hashes)

Uploaded CPython 3.7m Windows x86

AccessControl-5.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (184.1 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

AccessControl-5.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (189.0 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

AccessControl-5.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl (185.0 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686 manylinux: glibc 2.5+ i686

AccessControl-5.5-cp37-cp37m-macosx_10_15_x86_64.whl (140.7 kB view hashes)

Uploaded CPython 3.7m macOS 10.15+ x86-64

AccessControl-5.5-cp36-cp36m-win_amd64.whl (142.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

AccessControl-5.5-cp36-cp36m-win32.whl (140.8 kB view hashes)

Uploaded CPython 3.6m Windows x86

AccessControl-5.5-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (184.2 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

AccessControl-5.5-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (188.2 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

AccessControl-5.5-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl (184.2 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686 manylinux: glibc 2.5+ i686

AccessControl-5.5-cp36-cp36m-macosx_10_14_x86_64.whl (140.4 kB view hashes)

Uploaded CPython 3.6m macOS 10.14+ x86-64

AccessControl-5.5-cp35-cp35m-win_amd64.whl (142.6 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

AccessControl-5.5-cp35-cp35m-win32.whl (140.8 kB view hashes)

Uploaded CPython 3.5m Windows x86

AccessControl-5.5-cp27-cp27m-win_amd64.whl (140.4 kB view hashes)

Uploaded CPython 2.7m Windows x86-64

AccessControl-5.5-cp27-cp27m-win32.whl (139.6 kB view hashes)

Uploaded CPython 2.7m Windows x86

AccessControl-5.5-cp27-cp27m-macosx_10_14_x86_64.whl (140.5 kB view hashes)

Uploaded CPython 2.7m macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page