Skip to main content

Zope Security Framework

Project description

The Security framework provides a generic mechanism to implement security policies on Python objects.

CHANGES

4.0.0 (2013-07-09)

  • Updated boostrap.py to version 2.2.

  • Bugfix: ZOPE_WATCH_CHECKERS=2 used to incorrectly suppress unauthorized/forbidden warnings.

  • Bugfix: ZOPE_WATCH_CHECKERS=1 used to miss most of the checks.

4.0.0b1 (2013-03-11)

  • Added support for PyPy.

  • Fixed extension compilation on windows python 3.x

4.0.0a5 (2013-02-28)

  • Undo changes from 4.0.0a4. Instead, zope.untrustedpython is only included during Python 2 installs.

4.0.0a4 (2013-02-28)

  • Remove untrustedpython extra again, since we do not want to support zope.untrustedpython in ZTK 2.0. If BBB is really needed, we will create a 3.10.0 release.

4.0.0a3 (2013-02-15)

  • Fix test breakage in 4.0.0a2 due to deprecation strategy.

4.0.0a2 (2013-02-15)

  • Added back the untrustedpython extra: now pulls in zope.untrustedpython. Restored deprecated backward-compatible imports for zope.security.untrustedpython.{builtins,interpreter,rcompile} (the extra and the imports are to be removed in version 4.1).

4.0.0a1 (2013-02-14)

  • Added support for Python 3.2 and 3.3.

  • 100% unit test coverage.

  • zope.security.untrustedpython moved to separate project: zope.untrustedpython

  • Converted use of assert in non-test code to apprpriate error types:

    • Non-dict’s passed to Checker.__init__.

  • Removed dprecattion of zope.security.adapter.TrustedAdapterFactory. Although it has been marked as deprectaed since before Zope3 3.2, current versions of zope.compoent still rely on it.

  • Converted doctests to Sphinx documentation in ‘docs’.

  • Added ‘setup.py docs’ alias (installs Sphinx and dependencies).

  • Added ‘setup.py dev’ alias (runs setup.py develop plus installs nose and coverage).

  • Made non-doctest tests fully independent of zope.testing.

    Two modules, zope.security.checker and zope.security.management, register cleanups with zope.testing IFF it is importable, but the tests no longer rely on it.

  • Enabled building extensions without the ‘svn:external’ of the zope.proxy headers into our ‘include’ dir.

  • Bumped zope.proxy dependency to “>= 4.1.0” to enable compilation on Py3k.

  • Replaced deprecated zope.component.adapts usage with equivalent zope.component.adapter decorator.

  • Replaced deprecated zope.interface.classProvides usage with equivalent zope.interface.provider decorator.

  • Replaced deprecated zope.interface.implements usage with equivalent zope.interface.implementer decorator.

  • Dropped support for Python 2.4 and 2.5.

  • Added test convenience helper create_interaction and with interaction().

3.9.0 (2012-12-21)

  • Pin zope.proxy >= 4.1.0

  • Ship with an included proxy.h header which is compatible with the 4.1.x version ov zope.proxy.

3.8.5 (2012-12-21)

  • Ship with an included proxy.h header which is compatible with the supported versions of zope.proxy.

3.8.4 (2012-12-20)

  • Pin zope.proxy >= 3.4.2, <4.1dev

3.8.3 (2011-09-24)

  • Fixed a regression introduced in 3.8.1: zope.location's LocationProxy did not get a security checker if zope.security.decorator was not imported manually. Now zope.security.decorator is imported in zope.security.proxy without re-introducing the circular import fixed in 3.8.1.

3.8.2 (2011-05-24)

  • Fix a test that failed on Python 2.7.

3.8.1 (2011-05-03)

  • Fixed circular import beween zope.security.decorator and zope.security.proxy which led to an ImportError when only importing zope.security.decorator.

3.8.0 (2010-12-14)

  • Added tests for our own configure.zcml.

  • Added zcml extra dependencies, run related tests only if zope.configuration is available.

  • Run tests related to the untrustedpython functionality only if RestrictedPython is available.

3.7.3 (2010-04-30)

  • Prefer the standard libraries doctest module to the one from zope.testing.

  • Fixed directlyProvides IVocabularyFactory for PermissionIdsVocabulary in Python code, even if it’s unnecessary because IVocabularyFactory is provided in zcml.

  • Removed the dependency on the zope.exceptions package: zope.security.checker now imports DuplicationError from zope.exceptions if available, otherwise it defines a package-specific DuplicationError class which inherits from Exception.

3.7.2 (2009-11-10)

  • Added compatibility with Python 2.6 abstract base classes.

3.7.1 (2009-08-13)

  • Fix for LP bug 181833 (from Gustavo Niemeyer). Before “visiting” a sub-object, a check should be made to ensure the object is still valid. Because garbage collection may involve loops, if you garbage collect an object, it is possible that the actions done on this object may modify the state of other objects. This may cause another round of garbage collection, eventually generating a segfault (see LP bug). The Py_VISIT macro does the necessary checks, so it is used instead of the previous code.

3.7.0 (2009-05-13)

  • Made pytz a soft dependency: the checker for pytz.UTC is created / tested only if the package is already present. Run bin/test_pytz to run the tests with pytz on the path.

3.6.3 (2009-03-23)

  • Ensure that simple zope.schema’s VocabularyRegistry is used for PermissionVocabulary tests, because it’s replaced implicitly in environments with zope.app.schema installed that makes that tests fail.

  • Fixed a bug in DecoratedSecurityCheckerDescriptor which made security-wrapping location proxied exception instances throw exceptions on Python 2.5. See https://bugs.launchpad.net/zope3/+bug/251848

3.6.2 (2009-03-14)

  • Add zope.i18nmessageid.Message to non-proxied basic types. It’s okay, because messages are immutable. It was done by zope.app.security before.

  • Add “__name__” and “__parent__” attributes to list of available by default. This was also done by zope.app.security package before.

  • Added PermissionsVocabulary and PermissionIdsVocabulary vocabularies to the zope.security.permission module. They were moved from the zope.app.security package.

  • Add zcml permission definitions for most common and useful permissions, like “zope.View” and “zope.ManageContent”, as well as for the special “zope.Public” permission. They are placed in a separate “permissions.zcml” file, so it can be easily excluded/redefined. They are selected part of permissions moved from zope.app.security and used by many zope.* packages.

  • Add addCheckerPublic helper function in zope.security.testing module that registers the “zope.Public” permission as an IPermission utility.

  • Add security declarations for the zope.security.permisson.Permission class.

  • Improve test coverage.

3.6.1 (2009-03-10)

  • Use from imports instead of zope.deferred to avoid circular import problems, thus drop dependency on zope.deferredimport.

  • Raise NoInteraction when zope.security.checkPermission is called without interaction being active (LP #301565).

  • Don’t define security checkers for deprecated set types from the “sets” module on Python 2.6. It’s discouraged to use them and set and frozenset built-in types should be used instead.

  • Change package’s mailng list address to zope-dev at zope.org as zope3-dev at zope.org is now retired.

  • Remove old zpkg-related files.

3.6.0 (2009-01-31)

  • Install decorated security checker support on LocationProxy from the outside.

  • Added support to bootstrap on Jython.

  • Moved the protectclass module from zope.app.security to this package to reduce the number of dependencies on zope.app.security.

  • Moved the <module> directive implementation from zope.app.security to this package.

  • Moved the <class> directive implementation from zope.app.component to this package.

3.5.2 (2008-07-27)

  • Made C code compatible with Python 2.5 on 64bit architectures.

3.5.1 (2008-06-04)

  • Add frozenset, set, reversed, and sorted to the list of safe builtins.

3.5.0 (2008-03-05)

  • Changed title for zope.security.management.system_user to be more presentable.

3.4.3 - (2009/11/26)

  • Backported a fix made by Gary Poster to the 3.4 branch: Fix for LP bug 181833 (from Gustavo Niemeyer). Before “visiting” a sub-object, a check should be made to ensure the object is still valid. Because garbage collection may involve loops, if you garbage collect an object, it is possible that the actions done on this object may modify the state of other objects. This may cause another round of garbage collection, eventually generating a segfault (see LP bug). The Py_VISIT macro does the necessary checks, so it is used instead of the previous code.

3.4.2 - (2009/03/23)

  • Added dependency ‘zope.thread’ to setup.py, without the tests were failing.

  • Backported a fix made by Albertas Agejevas to the 3.4 branch. He fixed a bug in DecoratedSecurityCheckerDescriptor which made security-wrapping location proxied exception instances throw exceptions on Python 2.5. See https://bugs.launchpad.net/zope3/+bug/251848

3.4.1 - 2008/07/27

  • Made C code compatible with Python 2.5 on 64bit architectures.

3.4.0 (2007-10-02)

  • Updated meta-data.

3.4.0b5 (2007-08-15)

  • Bug: Fixed a circular import in the C implementation.

3.4.0b4 (2007-08-14)

  • Bug: zope.security.management.system_user had an ugly/brittle id.

3.4.0b3 (2007-08-14)

  • zope.security now works on Python 2.5

  • Bug: zope.security.management.system_user wasn’t a valid principal (didn’t provide IPrincipal).

  • Bug: Fixed inclusion of doctest to use the doctest module from zope.testing. Now tests can be run multiple times without breaking. (#98250)

3.4.0b2 (2007-06-15)

  • Bug: Removed stack extraction in newInteraction. When using eggs this is an extremly expensive function. The publisher is now more than 10 times faster when using eggs and about twice as fast with a zope trunk checkout.

3.4.0b1

  • Temporarily fixed the hidden (and accidental) dependency on zope.testing to become optional.

Note: The releases between 3.2.0 and 3.4.0b1 where not tracked as an individual package and have been documented in the Zope 3 changelog.

3.2.0 (2006-01-05)

  • Corresponds to the verison of the zope.security package shipped as part of the Zope 3.2.0 release.

  • Removed deprecated helper functions, ‘proxy.trustedRemoveSecurityProxy’ and ‘proxy.getProxiedObject’.

  • Made handling of ‘management.{end,restore}Interaction’ more careful w.r.t. edge cases.

  • Made behavior of ‘canWrite’ consistent with ‘canAccess’: if ‘canAccess’ does not raise ‘ForbiddenAttribute’, then neither will ‘canWrite’. See: http://www.zope.org/Collectors/Zope3-dev/506

  • Code style / documentation / test fixes.

3.1.0 (2005-10-03)

  • Added support for use of the new Python 2.4 datatypes, ‘set’ and ‘frozenset’, within checked code.

  • C security proxy acquired a dependency on the ‘proxy.h’ header from the ‘zope.proxy’ package.

  • XXX: the spelling of the ‘#include’ is bizarre! It seems to be related to ‘zpkg’-based builds, and should likely be revisited. For the moment, I have linked in the ‘zope.proxy’ package into our own ‘include’ directory. See the subversion checkin: http://svn.zope.org/Zope3/?rev=37882&view=rev

  • Updated checker to avoid re-proxying objects which have and explicit ‘__Security_checker__’ assigned.

  • Corresponds to the verison of the zope.security package shipped as part of the Zope 3.1.0 release.

  • Clarified contract of ‘IChecker’ to indicate that its ‘check*’ methods may raise only ‘Forbidden’ or ‘Unauthorized’ exceptions.

  • Added interfaces, (‘IPrincipal’, ‘IGroupAwarePrincipal’, ‘IGroup’, and ‘IPermission’) specifying contracts of components in the security framework.

  • Code style / documentation / test fixes.

3.0.0 (2004-11-07)

  • Corresponds to the version of the zope.security package shipped as part of the Zope X3.0.0 release.

Download files

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

Source Distribution

zope.security-4.0.0.tar.gz (729.9 kB view details)

Uploaded Source

Built Distributions

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

zope.security-4.0.0.win-amd64-py3.3.exe (349.5 kB view details)

Uploaded Source

zope.security-4.0.0.win-amd64-py3.2.exe (351.8 kB view details)

Uploaded Source

zope.security-4.0.0.win-amd64-py2.7.exe (352.3 kB view details)

Uploaded Source

zope.security-4.0.0.win-amd64-py2.6.exe (352.2 kB view details)

Uploaded Source

zope.security-4.0.0.win32-py3.3.exe (318.3 kB view details)

Uploaded Source

zope.security-4.0.0.win32-py3.2.exe (323.7 kB view details)

Uploaded Source

zope.security-4.0.0.win32-py2.7.exe (324.5 kB view details)

Uploaded Source

zope.security-4.0.0.win32-py2.6.exe (324.4 kB view details)

Uploaded Source

zope.security-4.0.0-py3.3-win-amd64.egg (243.9 kB view details)

Uploaded Egg

zope.security-4.0.0-py3.3-win32.egg (243.6 kB view details)

Uploaded Egg

zope.security-4.0.0-py3.2-win-amd64.egg (233.3 kB view details)

Uploaded Egg

zope.security-4.0.0-py3.2-win32.egg (233.2 kB view details)

Uploaded Egg

zope.security-4.0.0-py2.7-win-amd64.egg (230.8 kB view details)

Uploaded Egg

zope.security-4.0.0-py2.7-win32.egg (230.5 kB view details)

Uploaded Egg

zope.security-4.0.0-py2.6-win-amd64.egg (231.3 kB view details)

Uploaded Egg

zope.security-4.0.0-py2.6-win32.egg (230.9 kB view details)

Uploaded Egg

File details

Details for the file zope.security-4.0.0.tar.gz.

File metadata

  • Download URL: zope.security-4.0.0.tar.gz
  • Upload date:
  • Size: 729.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zope.security-4.0.0.tar.gz
Algorithm Hash digest
SHA256 1b016e5c063d7b17e9955e9e7b7db5d0f2300f384629be6df86fc429a13339ed
MD5 56a248430015ad0f42417aaedbe6c50b
BLAKE2b-256 e478cc43b63fff257e24beaac9736e843ec86110bf2e062947b64a976591c54d

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0.win-amd64-py3.3.exe.

File metadata

File hashes

Hashes for zope.security-4.0.0.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 586d23ca71be7aa6816c74587e5c9347fba86a90314ca7653c95ec772efdb79d
MD5 efeb8026357987fe46ad04123425c459
BLAKE2b-256 669ad4f5893230a118c97790cc4283b83cb647613d8239930bcb8c3271bcc2aa

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0.win-amd64-py3.2.exe.

File metadata

File hashes

Hashes for zope.security-4.0.0.win-amd64-py3.2.exe
Algorithm Hash digest
SHA256 0494958c49d45b7fef5c1b5fcdfd5601f16f7575ee2c401dd2647302f5b486b9
MD5 ff3eefd124daa245485f14d161bc264e
BLAKE2b-256 1b07bd1eaaec38e97e051ed88ad2071d154e5721d9bbd0e50f133ecae963e73d

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for zope.security-4.0.0.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 12710ce85c9021abcbc375f3fc91a2a31d020fc9cd6b67806f9286047b8b7c93
MD5 cd3f8423d95bcc30f9736da843a9e71c
BLAKE2b-256 cc9324e205b046a70c4717ac9a83cd2516449a9f30db0cf48351e58496731d09

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0.win-amd64-py2.6.exe.

File metadata

File hashes

Hashes for zope.security-4.0.0.win-amd64-py2.6.exe
Algorithm Hash digest
SHA256 cc100fb175df3ff700046a1d99f26a831e7e1d01f098d93210d51d73b47fe2a7
MD5 b01ab2c60ad07cd8d8d90d252ecb83a4
BLAKE2b-256 19adb736098a02b8b29fb975f224f805eed044f874f77c833032f8457c03e9ec

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0.win32-py3.3.exe.

File metadata

File hashes

Hashes for zope.security-4.0.0.win32-py3.3.exe
Algorithm Hash digest
SHA256 283aee011dc325956ad6eb225cd4c55e936b6f4b51aac1f8365569a3a9d0cf71
MD5 d440a79cd2b336563423fdc3b1ee5ced
BLAKE2b-256 ae7d918ee2ac0049b10e1ca17fc8adf71cf0e4766dcb10f8d82a741334bef6df

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0.win32-py3.2.exe.

File metadata

File hashes

Hashes for zope.security-4.0.0.win32-py3.2.exe
Algorithm Hash digest
SHA256 443b772b28cbe6153b44b26f58dc868d1ff77c8d968f6b46733b8251ae5a7da6
MD5 fa5ca39500a4ff9081a0442f1109aba9
BLAKE2b-256 f2e2244fce3c05fdcbdffb3b90084cac96fb98ecbceb00139de8b7fdde0a5bb8

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0.win32-py2.7.exe.

File metadata

File hashes

Hashes for zope.security-4.0.0.win32-py2.7.exe
Algorithm Hash digest
SHA256 bbf6018ce4f9549ab599781ac9530b8b451dcac5bc1034a31afd85bb27d63f19
MD5 aefd6cb3e2d920395edfcf7c86f4eadb
BLAKE2b-256 32dd6d020483133c208dd48e2a927a6039902f9c9b8ad75f3e0d89a1d0417f72

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0.win32-py2.6.exe.

File metadata

File hashes

Hashes for zope.security-4.0.0.win32-py2.6.exe
Algorithm Hash digest
SHA256 a3f52d81c6bc84d17cbf25dc93586fb8ef117d170297e3c710fb41c20f062708
MD5 dfc5926e39614c41c9a4386368ddc589
BLAKE2b-256 36e845aea962321d1c0db776474059e9f4b4e2e8e9a64c9ef349e89f44d844e3

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0-py3.3-win-amd64.egg.

File metadata

File hashes

Hashes for zope.security-4.0.0-py3.3-win-amd64.egg
Algorithm Hash digest
SHA256 8bdb6c4ab9e4dc9053a77feb2a3c59022aa42bdf21992c41b4174a58faade28c
MD5 06349780e6370a12318fa768aec2ebab
BLAKE2b-256 de9538d48a72085e2dbcf33bfc5614d6194bc8493f053b90dd3b9f85c650bdcc

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0-py3.3-win32.egg.

File metadata

File hashes

Hashes for zope.security-4.0.0-py3.3-win32.egg
Algorithm Hash digest
SHA256 fda7651c9cb3ba4704daabcfcdd7a248fc9f1423afd5ade6a46554a4ccbc990e
MD5 a0aadc4470846f80d656090ac1d81e3d
BLAKE2b-256 e613fe85c6ee5466f71ddf931235f355b3bb9d3c01d4f0a399c08cfac79d1a2d

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0-py3.2-win-amd64.egg.

File metadata

File hashes

Hashes for zope.security-4.0.0-py3.2-win-amd64.egg
Algorithm Hash digest
SHA256 82f1df5138977fd9675f2c696ddf65be972049b4d01bda716878feea9e89d169
MD5 98efe864eb6157672fab4f6c9a3aff7b
BLAKE2b-256 a76df937c97f877b91df6de2239e0eedbc37f09747a99fc2243bbb30f7b6b31b

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0-py3.2-win32.egg.

File metadata

File hashes

Hashes for zope.security-4.0.0-py3.2-win32.egg
Algorithm Hash digest
SHA256 d28169380ff175262cba2990d9bebb603084381aa8b7832322569ed4261589ea
MD5 91b313e697ee25bc5a88032d13e1ae4e
BLAKE2b-256 a17e6724da4abd519d19e863e95fae019f0949d407ee744d37d3ea9cafa9972b

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0-py2.7-win-amd64.egg.

File metadata

File hashes

Hashes for zope.security-4.0.0-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 613bfa891eadc35485a47c53e6e9557c42ca68076e7360895e4aed9046bb611c
MD5 3c91417db213fbf5f056e1a1c48bdeb9
BLAKE2b-256 eccefe2a8cb8a80a1982b0817067686a8d9edbc95567d05c1893ec5c7b883f30

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0-py2.7-win32.egg.

File metadata

File hashes

Hashes for zope.security-4.0.0-py2.7-win32.egg
Algorithm Hash digest
SHA256 54488315cca50c251873ebe6faff44effc9c69bd3d6b09de1c1e4cbde0551d95
MD5 904891b153050ebbe6bcacd7d5a10079
BLAKE2b-256 b5f420ab72133e84d8109a35c4f270ca1d4fa3af17d169fee0f22328a92240cb

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0-py2.6-win-amd64.egg.

File metadata

File hashes

Hashes for zope.security-4.0.0-py2.6-win-amd64.egg
Algorithm Hash digest
SHA256 79fe8a816dc8b3ef91e1f100a7724d66896a785244eb84505a6a774b53928c9b
MD5 f515cc22c29e1af62400a43454e6440a
BLAKE2b-256 3a6cc983119f344946c16164857ec62f7ef08d8b4c97a22a52279fa70af28ba3

See more details on using hashes here.

File details

Details for the file zope.security-4.0.0-py2.6-win32.egg.

File metadata

File hashes

Hashes for zope.security-4.0.0-py2.6-win32.egg
Algorithm Hash digest
SHA256 b3fddc714bcc1167b4c16392203246061f018bbf980b5315181ef056bf3b9a5b
MD5 7c4fbe07147f4f8f37ecab19cd637604
BLAKE2b-256 21cbee7966cb144b9c590acac94c82bdeb3ee5120f0a07b70daa276337107a77

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