├── .coveragerc ├── .gitignore ├── .travis.yml ├── .vscode ├── extensions.json └── settings.json ├── AUTHORS.rst ├── CHANGES.rst ├── LICENSE.txt ├── MANIFEST.in ├── README.rst ├── connection.json ├── deploy ├── HOSTS ├── Vagrantfile ├── deploy.yml ├── developing.yml ├── group_vars │ ├── default │ ├── dev │ └── prod ├── gunicorn_logging.conf ├── provisioning.yml ├── roles │ └── deploy-app_generic │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ └── tasks │ │ └── main.yml ├── supervisord.conf ├── templates │ ├── app.ini.j2 │ └── postgraas_server.cfg.j2 └── vagrant_inventory ├── docs ├── Makefile ├── _static │ └── .gitignore ├── authors.rst ├── changes.rst ├── conf.py ├── configuration.rst ├── index.rst ├── installation.rst ├── license.rst ├── troubleshooting.rst └── usage.rst ├── postgraas_server ├── __init__.py ├── backends │ ├── __init__.py │ ├── docker │ │ ├── __init__.py │ │ ├── create_db.py │ │ └── postgres_instance_driver.py │ ├── exceptions.py │ └── postgres_cluster │ │ ├── __init__.py │ │ └── postgres_cluster_driver.py ├── configuration.py ├── create_app.py ├── init_db.py ├── management_database.py ├── management_resources.py ├── postgraas_api.py ├── prometheus_app.py └── utils.py ├── requirements.in ├── requirements.txt ├── requirements_dev.txt ├── requirements_docker.in ├── requirements_prometheus.in ├── requirements_secrets.in ├── setup.cfg ├── setup.py ├── setup_integration_test_docker.sh └── tests ├── conftest.py ├── test_integration ├── __init__.py ├── application.cfg ├── backends │ ├── __init__.py │ └── postgres_cluster │ │ ├── __init__.py │ │ └── test_postgres_cluster_driver.py ├── test_backend_behaviour.py ├── test_create_db.py ├── test_init_db.py ├── test_management_database.py ├── test_postgraas_api.py └── utils.py └── test_unit ├── application.cfg ├── application_secure.cfg ├── backends ├── __init__.py └── postgres_cluster │ ├── __init__.py │ └── test_postgres_cluster_driver.py ├── secret_file.json ├── test_backends_plugin.py └── test_configuration.py /.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/.coveragerc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /AUTHORS.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/AUTHORS.rst -------------------------------------------------------------------------------- /CHANGES.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/CHANGES.rst -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/README.rst -------------------------------------------------------------------------------- /connection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/connection.json -------------------------------------------------------------------------------- /deploy/HOSTS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/HOSTS -------------------------------------------------------------------------------- /deploy/Vagrantfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/Vagrantfile -------------------------------------------------------------------------------- /deploy/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/deploy.yml -------------------------------------------------------------------------------- /deploy/developing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/developing.yml -------------------------------------------------------------------------------- /deploy/group_vars/default: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/group_vars/default -------------------------------------------------------------------------------- /deploy/group_vars/dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/group_vars/dev -------------------------------------------------------------------------------- /deploy/group_vars/prod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/group_vars/prod -------------------------------------------------------------------------------- /deploy/gunicorn_logging.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/gunicorn_logging.conf -------------------------------------------------------------------------------- /deploy/provisioning.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/provisioning.yml -------------------------------------------------------------------------------- /deploy/roles/deploy-app_generic/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/roles/deploy-app_generic/README.md -------------------------------------------------------------------------------- /deploy/roles/deploy-app_generic/defaults/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/roles/deploy-app_generic/defaults/main.yml -------------------------------------------------------------------------------- /deploy/roles/deploy-app_generic/meta/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/roles/deploy-app_generic/meta/main.yml -------------------------------------------------------------------------------- /deploy/roles/deploy-app_generic/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/roles/deploy-app_generic/tasks/main.yml -------------------------------------------------------------------------------- /deploy/supervisord.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/supervisord.conf -------------------------------------------------------------------------------- /deploy/templates/app.ini.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/templates/app.ini.j2 -------------------------------------------------------------------------------- /deploy/templates/postgraas_server.cfg.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/templates/postgraas_server.cfg.j2 -------------------------------------------------------------------------------- /deploy/vagrant_inventory: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/deploy/vagrant_inventory -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/_static/.gitignore: -------------------------------------------------------------------------------- 1 | # Empty directory 2 | -------------------------------------------------------------------------------- /docs/authors.rst: -------------------------------------------------------------------------------- 1 | .. _authors: 2 | .. include:: ../AUTHORS.rst 3 | -------------------------------------------------------------------------------- /docs/changes.rst: -------------------------------------------------------------------------------- 1 | .. _changes: 2 | .. include:: ../CHANGES.rst 3 | -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/configuration.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/docs/configuration.rst -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/installation.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/docs/installation.rst -------------------------------------------------------------------------------- /docs/license.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/docs/license.rst -------------------------------------------------------------------------------- /docs/troubleshooting.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/docs/troubleshooting.rst -------------------------------------------------------------------------------- /docs/usage.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/docs/usage.rst -------------------------------------------------------------------------------- /postgraas_server/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/__init__.py -------------------------------------------------------------------------------- /postgraas_server/backends/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/backends/__init__.py -------------------------------------------------------------------------------- /postgraas_server/backends/docker/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/backends/docker/__init__.py -------------------------------------------------------------------------------- /postgraas_server/backends/docker/create_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/backends/docker/create_db.py -------------------------------------------------------------------------------- /postgraas_server/backends/docker/postgres_instance_driver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/backends/docker/postgres_instance_driver.py -------------------------------------------------------------------------------- /postgraas_server/backends/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/backends/exceptions.py -------------------------------------------------------------------------------- /postgraas_server/backends/postgres_cluster/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/backends/postgres_cluster/__init__.py -------------------------------------------------------------------------------- /postgraas_server/backends/postgres_cluster/postgres_cluster_driver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/backends/postgres_cluster/postgres_cluster_driver.py -------------------------------------------------------------------------------- /postgraas_server/configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/configuration.py -------------------------------------------------------------------------------- /postgraas_server/create_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/create_app.py -------------------------------------------------------------------------------- /postgraas_server/init_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/init_db.py -------------------------------------------------------------------------------- /postgraas_server/management_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/management_database.py -------------------------------------------------------------------------------- /postgraas_server/management_resources.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/management_resources.py -------------------------------------------------------------------------------- /postgraas_server/postgraas_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/postgraas_api.py -------------------------------------------------------------------------------- /postgraas_server/prometheus_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/prometheus_app.py -------------------------------------------------------------------------------- /postgraas_server/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/postgraas_server/utils.py -------------------------------------------------------------------------------- /requirements.in: -------------------------------------------------------------------------------- 1 | -e . 2 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/requirements.txt -------------------------------------------------------------------------------- /requirements_dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/requirements_dev.txt -------------------------------------------------------------------------------- /requirements_docker.in: -------------------------------------------------------------------------------- 1 | docker 2 | -------------------------------------------------------------------------------- /requirements_prometheus.in: -------------------------------------------------------------------------------- 1 | prometheus-client -------------------------------------------------------------------------------- /requirements_secrets.in: -------------------------------------------------------------------------------- 1 | cryptography -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/setup.py -------------------------------------------------------------------------------- /setup_integration_test_docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/setup_integration_test_docker.sh -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_integration/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_integration/application.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_integration/application.cfg -------------------------------------------------------------------------------- /tests/test_integration/backends/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_integration/backends/postgres_cluster/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_integration/backends/postgres_cluster/test_postgres_cluster_driver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_integration/backends/postgres_cluster/test_postgres_cluster_driver.py -------------------------------------------------------------------------------- /tests/test_integration/test_backend_behaviour.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_integration/test_backend_behaviour.py -------------------------------------------------------------------------------- /tests/test_integration/test_create_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_integration/test_create_db.py -------------------------------------------------------------------------------- /tests/test_integration/test_init_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_integration/test_init_db.py -------------------------------------------------------------------------------- /tests/test_integration/test_management_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_integration/test_management_database.py -------------------------------------------------------------------------------- /tests/test_integration/test_postgraas_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_integration/test_postgraas_api.py -------------------------------------------------------------------------------- /tests/test_integration/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_integration/utils.py -------------------------------------------------------------------------------- /tests/test_unit/application.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_unit/application.cfg -------------------------------------------------------------------------------- /tests/test_unit/application_secure.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_unit/application_secure.cfg -------------------------------------------------------------------------------- /tests/test_unit/backends/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_unit/backends/postgres_cluster/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_unit/backends/postgres_cluster/test_postgres_cluster_driver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_unit/backends/postgres_cluster/test_postgres_cluster_driver.py -------------------------------------------------------------------------------- /tests/test_unit/secret_file.json: -------------------------------------------------------------------------------- 1 | { 2 | "encryption_key": "v3rys3cur3" 3 | } -------------------------------------------------------------------------------- /tests/test_unit/test_backends_plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_unit/test_backends_plugin.py -------------------------------------------------------------------------------- /tests/test_unit/test_configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blue-yonder/postgraas_server/HEAD/tests/test_unit/test_configuration.py --------------------------------------------------------------------------------