diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f36fb0..5ab7d17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # Changelog All notable changes to this project will be documented in this file. -## [1.1.1] - 2019-01-14 +## [1.1.1] - 2019-01-22 +### Added +- Irreversible exception for migrations +- MongoStorage migration between 1.1.0 and 1.1.1 + ### Fixed - Failing JSON deserialization of some Rules. - Migration Migration0To1x0x3 was properly renamed to Migration0To1x1x0 diff --git a/examples/book_library/requirements.txt b/examples/book_library/requirements.txt index 4cfa478..9214d54 100644 --- a/examples/book_library/requirements.txt +++ b/examples/book_library/requirements.txt @@ -1,4 +1,4 @@ -vakt>=1.1.0 +vakt>=1.1.1 requests==2.20.0 pymongo==3.7.2 Flask==1.0.2 diff --git a/examples/book_library/server.py b/examples/book_library/server.py index 5abc463..ab43bb2 100644 --- a/examples/book_library/server.py +++ b/examples/book_library/server.py @@ -53,7 +53,7 @@ actions=['<.*>'], resources=['<.*>'], rules={ - 'secret': vakt.rules.string.StringEqualRule('i-am-a-teacher'), + 'secret': vakt.rules.string.RegexMatchRule('[Ii]-am-a-teacher'), }, ), Policy( @@ -77,7 +77,7 @@ def init(): if os.environ.get('STORAGE') == 'mongo': user, password, host = 'root', 'example', 'localhost:27017' uri = 'mongodb://%s:%s@%s' % (user, password, host) - st = MongoStorage(MongoClient(uri), 'vakt_db', collection='vakt_policies') + st = MongoStorage(MongoClient(host=host), 'vakt_db', collection='vakt_policies') # We run migrations. migrations = (Migration0To1x1x0(st), Migration1x1x0To1x1x1(st)) for m in sorted(migrations, key=lambda x: x.order): diff --git a/setup.py b/setup.py index 57f85b7..7adcd41 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages from os import path -__version__ = '1.1.0' +__version__ = '1.1.1' with open(path.join(path.abspath(path.dirname(__file__)), 'README.md'), encoding='utf-8') as f: