distcloud/dcdbsync/api
Andy Ning 6bd2372da7 Keystone DB sync - update sync service for Stein
This commit updates dcdbsync service to support Stein. Changes to the
service includes:
- Update system_assignment table when user id or role id is updated
- Update implied_role table when role id is updated
- Removed "password" field from local_user_table synchronization
- Added "description" field to role table synchronization
- Updated VERSION_ALIASES to Stein 1.0 in API controllers

Story: 2002842
Task: 22787

Change-Id: I40e64d4072201635c7b531575ab5df7cd7b5557d
Signed-off-by: Andy Ning <andy.ning@windriver.com>
2019-05-01 12:08:20 -04:00
..
controllers Keystone DB sync - update sync service for Stein 2019-05-01 12:08:20 -04:00
README.rst Keystone DB sync - introduce DB sync service 2019-04-25 11:11:48 -04:00
__init__.py Keystone DB sync - introduce DB sync service 2019-04-25 11:11:48 -04:00
api_config.py Keystone DB sync - introduce DB sync service 2019-04-25 11:11:48 -04:00
app.py Keystone DB sync - introduce DB sync service 2019-04-25 11:11:48 -04:00
enforcer.py Keystone DB sync - introduce DB sync service 2019-04-25 11:11:48 -04:00

README.rst

api

DC DBsync API is Web Server Gateway Interface (WSGI) application to receive and process API calls, including keystonemiddleware to do the authentication, parameter check and validation. It receives API calls from DC Orchestrator to read/write/update resources in Databases on behalf of DC Orchestrator. The API calls are processed in synchronous way, so that the caller will wait for the response to come back.

Multiple DC DBsync API could run in parallel, and also can work in multi-worker mode.

Multiple DC DBsync API is designed and run in stateless mode.

Setup and encapsulate the API WSGI app

app.py:

Setup and encapsulate the API WSGI app, including integrate the keystonemiddleware app

api_config.py:

API configuration loading and init

enforcer.py

Enforces policies on the version2 APIs