jaaql-middleware-python 4.22.6__tar.gz → 4.22.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jaaql-middleware-python-4.22.6/jaaql_middleware_python.egg-info → jaaql-middleware-python-4.22.7}/PKG-INFO +1 -1
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/constants.py +1 -3
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/db/db_utils_no_circ.py +1 -4
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/base_controller.py +4 -13
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/base_model.py +1 -1
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7/jaaql_middleware_python.egg-info}/PKG-INFO +1 -1
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/LICENSE.txt +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/README.md +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/config/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/config/config-docker.ini +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/config/config-test.ini +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/config/config.ini +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/config_constants.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/db/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/db/db_interface.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/db/db_pg_interface.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/db/db_utils.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/documentation/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/documentation/documentation_internal.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/documentation/documentation_public.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/documentation/documentation_shared.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/email/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/email/email_manager.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/email/email_manager_service.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/email/patch_ems.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/exceptions/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/exceptions/custom_http_status.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/exceptions/http_status_exception.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/exceptions/jaaql_interpretable_handled_errors.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/exceptions/not_yet_implement_exception.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/generated_constants.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/interpreter/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/interpreter/interpret_jaaql.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/jaaql.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/migrations/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/migrations/migration_history.sql +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/migrations/migrations.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/controller.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/controller_interface.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/exception_queries.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/generated_queries.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/handmade_queries.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/model.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/model_interface.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/response.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/openapi/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/openapi/swagger_documentation.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/patch.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/scripts/01.install_domains.generated.sql +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/scripts/02.install_super_user.exceptions.sql +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/scripts/03.install_super_user.handwritten.sql +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/scripts/04.install_jaaql_data_structures.generated.sql +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/scripts/05.install_jaaql.exceptions.sql +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/scripts/06.install_jaaql.handwritten.sql +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/scripts/swagger_template.html +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/services/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/services/cached_canned_query_service.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/services/migrations_manager_service.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/services/patch_mms.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/services/patch_shared_var_service.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/services/shared_var_service.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/utilities/__init__.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/utilities/crypt_utils.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/utilities/options.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/utilities/utils.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/utilities/utils_no_project_imports.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/utilities/vault.py +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql_middleware_python.egg-info/SOURCES.txt +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql_middleware_python.egg-info/dependency_links.txt +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql_middleware_python.egg-info/requires.txt +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql_middleware_python.egg-info/top_level.txt +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/setup.cfg +0 -0
- {jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: jaaql-middleware-python
|
|
3
|
-
Version: 4.22.
|
|
3
|
+
Version: 4.22.7
|
|
4
4
|
Summary: The jaaql package, allowing for rapid development and deployment of RESTful HTTP applications
|
|
5
5
|
Home-page: https://github.com/JAAQL/JAAQL-middleware-python
|
|
6
6
|
Author: Software Quality Measurement and Improvement bv
|
|
@@ -90,8 +90,6 @@ ENVIRON__jaaql_profiling = "JAAQL_PROFILING"
|
|
|
90
90
|
ENVIRON__install_path = "INSTALL_PATH"
|
|
91
91
|
ENVIRON__sentinel_url = "SENTINEL_URL"
|
|
92
92
|
ENVIRON__canned_queries = "CANNED_QUERIES"
|
|
93
|
-
ENVIRON__allow_debugging_users = "YOUR_APP_HAS_NO_SECURITY_IF_THIS_IS_TRUE__ALLOW_DEBUGGING_USERS"
|
|
94
|
-
ENVIRON__allow_skip_oauth = "YOUR_APP_HAS_NO_SECURITY_IF_THIS_IS_TRUE__ALLOW_SKIP_AUTH"
|
|
95
93
|
|
|
96
94
|
EMAIL_PARAM__unlock_key = "JAAQL__UNLOCK_KEY"
|
|
97
95
|
EMAIL_PARAM__unlock_code = "JAAQL__UNLOCK_CODE"
|
|
@@ -177,5 +175,5 @@ ROLE__postgres = "postgres"
|
|
|
177
175
|
|
|
178
176
|
PROTOCOL__postgres = "postgresql://"
|
|
179
177
|
|
|
180
|
-
VERSION = "4.22.
|
|
178
|
+
VERSION = "4.22.7"
|
|
181
179
|
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/db/db_utils_no_circ.py
RENAMED
|
@@ -7,7 +7,7 @@ from jaaql.db.db_utils import execute_supplied_statement, create_interface_for_d
|
|
|
7
7
|
from jaaql.exceptions.http_status_exception import HttpStatusException
|
|
8
8
|
from jaaql.interpreter.interpret_jaaql import InterpretJAAQL
|
|
9
9
|
from jaaql.constants import KEY__application, KEY__database, KEY__schema, KEY__role, DB__jaaql, \
|
|
10
|
-
KEY__read_only, KEY__prevent_unused_parameters
|
|
10
|
+
KEY__read_only, KEY__prevent_unused_parameters
|
|
11
11
|
from jaaql.db.db_interface import DBInterface
|
|
12
12
|
from jaaql.utilities.utils_no_project_imports import objectify
|
|
13
13
|
from jaaql.mvc.generated_queries import application__select
|
|
@@ -56,9 +56,6 @@ def get_required_db(vault, config, jaaql_connection: DBInterface, inputs: dict,
|
|
|
56
56
|
|
|
57
57
|
sub_role = inputs.pop(KEY__role) if KEY__role in inputs else None
|
|
58
58
|
|
|
59
|
-
if os.environ.get(ENVIRON__allow_debugging_users) == "TRUE" and inputs.get(KEY__debugging_account_id) is not None:
|
|
60
|
-
account_id = inputs.pop(KEY__debugging_account_id)
|
|
61
|
-
|
|
62
59
|
required_db = create_interface_for_db(vault, config, account_id, inputs[KEY__database], sub_role)
|
|
63
60
|
else:
|
|
64
61
|
if interface is None:
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/base_controller.py
RENAMED
|
@@ -482,32 +482,23 @@ class BaseJAAQLController:
|
|
|
482
482
|
bypass_super = request.headers.get(HEADER__security_bypass)
|
|
483
483
|
bypass_jaaql = request.headers.get(HEADER__security_bypass_jaaql)
|
|
484
484
|
bypass_user = request.headers.get(HEADER__security_specify_user)
|
|
485
|
-
if bypass_super or bypass_jaaql:
|
|
485
|
+
if bypass_super or bypass_jaaql or bypass_user:
|
|
486
486
|
if ip_addr not in IPS__local:
|
|
487
487
|
raise HttpStatusException("Bypass used in none local context: " + ip_addr, HTTPStatus.UNAUTHORIZED)
|
|
488
|
-
miss_super_bypass = bypass_super and bypass_super != self.model.local_super_access_key
|
|
488
|
+
miss_super_bypass = (bypass_super or bypass_user) and bypass_super != self.model.local_super_access_key
|
|
489
489
|
miss_jaaql_bypass = bypass_jaaql and bypass_jaaql != self.model.local_jaaql_access_key
|
|
490
490
|
if miss_super_bypass or miss_jaaql_bypass:
|
|
491
491
|
raise HttpStatusException("Invalid bypass key", HTTPStatus.UNAUTHORIZED)
|
|
492
492
|
|
|
493
493
|
is_public = False
|
|
494
494
|
username = USERNAME__super_db if bypass_super else USERNAME__jaaql
|
|
495
|
+
if bypass_user:
|
|
496
|
+
username = bypass_user
|
|
495
497
|
account_id, ip_id = self.model.get_bypass_user(username, ip_addr)
|
|
496
498
|
|
|
497
499
|
if verification_hook:
|
|
498
500
|
verification_hook.put((True, None, None))
|
|
499
501
|
|
|
500
|
-
elif bypass_user:
|
|
501
|
-
if not self.model.is_container or os.environ.get(ENVIRON__allow_skip_oauth) == "TRUE":
|
|
502
|
-
is_public = False
|
|
503
|
-
account_id, ip_id = self.model.get_bypass_user(bypass_user, ip_addr)
|
|
504
|
-
username = bypass_user
|
|
505
|
-
|
|
506
|
-
if verification_hook:
|
|
507
|
-
verification_hook.put((True, None, None))
|
|
508
|
-
else:
|
|
509
|
-
raise HttpStatusException("Cannot bypass user!")
|
|
510
|
-
|
|
511
502
|
elif verification_hook:
|
|
512
503
|
account_id, username, ip_id, is_public, remember_me = self.model.verify_auth_token_threaded(security_key,
|
|
513
504
|
ip_addr, verification_hook)
|
|
@@ -245,7 +245,7 @@ class BaseJAAQLModel:
|
|
|
245
245
|
self.vault.insert_obj(VAULT_KEY__super_local_access_key, str(uuid.uuid4()))
|
|
246
246
|
|
|
247
247
|
self.local_jaaql_access_key = self.vault.get_obj(VAULT_KEY__jaaql_local_access_key)
|
|
248
|
-
self.local_super_access_key = self.vault.get_obj(VAULT_KEY__super_local_access_key)
|
|
248
|
+
self.local_super_access_key = os.environ.get("JAAQL__SUPER_BYPASS_KEY", self.vault.get_obj(VAULT_KEY__super_local_access_key))
|
|
249
249
|
|
|
250
250
|
if self.vault.has_obj(VAULT_KEY__jaaql_lookup_connection):
|
|
251
251
|
if self.is_container:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: jaaql-middleware-python
|
|
3
|
-
Version: 4.22.
|
|
3
|
+
Version: 4.22.7
|
|
4
4
|
Summary: The jaaql package, allowing for rapid development and deployment of RESTful HTTP applications
|
|
5
5
|
Home-page: https://github.com/JAAQL/JAAQL-middleware-python
|
|
6
6
|
Author: Software Quality Measurement and Improvement bv
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/config/config-docker.ini
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/config/config-test.ini
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/db/db_pg_interface.py
RENAMED
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/documentation/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/email/email_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/exceptions/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/generated_constants.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/interpreter/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/migrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/migrations/migrations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/controller_interface.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/exception_queries.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/generated_queries.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/handmade_queries.py
RENAMED
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/mvc/model_interface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/services/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/services/patch_mms.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/utilities/__init__.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/utilities/crypt_utils.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.22.6 → jaaql-middleware-python-4.22.7}/jaaql/utilities/options.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|