Skip to main content

Security framework for Zope.

Project description

https://travis-ci.com/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.

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


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-5.2.tar.gz (107.3 kB view details)

Uploaded Source

Built Distributions

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

AccessControl-5.2-cp39-cp39-win_amd64.whl (142.1 kB view details)

Uploaded CPython 3.9Windows x86-64

AccessControl-5.2-cp39-cp39-win32.whl (140.5 kB view details)

Uploaded CPython 3.9Windows x86

AccessControl-5.2-cp38-cp38-win_amd64.whl (142.2 kB view details)

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

AccessControl-5.2-cp37-cp37m-win_amd64.whl (141.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

AccessControl-5.2-cp36-cp36m-win_amd64.whl (141.7 kB view details)

Uploaded CPython 3.6mWindows x86-64

AccessControl-5.2-cp36-cp36m-win32.whl (140.0 kB view details)

Uploaded CPython 3.6mWindows x86

AccessControl-5.2-cp35-cp35m-win_amd64.whl (141.7 kB view details)

Uploaded CPython 3.5mWindows x86-64

AccessControl-5.2-cp35-cp35m-win32.whl (139.9 kB view details)

Uploaded CPython 3.5mWindows x86

AccessControl-5.2-cp27-cp27m-win_amd64.whl (139.5 kB view details)

Uploaded CPython 2.7mWindows x86-64

AccessControl-5.2-cp27-cp27m-win32.whl (138.7 kB view details)

Uploaded CPython 2.7mWindows x86

File details

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

File metadata

  • Download URL: AccessControl-5.2.tar.gz
  • Upload date:
  • Size: 107.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for AccessControl-5.2.tar.gz
Algorithm Hash digest
SHA256 68f7abd17b9188429d9beb65f5791dc7a18f7f65cd5105f6ba5f4d45e877cff1
MD5 eda3e1cb02e66c9f0cb3487a1dce0884
BLAKE2b-256 c88bd3f2efeed1c52144055d04c331aea751706853a1a2dd131bb0e24af84f0e

See more details on using hashes here.

File details

Details for the file AccessControl-5.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: AccessControl-5.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 142.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.0

File hashes

Hashes for AccessControl-5.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f560d91492ea31cb7a4da2fd7e20eecf1525976b1ed46a841a5b4355d2a62ad2
MD5 9e8e276ad71e1d52483ebdfe26b643ff
BLAKE2b-256 621562ee3c60333999cc06b9401a4d276e36d1572cfe20fa7793c7e8eb5d323f

See more details on using hashes here.

File details

Details for the file AccessControl-5.2-cp39-cp39-win32.whl.

File metadata

  • Download URL: AccessControl-5.2-cp39-cp39-win32.whl
  • Upload date:
  • Size: 140.5 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.0

File hashes

Hashes for AccessControl-5.2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b4937056ce0c028b280a0d78c5da7cd844b668d439c722719716c78e8a0679d5
MD5 4108a24ee58a567123ee8add149cb529
BLAKE2b-256 e039be33927a95a3722a279d21dd8fe768a796b6493027cf7b7febb6ac485bdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AccessControl-5.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 142.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.0

File hashes

Hashes for AccessControl-5.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 17dc717f88d7ff8f8326c8f6945c14b8e883ffaab61084757a5c3182e61c7788
MD5 5640b9ebf830361e18f8a62c19657efb
BLAKE2b-256 9dcc8ad419f32efe0ceb5a603b9e61e9bebfb0b9d5414972dbe864198d925032

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AccessControl-5.2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 140.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.0

File hashes

Hashes for AccessControl-5.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9e1d4fd34f2b7bfb28aad33431e503f4c818ada557c0519cfa38cc8fcb6a23a9
MD5 f300b1fc294cb719db97d3ef3700fc5f
BLAKE2b-256 a6d40c6f4269bf35b2910a8f779994d2e0d316b07572775174ecf2bdd5e0df24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AccessControl-5.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 141.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for AccessControl-5.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 05d3d774b7fc8b3a3350ff0d906645e11d4b5b773352e3bcd28ce4ff53a0d1ec
MD5 eb20afe3460dd3d9c607398eb0cb967b
BLAKE2b-256 7255ede3a10b52f62dbddbe7c032f0548bb266d0319433dff42c09d4424df894

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AccessControl-5.2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 140.0 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for AccessControl-5.2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 cb9b0c013e4c055b123362963afcc23365fd4c5b4ea46e7cef46cefd4b6580a3
MD5 59b68dc4721536fe042e3d8a650564cc
BLAKE2b-256 ac771ac13b721e2ed30617736b16cacbccc7a55fba69c825f756a6cfc6423d92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AccessControl-5.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 141.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.8

File hashes

Hashes for AccessControl-5.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 c494568f23dba4ca047bcc10641c4ead13bac04b8b9d358b8ab39e7b73baf3ee
MD5 209ebe84f013efc119d0780d791756b5
BLAKE2b-256 27aacc12425708d0d31a8a3905cc4fe702da78bf78b9a7d9e32bdf9cd1560080

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AccessControl-5.2-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 140.0 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.8

File hashes

Hashes for AccessControl-5.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 159d3763b6cf52330c060e4e7d30237275aee5c8c17aeaa9761f692b3dee26c4
MD5 6499211bbd43abd0a6bcfefdbd5a2bc6
BLAKE2b-256 b19cea04a85422ca766684eae00f4a46ec537fcd12c68ccd6337b11b4defc42e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for AccessControl-5.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 e8689371981487413c40c2207c62f63cf285fb0640813a2b8a808ce6c1c3e110
MD5 75d9d26b1b99f1b1cd025682cc739ad4
BLAKE2b-256 a19a5c1b96f329e267588fef01f7581f1a9aa1f68dc0a1d16911b9dfaea1f236

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for AccessControl-5.2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 f15c291949d46e40223bb34570db6e7e41994e628bd0b87a562805835d527d15
MD5 bbe67fdd50dca7c8aeebf74957b58c64
BLAKE2b-256 654fbba149ebd3fe540511248824282640a3ea5aa8f4201424a7adb56d021dbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AccessControl-5.2-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 139.5 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/2.7.17

File hashes

Hashes for AccessControl-5.2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 9e3cc2b99dbe105939b7c8e6f3cb491dde6a678646654833155944befc3d50ba
MD5 6253c7581ae5e59aeb3ec70a8eabb5f8
BLAKE2b-256 fcb7c05abb32faaad4221be3f4f89668ac00eafbc9eab6354ded69cf75038aa4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AccessControl-5.2-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 138.7 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/2.7.17

File hashes

Hashes for AccessControl-5.2-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 8138db44a76ae57aceb51112714b13aeba6ef1b994b709a910e022edaadf23cc
MD5 ef98dcb28d814090a502fc59170e316d
BLAKE2b-256 ff01f2c15f4f6ba58c8d5999dfee98a6dd75f6db57c639e54a3498687bdf5c30

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