Zope Security Framework
Project description
The Security framework provides a generic mechanism to implement security policies on Python objects.
CHANGES
4.0.1 (2014-03-19)
Added support for Python 3.4.
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.
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
Built Distributions
Hashes for zope.security-4.0.1.win-amd64-py3.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5457060334948968adb05153101d3b341e1bac58757d0f561b027c56a9952a93 |
|
MD5 | f2671786c6698819b3ccc001784d5ce9 |
|
BLAKE2b-256 | 440b1838a644ba20f7f9d3ee5cd6096d6ca92680a3554cc98b5453dd72db4e85 |
Hashes for zope.security-4.0.1.win-amd64-py3.3.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75546c641f694f630abbed4a2da6efb18b028c76642d7cec98e36b98b919f771 |
|
MD5 | c63d3f307204515d3a81aab2863a02e7 |
|
BLAKE2b-256 | 93202be880c4bb565bb760128dad814084e4ccf31ee6ef03a29340ec46def4fc |
Hashes for zope.security-4.0.1.win-amd64-py3.2.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d1a627469bb98852954bfb088fa9fc673caff4e4474d79144f9ab7c0ebc9e8b |
|
MD5 | f39bd00207dc8983db6dbfb3c4fd1800 |
|
BLAKE2b-256 | ec21e1b354affcec4656678509db0f5d458772ef8d47b0636a7b3a8ebbc971e9 |
Hashes for zope.security-4.0.1.win-amd64-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3234492442c99ce9199e8d7f2aeeac8bdf8d04d47ac90425ede5f0499641c9c2 |
|
MD5 | 7356c5beda16b710cbe8bfbe8cf48bfc |
|
BLAKE2b-256 | e02b6473b0eeba52623116109ef285d18145b98acd6b60e8cf4788bd87dd028d |
Hashes for zope.security-4.0.1.win-amd64-py2.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bf09d13c7fd6f7a7ed8e42c2812f6dd00e9804bd4b934a5e0bce6264e121c35 |
|
MD5 | 42bab4180d8d919b95324fe930fbc02f |
|
BLAKE2b-256 | 60c1526e2566ad6088dbfe6096e951cf0ea1ffc534938c94af4402f774659de4 |
Hashes for zope.security-4.0.1.win32-py3.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 815249396591f415ea7bade45f1914a01ca6f75730a4fd4e01379517b984af1f |
|
MD5 | 32577e23a5d30f3afb7d709c9b908698 |
|
BLAKE2b-256 | f1ed85715721c1776de1c796dfe30e5777cd148fd95e8630a16de07df0cda6e0 |
Hashes for zope.security-4.0.1.win32-py3.3.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | a230aa8eecfa2a2abc2000c0cd123ff4da7fc570e293efa3125273e678c2a555 |
|
MD5 | 4df2b76d798ab278a970f79b7c42db14 |
|
BLAKE2b-256 | 515358211703165f399b128d4897ceccbb2534b284f38fd0e3dfd63540046495 |
Hashes for zope.security-4.0.1.win32-py3.2.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | baa9a4a24ca9301706f895cbdb057d347b98e6b59bb79cdc6908582c071a17cc |
|
MD5 | 027fa64fee045b2b1707b1b84b530ef3 |
|
BLAKE2b-256 | 01ca697ec091dbe995d5f047c44f8485639da83c8c4777eebd886a6b2ae4f935 |
Hashes for zope.security-4.0.1.win32-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | d44057f8b2d293e7363408e098947879fbecf0021951a7e48410b764993d9cf4 |
|
MD5 | 0be58b4b1929f80ee5bc9a1f039319c8 |
|
BLAKE2b-256 | d6f31dbe5d22b1926ec00d79c66d7ae4a2f58c309764aec13c51b57546ce0a6a |
Hashes for zope.security-4.0.1.win32-py2.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | a322887631b3f50dd9735bc1bd21e779fadc49132a3a395381206f17fa182fff |
|
MD5 | fabf8779a0ec6d0f1e08667a8fdd1a0a |
|
BLAKE2b-256 | b0a3229295cc1003c4e4297255d5d912271312cd8d3f405c118b1877f538c3e7 |
Hashes for zope.security-4.0.1-py3.4-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed69e9bf4e701a9dbf3fae6a862ab934f5e2d1e8ba956f6efa03532f3f93a675 |
|
MD5 | 668b5f1b28a3cf5b8ec9cf5e7c4cdf3f |
|
BLAKE2b-256 | 729e489d4621235f41cc93448987968268bfd3d3995d15e5537c08240f2dedff |
Hashes for zope.security-4.0.1-py3.4-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a590faaa27aedfda6f5638b29866ee9057ef045ef72d0b2f960f688c92fc8fec |
|
MD5 | 4dcc220ce19979605203416b1dd499cd |
|
BLAKE2b-256 | 47a6f505889c3136d4bb59e8606d384f45aa530171b73ec3545a330bdc5344e7 |
Hashes for zope.security-4.0.1-py3.3-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b1af06ba2d8000909ecfdc74a0429052d11f218180088103be8fa5f7ad4f51 |
|
MD5 | 7ab16dd909ee837d10a1916b1404af4c |
|
BLAKE2b-256 | 373e18c45273a423fc08ba441767c053be68e989c4184a2a6eaeb594f999d5f5 |
Hashes for zope.security-4.0.1-py3.3-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60cfc6d9de08c3d80e5d2f753517a038cd8662d650a014ec9ffcbe64be9d4e7c |
|
MD5 | 5a07110b8d7cf8c9e61464b60da202b0 |
|
BLAKE2b-256 | 10c85cd4420986edf48b9c81310d1ef8e1d5da0e6a85b28fbd6d85299f703e88 |
Hashes for zope.security-4.0.1-py3.2-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9081c7573e4f6e112c0051833ad17ae10ccc0fcaa85a9610942b1d8d4a70fd03 |
|
MD5 | d5c55ec6b46fae4c53b93e36a3d96889 |
|
BLAKE2b-256 | cb7d3bd2d8ffe5b13767bf587df6302db571f49b7573c81620a53e61479c193e |
Hashes for zope.security-4.0.1-py3.2-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cb1aec27f0f7a256601281affae3a03d1185903df62ba6bced73e9b126b20cd |
|
MD5 | 66bd5774b1018ffe4772c97db5c8300d |
|
BLAKE2b-256 | 082e1ef1183817565baf38a280d21aa79ce3521ec8f178e63b9d293eb23846ad |
Hashes for zope.security-4.0.1-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb1db40f3500d60758f74c4ffa12e8a3ed9f56e49cda94904b193debb6d334a2 |
|
MD5 | 522a1d1e8c80f4d900097c7711babfac |
|
BLAKE2b-256 | 4f3ac3e9cc86f2d4749b66c2f884cd2e909841acd2a6d76466afef70fe438437 |
Hashes for zope.security-4.0.1-py2.7-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c51be5de70a24610529bdec88358082c0239a2200cdbfac5d5c79eb1f647ec |
|
MD5 | 6f058e10fd602b59ac11f74f6293ea10 |
|
BLAKE2b-256 | 4eb9b44d650e10af9108fc82b708797e568849216d681de09aafef1cd6cd86f3 |
Hashes for zope.security-4.0.1-py2.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e895d727d548782360f1fdc672928f2e484f1d6aa0ba9b31d64d9be0aa63c25 |
|
MD5 | a49e587e210bd17351ce60036db2c629 |
|
BLAKE2b-256 | c8ac1816c14d1a2e6d1886eb61c9e528120b2f01eb72262eff411a28ee7d6343 |
Hashes for zope.security-4.0.1-py2.6-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 367d5aa86280824221d505d1b924ffee5f5baa9ce4e1fe2cf0fdfbe873d177e4 |
|
MD5 | 2249eae369433fcb5488360f2b5677a2 |
|
BLAKE2b-256 | 2b01092801c75ee58b77e81f395ca1ea58c1ef8da3b9cbfeb13b4a57811e0ead |