keystone/keystone/common
Stephen Finucane 1bcf8cee0d sql: Add support for auto-generation
Add the ability to autogenerate migrations. Because we need to support
different types of migration (expand and contract), this ends up being
significantly more complicated than what was needed in nova and cinder
and more akin to what was done in neutron. The key feature is here is
the use of an alembic hook called 'process_revision_directives', which
is called whenever one calls 'alembic revision --autogenerate'. We
extend this to allow us to hook into the autogeneration process and
ensure we only spit out directives for the relevant phase.

While we're here, we open up the Bobcat DB branch. This is similar to
what Neutron do (e.g. change I13ba740d245a46c41a969ff198e08ddff896eb1a).
Documentation will follow.

Change-Id: I17c9ff9508c5e2bd9521c18973af093d7550ab5a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-02-28 17:47:57 +00:00
..
cache using standard library secrets function token_bytes to replace os.urandom 2022-01-03 19:16:29 +08:00
policies Merge "Fix typo in identity provider policies" 2021-10-06 23:35:30 +00:00
rbac_enforcer [goal] Deprecate the JSON formatted policy file 2021-02-01 17:36:29 +00:00
resource_options Remove six usage 2020-01-30 06:06:51 +00:00
sql sql: Add support for auto-generation 2023-02-28 17:47:57 +00:00
validation Update hacking for Python3 2020-04-15 07:17:58 +02:00
__init__.py establish basic structure 2012-01-18 20:06:27 -08:00
authorization.py Add access rules to token validation 2019-09-14 03:14:36 -07:00
context.py Pass context objects to policy enforcement 2018-11-26 19:48:10 +00:00
driver_hints.py Drop type in filters 2017-01-13 14:19:11 +03:00
fernet_utils.py Properly instantiate FernetUtils 2022-02-04 16:38:09 +01:00
json_home.py Expose access rules as its own API 2019-09-14 03:14:20 -07:00
jwt_utils.py Add keystone-manage create_jws_keypair functionality 2019-01-31 19:41:25 +00:00
manager.py Remove six usage 2020-01-30 06:06:51 +00:00
password_hashing.py Force algo specific maximum length 2023-02-22 14:43:35 -06:00
profiler.py Remove log translations in keystone 2017-03-25 18:17:15 +00:00
provider_api.py Fix RBACEnforcer get_member_from_driver mechanism 2018-09-10 13:32:14 -07:00
render_token.py Add access rules to token validation 2019-09-14 03:14:36 -07:00
tokenless_auth.py Fixes incorrect params 2019-02-08 17:12:21 -08:00
utils.py sql: Vendor 'oslo_db.sqlalchemy.migration' 2022-01-24 16:03:44 +00:00