Skip to main content

Security framework for Zope.

Project description

https://travis-ci.org/zopefoundation/AccessControl.svg?branch=master 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.

4.4 (2023-09-04)

  • Fix information disclosure through str.format_map. (CVE-2023-41050)

  • Provide AccessControl.get_safe_globals to facilitate safe use.

4.3 (2021-07-30)

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

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


Release history Release notifications | RSS feed

Download files

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

Source Distribution

AccessControl-4.4.tar.gz (107.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

AccessControl-4.4-cp38-cp38-win_amd64.whl (141.8 kB view details)

Uploaded CPython 3.8Windows x86-64

AccessControl-4.4-cp38-cp38-win32.whl (140.6 kB view details)

Uploaded CPython 3.8Windows x86

AccessControl-4.4-cp37-cp37m-win_amd64.whl (141.5 kB view details)

Uploaded CPython 3.7mWindows x86-64

AccessControl-4.4-cp37-cp37m-win32.whl (140.0 kB view details)

Uploaded CPython 3.7mWindows x86

AccessControl-4.4-cp36-cp36m-win_amd64.whl (142.2 kB view details)

Uploaded CPython 3.6mWindows x86-64

AccessControl-4.4-cp36-cp36m-win32.whl (140.4 kB view details)

Uploaded CPython 3.6mWindows x86

AccessControl-4.4-cp35-cp35m-win_amd64.whl (142.1 kB view details)

Uploaded CPython 3.5mWindows x86-64

AccessControl-4.4-cp35-cp35m-win32.whl (140.4 kB view details)

Uploaded CPython 3.5mWindows x86

AccessControl-4.4-cp27-cp27m-win_amd64.whl (139.9 kB view details)

Uploaded CPython 2.7mWindows x86-64

AccessControl-4.4-cp27-cp27m-win32.whl (139.1 kB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file AccessControl-4.4.tar.gz.

File metadata

  • Download URL: AccessControl-4.4.tar.gz
  • Upload date:
  • Size: 107.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for AccessControl-4.4.tar.gz
Algorithm Hash digest
SHA256 f596170979c7a4f4ac78b4d827322d8535cde4a475eba0e1c2c452ca62b8b1cc
MD5 c80e544ba62c97836130a0ef24cd8345
BLAKE2b-256 81d835c39d7e232ae8e440dc6e16edb02a49d8fad35bef7776207bcdda5a5df6

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: AccessControl-4.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 141.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for AccessControl-4.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3caf0a87e89d9a5025e5c711f8ab35717a1aecbbb641fb57f25bc1b4a9622ed3
MD5 d462a8ad9dea5f1559c0773a649f3731
BLAKE2b-256 755164b27767c6c206c05f12c5e25a2f9bd2ad27c848a05f9bff741e36f257b8

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp38-cp38-win32.whl.

File metadata

  • Download URL: AccessControl-4.4-cp38-cp38-win32.whl
  • Upload date:
  • Size: 140.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for AccessControl-4.4-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6d029a6b4499ae9fd333ed2c4dec99c33cba0213ec7b1806247bcca7de1c1eec
MD5 d6c2f6202599309c3b22929f801e0d1c
BLAKE2b-256 cff6f1cbc9f7b55ea36b2287f5bd71feff9584afdfcb720c50914012f26050bc

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: AccessControl-4.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 141.5 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.5

File hashes

Hashes for AccessControl-4.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f1474a641bd89c5b8aa22d162cba642d0666cff30bfe2c35d0d59a0f99b57839
MD5 336fc5364aaf73fb323b916d7d1afc7d
BLAKE2b-256 e418eb434dda855f96fe07eed70b3671825053a1f8952a9cfd669d9573fb6559

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp37-cp37m-win32.whl.

File metadata

  • Download URL: AccessControl-4.4-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 140.0 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.5

File hashes

Hashes for AccessControl-4.4-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 1a2d44ba4ae9d39ca63d1ad55ab1c8244d31da2b6e6fee523a4e624a8e5bc959
MD5 e2f274b460a1ca3ed4bb62c3c74dbc7b
BLAKE2b-256 53878a82f290c8d6eb0a0ec5f744b9ef17dd8a129ab18af9eb271d2a698d5d1d

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: AccessControl-4.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 142.2 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for AccessControl-4.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 badddf1c48cffafcd1fc14583166862d40f14ccf8959e89c70d692aa80ee1760
MD5 f3a811f1215fe61e3ce276964bb553fe
BLAKE2b-256 df0193a6d8b685aa7acfd5cc8124ff06cc41e296fc61996a9b9c629d637dc48c

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp36-cp36m-win32.whl.

File metadata

  • Download URL: AccessControl-4.4-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 140.4 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for AccessControl-4.4-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 4aafe2a27cc2c38a93c757b0419d1df0d10ae90ae647d77749bde7f3157451e6
MD5 f343b8fdaa58f51c428e94975e12f0d7
BLAKE2b-256 9e86d936054d898ffc65f171cbeabe189223832439062ec0eb71018eeb811383

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: AccessControl-4.4-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 142.1 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.5.4

File hashes

Hashes for AccessControl-4.4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 d76470bf2ecc4f643dd9008be2f50025a92962c731ee7d1a7ca1757a9b269e2e
MD5 7f000d70513afbfa55eb57eff5e00cd9
BLAKE2b-256 fce5659798f034cd0fc547ba13fbc9ee9a5bcdbaa8d6185dde8f2dc678bf7db3

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp35-cp35m-win32.whl.

File metadata

  • Download URL: AccessControl-4.4-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 140.4 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.5.4

File hashes

Hashes for AccessControl-4.4-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d1a25ec2dee0a40c23c9c2e1045de9365c132bf46e5d0379b1118fc75b99a426
MD5 ff3699b943b132dc593de6a17fb723fa
BLAKE2b-256 2f5ea237963a83c4d3c1d84b696eafefc95cae81ed7b5e099270fc6ff8107552

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: AccessControl-4.4-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 139.9 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.17

File hashes

Hashes for AccessControl-4.4-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 388bc838c831efb9b11526a52d5760b63322eeecd02fca3a832e0f7480e35708
MD5 5dfc29e55f31b6e078968f3017d5bcf1
BLAKE2b-256 b43f89f786e1601de1861067553162048dda5a5a97f37596c5975843e972af25

See more details on using hashes here.

File details

Details for the file AccessControl-4.4-cp27-cp27m-win32.whl.

File metadata

  • Download URL: AccessControl-4.4-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 139.1 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.17

File hashes

Hashes for AccessControl-4.4-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 5b1a04ff01d064870f00442a59958e2f08f95de80164328c848d66eb1b28b7d2
MD5 06f6f8194af6e58ad6996de2c10caffb
BLAKE2b-256 691eed8372bbd845c001bca6d709e364c338f972cc3f60561bf29ff1a994eb20

See more details on using hashes here.

Supported by

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