velocity-python 0.13.2__tar.gz → 0.14.1__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.
- {velocity_python-0.13.2 → velocity_python-0.14.1}/PKG-INFO +1 -1
- {velocity_python-0.13.2 → velocity_python-0.14.1}/pyproject.toml +1 -1
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/__init__.py +1 -1
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/context.py +59 -41
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/lambda_handler.py +146 -74
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/masquerade.py +12 -4
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/identity.py +117 -26
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_tenancy.py +33 -2
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/pdf.py +38 -3
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity_python.egg-info/PKG-INFO +1 -1
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity_python.egg-info/SOURCES.txt +2 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_client_errors_mixin.py +18 -0
- velocity_python-0.14.1/tests/test_context_resolved_cognito_user.py +307 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_identity.py +30 -2
- velocity_python-0.14.1/tests/test_identity_normalize_email.py +419 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_lambda_handler_auth.py +18 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_lambda_handler_disabled_user.py +18 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_lambda_handler_masquerade.py +185 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_lambda_handler_user_cache.py +17 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pdf.py +146 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tenancy_enforcement.py +18 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tenancy_handlers.py +18 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tenancy_hardening.py +17 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tenancy_review3.py +18 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_user_not_provisioned.py +34 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/LICENSE +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/README.md +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/setup.cfg +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/amplify.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/analytics.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/assets/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/assets/backfill.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/assets/indexing.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/assets/references.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/assets/service.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/assets/usage_index.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/authz.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/blobs.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/base.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/dispatch.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/health.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/infra.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/jobs.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/provisioning.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/retention.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/runtime.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/security.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/single_session.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/capabilities/workflow.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/deploy/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/deploy/ci_gate.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/deploy/config.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/deploy/frontend_checks.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/deploy/operations.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/deploy/policies.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/deploy/reconcile.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/deploy/targets.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/dirty_pipeline.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/email.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/facets.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/failures.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/feature_flags.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/base_handler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/context_factory.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/exceptions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/action_names.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/analytics_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/audit_trail.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/client_errors.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/client_input.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/data_service.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/import_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/job_handler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/permissions_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/row_scoped.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/session_control.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/tiles_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/web_handler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/mixins/workflow_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/perf.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/request_log.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/response.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/sqs_handler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/job_lifecycle.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/job_results.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/mirror.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/ops.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/permissions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/queue_defaults.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/auth_audit.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/continuation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/jobs.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/limits.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/queue.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/queue_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/security_log.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/site_time.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/runtime/tick.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/s3.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/scheduler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/schema.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/settings.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/sms.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/ssm_config.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tenancy.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/test_base_handler_error_response.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/test_deploy_least_privilege.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/test_deploy_policies.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/test_deploy_policy_size.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/test_deploy_reconcile.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/test_email.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/test_lambda_handler_json_serialization.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/test_response.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tests/test_sms.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/tiles.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/user_data.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/validation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/cache.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/_pgddl.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/audit.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/column.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/database.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/decorators.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/engine.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/jsonproxy.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/lazy_engine.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/result.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/row.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/sequence.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/source_policy.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/table.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/tenant.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/transaction.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/core/view.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/effective.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/exceptions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/fragments.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/integrity.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/lane/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/lane/cli.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/lane/connect.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/lane/ensure.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/lane/ledger.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/lane/tenants.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/lane/units.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/lane/user_data_fold.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/maintenance.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/migrations.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/base/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/base/initializer.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/base/operators.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/base/sql.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/base/types.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/mysql/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/mysql/operators.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/mysql/reserved.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/mysql/sql.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/mysql/types.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/postgres/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/postgres/operators.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/postgres/reserved.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/postgres/sql.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/postgres/types.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlite/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlite/operators.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlite/reserved.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlite/sql.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlite/types.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlserver/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlserver/operators.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlserver/reserved.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlserver/sql.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/sqlserver/types.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/servers/tablehelper.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/sync.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tenancy.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/common_db_test.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/common.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/conftest.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_column.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_connections.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_database.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_engine.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_general_usage.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_imports.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_integrity_triggers.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_result.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_row.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_row_comprehensive.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_schema_locking.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_schema_locking_unit.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_sequence.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_sql_comprehensive.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_table.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_table_comprehensive.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/postgres/test_transaction.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/sql/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/sql/common.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/sql/test_postgres_select_advanced.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/sql/test_postgres_select_variances.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_cursor_rowcount_fix.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_db_utils.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_postgres.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_postgres_unchanged.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_process_error_robustness.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_result_caching.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_result_sql_aware.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_row_get_missing_column.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_schema_locking_initializers.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_schema_locking_simple.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_sql_builder.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_tablehelper.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tests/test_view_helper.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/tunnel.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/db/utils.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/hooks.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/logging.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/metadata/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/metadata/declarations.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/metadata/merge.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/metadata/validate.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/conv/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/conv/iconv.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/conv/oconv.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/db.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/export.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/format.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/mail.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/merge.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/qr.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/staged_import/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/staged_import/batches.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/staged_import/files.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/staged_import/spec.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/test_db.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/test_fix.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/test_format.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/test_iconv.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/test_mail_send.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/test_merge.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/test_oconv.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/test_original_error.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tests/test_timer.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/timer.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/misc/tools.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/core/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/core/capabilities.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/core/store.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/core/where.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/exceptions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/base/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/cassandra/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/cassandra/translation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/couchbase/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/couchbase/translation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/dynamodb/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/dynamodb/translation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/elasticsearch/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/elasticsearch/translation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/memory/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/mongodb/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/mongodb/translation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/nosql/servers/redis/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/_mirror_core.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/authorizenet_adapter.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/authorizenet_mirror.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/base_adapter.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/braintree_adapter.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/braintree_mirror.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/charge_rules.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/money.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/plaid_api.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/plaid_webhook.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/redact.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/schema.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/stripe_adapter.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/payment/stripe_mirror.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/rules/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/rules/engine.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/rules/expressions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/rules/facts.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/rules/storage.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/testing/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/testing/fake_db.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/__init__.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/access.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/contract.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/definitions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/designer.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/engine.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/hooks.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/notices.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/operator.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/outbox.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/points.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/schema.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/traveler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/workflow/views.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity_python.egg-info/dependency_links.txt +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity_python.egg-info/entry_points.txt +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity_python.egg-info/requires.txt +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity_python.egg-info/top_level.txt +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_access_error_403.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_action_names.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_activity_tracking_aborted_tx.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_amplify_redirects.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_analytics.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_asset_indexing.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_asset_references.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_assets_service.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_audit_log_confidential.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_audit_mixin.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_audit_registry_table_gate.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_audited_tables.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_authz.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_aws_package_hygiene.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_batch_operations.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_blob_store.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_builder_hardening.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_bulk_identifier_guard.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_business_objects.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_capabilities.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_capabilities_runtime.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_capability_catalog.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_capability_dependencies.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_capability_health_runtime.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_check_changelog.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_ci_gate.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_client_input_contract_export.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_client_read_canonical_names.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_client_sql_boundary.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_client_table_gate_case_and_pointers.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_client_write_canonical_keys.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_cognito_client_lazy.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_cognito_user_cache.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_column_tx_arg.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_commit_and_retry_safety.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_concurrency_safety.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_connection_pool.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_connection_resilience.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_context_enqueue_idempotency.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_context_flags_loader.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_context_job_descriptions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_context_queue_job.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_conv_combine.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_data_service_get_metadata.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_data_service_metadata_views.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_data_service_owner_scope.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_data_service_query_cap.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_data_service_renumber.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_data_service_row_number.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_data_service_save_as.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_data_service_security_gates.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_data_service_sync.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_audit_required.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_credentials_ssm_cascade.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_effective.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_error_contract.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_integrity.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_lane_cli.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_lane_ensure.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_lane_user_data_fold.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_maintenance.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_pgddl_triggers.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_sync.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_db_tunnel.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_declared_column_types.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_decorators.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_deferred_savepoints.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_delete_hook_fk_blocked.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_deploy_config_fields.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_deploy_engine.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_deploy_frontend_checks.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_deploy_operations_queue.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_deploy_policies.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_dirty_pipeline_consumer.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_dirty_pipeline_fast_path.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_dlq_constant.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_docs_snippets.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_email_processing.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_enqueue_metric_namespace.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_enqueue_send_failures.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_ensure_infrastructure.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_export_formula_injection.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_export_workbook.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_facets.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_facets_and_where.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_failures.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_fake_db_where_guard_parity.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_feature_flags.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_get_cognito_user_provider.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_hooks.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_http_handler_rollback.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_iconv_money_to_cents.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_identifier_injection_guard.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_import_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_job_handler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_job_lifecycle.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_job_record_guard.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_job_record_guard_postgres.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_job_results.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_json_columns.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_jsonb_dict_adapter.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_lambda_handler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_lazy_engine.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_masquerade_grant.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_merge_on_conflict.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_metadata.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_metadata_format.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_mirror.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_mirror_upsert_public.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_mixins_import.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_n_plus_one.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_nosql_dynamodb.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_nosql_memory.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_nosql_mongodb.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_nosql_redis.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_nosql_translation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_nosql_where.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_observability.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_on_action_default.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_on_commit.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_ops.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_audit_fixes.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_authorizenet_adapter.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_braintree_adapter.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_braintree_mirror.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_business_agnostic.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_charge_reference.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_extra_bounds.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_lazy_imports.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_mirror_empty_table.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_profile_sorting.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_stripe_ach.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_payment_stripe_adapter.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_permissions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_permissions_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_permissions_notices.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_permissions_review.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_analytics.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_bulk_cache.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_capability_types.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_client_errors.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_ensure_infrastructure.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_get_tables.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_permissions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_pointer_joins.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_row_scope.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_search_export.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_settings.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_staged_import.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_sync.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_sys_dirty_index.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_tiles.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pgserver_user_data.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_plaid_api.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_plaid_webhook.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_pointer_join_sql.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_postgres_initializer_config.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_postgres_py_type.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_prepared_statements.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_psycopg3_upgrade.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_query_cache.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_query_missing_table_unlocked.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_raw_sql_prefix_policy.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_read_cache.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_readme_imports.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_record_event_postgres.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_record_event_transaction.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_request_log_withheld.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_response.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_restricted_direct_tables.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_result_fetch_errors.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_result_returning.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_retry_side_effect_guard.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_return_default_policy.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_return_default_safety.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_row_batch_nesting.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_row_batch_update.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_row_cache_staleness.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_row_scoped_data_service.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_rules.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_rules_storage.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_auth_audit.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_continuation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_jobs.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_limits.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_queue.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_queue_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_queue_defaults.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_security_log.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_site_time.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_runtime_tick.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_s3_bucket_config.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_s3_list_client_files.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_s3_upload.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_scheduler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_schema_lock_config_other_backends.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_schema_migrations.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_search_paging_export.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_security_capability.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_security_events_table_gate.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_security_hardening.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_security_rate_limit_pg.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_server_cursor.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_session_control.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_settings.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_single_autocommit_safety.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_single_session_capability.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_sms_twilio_signature.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_spreadsheet_functions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_sql_statements_as_built.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_sqlite_backend.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_sqlserver_encrypt_policy.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_sqs_per_record_transactions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_ssm_config.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_ssm_config_export_path.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_ssm_config_listing.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_ssm_config_prefetch.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_ssm_config_require.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_staged_import.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_store_user_data.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_sys_dirty_index.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_sys_modified_count_postgres_demo.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_table_alter.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_table_claim.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_table_find_cache.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_table_purge.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tenancy_lane.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tenancy_provisioning.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tenancy_scope.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tenancy_transaction.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_testing_fake_db.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tiles.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_transaction_class_wrapping.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_transaction_commit_and_ownership.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_transaction_edge_cases.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tx_lifecycle_retry.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_tx_read_cache_and_bulk.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_unrestricted_where_guard.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_user_data.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v010_async_removed_sqlserver_read_only.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v010_release_review.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_integration.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_mysql_parity.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_security_final.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_security_recheck.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_security_review.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_sqlite_parity.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_table_rows.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_table_sql.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_tx_pool.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_tx_transaction.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_v011_tx_tunnel.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_validation_override.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_where_clause_validation.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_actions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_contract.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_definitions.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_designer.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_engine.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_features.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_operator.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_postgres.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_projection.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_review.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_traveler.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_workflow_views.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_write_hook_create_flow.py +0 -0
- {velocity_python-0.13.2 → velocity_python-0.14.1}/tests/test_write_hook_empty_strings.py +0 -0
|
@@ -21,6 +21,11 @@ from velocity.cache import memo
|
|
|
21
21
|
from velocity.db.core.lazy_engine import LazyEngine
|
|
22
22
|
from velocity.db.core import tenant as _tenant_scope
|
|
23
23
|
from velocity.db import exceptions as db_exceptions
|
|
24
|
+
from velocity.aws.identity import (
|
|
25
|
+
COGNITO_USER_POOL_ID_RE as _COGNITO_USER_POOL_ID_RE,
|
|
26
|
+
cognito_issuer_subject,
|
|
27
|
+
normalize_email,
|
|
28
|
+
)
|
|
24
29
|
from velocity.aws.job_lifecycle import (
|
|
25
30
|
CLAIM_COLUMN,
|
|
26
31
|
CLAIM_ENDING_STATUSES,
|
|
@@ -66,7 +71,6 @@ logger = get_logger("velocity.aws.handlers.context")
|
|
|
66
71
|
|
|
67
72
|
# Cognito User Pool id shape, e.g. "us-east-1_aBcD1234". Used to distinguish a
|
|
68
73
|
# real user-pool identity from other Identity Pool providers (developer-auth).
|
|
69
|
-
_COGNITO_USER_POOL_ID_RE = re.compile(r"^[\w-]+_[0-9a-zA-Z]+$")
|
|
70
74
|
|
|
71
75
|
|
|
72
76
|
def _get_work_queue_name() -> str:
|
|
@@ -224,20 +228,10 @@ def _function_name(aws_context) -> str:
|
|
|
224
228
|
return str(name or "local")
|
|
225
229
|
|
|
226
230
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
same issuer as :meth:`Context.get_cognito_user`."""
|
|
232
|
-
if not isinstance(provider, str) or "cognito-idp" not in provider:
|
|
233
|
-
return None
|
|
234
|
-
parts = provider.split(",")
|
|
235
|
-
user_pool_segment = parts[0].strip()
|
|
236
|
-
user_pool_id = user_pool_segment.split("/")[-1]
|
|
237
|
-
user_sub = parts[-1].split(":")[-1].strip()
|
|
238
|
-
if not user_sub or not _COGNITO_USER_POOL_ID_RE.match(user_pool_id):
|
|
239
|
-
return None
|
|
240
|
-
return f"https://{user_pool_segment}", user_sub
|
|
231
|
+
# The public parser is velocity.aws.identity.cognito_issuer_subject
|
|
232
|
+
# (re-exported above). The private name is kept through 0.14.x for callers
|
|
233
|
+
# that imported it; it goes in 0.15.0.
|
|
234
|
+
_cognito_issuer_subject = cognito_issuer_subject
|
|
241
235
|
|
|
242
236
|
|
|
243
237
|
def _queue_retention_seconds() -> int:
|
|
@@ -976,12 +970,14 @@ class Context:
|
|
|
976
970
|
session = {}
|
|
977
971
|
masquerade = session.get("masquerade")
|
|
978
972
|
if isinstance(masquerade, dict) and masquerade.get("effective_user"):
|
|
979
|
-
|
|
973
|
+
# a grant's address the rule refuses is no namespace at all
|
|
974
|
+
effective = normalize_email(masquerade["effective_user"])
|
|
975
|
+
return EMAIL_KEY_PREFIX + effective if effective else None
|
|
980
976
|
identity = request_context.get("identity") or {}
|
|
981
|
-
pair =
|
|
977
|
+
pair = cognito_issuer_subject(identity.get("cognitoAuthenticationProvider"))
|
|
982
978
|
if pair:
|
|
983
979
|
return SUBJECT_KEY_PREFIX + "|".join(pair)
|
|
984
|
-
email =
|
|
980
|
+
email = normalize_email(session.get("email_address"))
|
|
985
981
|
if email:
|
|
986
982
|
return EMAIL_KEY_PREFIX + email
|
|
987
983
|
return None
|
|
@@ -1332,35 +1328,22 @@ class Context:
|
|
|
1332
1328
|
if not provider:
|
|
1333
1329
|
raise AlertError("Cognito identity not found in requestContext") from None
|
|
1334
1330
|
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
try:
|
|
1338
|
-
user_pool_segment = parts[0]
|
|
1339
|
-
user_pool_id = user_pool_segment.split("/")[-1]
|
|
1340
|
-
sign_in_segment = parts[-1]
|
|
1341
|
-
user_sub = sign_in_segment.split(":")[-1]
|
|
1342
|
-
except (IndexError, AttributeError):
|
|
1343
|
-
raise AlertError(
|
|
1344
|
-
"Unable to parse Cognito identity provider string"
|
|
1345
|
-
) from None
|
|
1346
|
-
|
|
1347
|
-
if not user_pool_id or not user_sub:
|
|
1348
|
-
raise AlertError("Incomplete Cognito identity provider data") from None
|
|
1349
|
-
|
|
1331
|
+
# the one parser (velocity.aws.identity.cognito_issuer_subject).
|
|
1350
1332
|
# Federated identities that are not Cognito User Pool logins — e.g.
|
|
1351
1333
|
# developer-authenticated Identity Pool identities used for admin
|
|
1352
1334
|
# masquerade — carry a provider name (like "login.example.masquerade")
|
|
1353
|
-
# that is not a user-pool id
|
|
1354
|
-
#
|
|
1355
|
-
#
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
):
|
|
1335
|
+
# that is not a user-pool id: refuse with a clear message rather than
|
|
1336
|
+
# pass an invalid value to admin_get_user (which raises a cryptic
|
|
1337
|
+
# "userPoolId failed to satisfy constraint" error).
|
|
1338
|
+
pair = cognito_issuer_subject(provider)
|
|
1339
|
+
if not pair:
|
|
1359
1340
|
raise AlertError(
|
|
1360
1341
|
"Request identity is not a Cognito User Pool user "
|
|
1361
|
-
f"(authentication provider '{provider[:120]}'); "
|
|
1342
|
+
f"(authentication provider '{str(provider)[:120]}'); "
|
|
1362
1343
|
"cannot resolve a Cognito user"
|
|
1363
1344
|
) from None
|
|
1345
|
+
issuer, user_sub = pair
|
|
1346
|
+
user_pool_id = issuer.rsplit("/", 1)[-1]
|
|
1364
1347
|
|
|
1365
1348
|
# one Cognito round trip per user per UserCacheSeconds per container
|
|
1366
1349
|
# (velocity.cache); a lookup that fails is never cached
|
|
@@ -1425,7 +1408,7 @@ class Context:
|
|
|
1425
1408
|
"sub": attributes.get("sub", user_sub),
|
|
1426
1409
|
# the token issuer for this pool: with "sub", the identity
|
|
1427
1410
|
# the provider never reassigns (velocity.aws.identity)
|
|
1428
|
-
"issuer":
|
|
1411
|
+
"issuer": issuer,
|
|
1429
1412
|
}
|
|
1430
1413
|
|
|
1431
1414
|
return user
|
|
@@ -1446,6 +1429,41 @@ class Context:
|
|
|
1446
1429
|
except Exception:
|
|
1447
1430
|
return None
|
|
1448
1431
|
|
|
1432
|
+
# resolved_cognito_user's per-request result (a resolved user only)
|
|
1433
|
+
_COGNITO_RESOLVE_MEMO = "_velocity_cognito_resolve_memo"
|
|
1434
|
+
|
|
1435
|
+
def resolved_cognito_user(self, mode: str = "required"):
|
|
1436
|
+
"""The request's Cognito user, resolved once per request and memoised
|
|
1437
|
+
on this Context, so ``LambdaHandler.beforeAction`` and a layer that
|
|
1438
|
+
runs before it share one lookup and one set of claims.
|
|
1439
|
+
|
|
1440
|
+
* ``"required"``: the user, or raises (``AlertError`` when the
|
|
1441
|
+
identity is absent, is not a User Pool identity, or the lookup
|
|
1442
|
+
fails). A failure is never memoised: a later call looks again and
|
|
1443
|
+
raises again.
|
|
1444
|
+
* ``"optional"``: the user, or None on any of those.
|
|
1445
|
+
* ``"none"`` (or anything else): None, no lookup.
|
|
1446
|
+
|
|
1447
|
+
A provider that is not a User Pool identity
|
|
1448
|
+
(:func:`velocity.aws.identity.cognito_issuer_subject` is None) never
|
|
1449
|
+
reaches ``admin_get_user``. Pass ``handler.effective_auth_mode(context)``.
|
|
1450
|
+
"""
|
|
1451
|
+
if mode not in ("required", "optional"):
|
|
1452
|
+
return None
|
|
1453
|
+
found = self.__dict__.get(self._COGNITO_RESOLVE_MEMO)
|
|
1454
|
+
if isinstance(found, dict):
|
|
1455
|
+
return found
|
|
1456
|
+
try:
|
|
1457
|
+
user = self.get_cognito_user(self.__aws_event)
|
|
1458
|
+
if not isinstance(user, dict):
|
|
1459
|
+
raise AlertError("Cognito user could not be resolved") from None
|
|
1460
|
+
except Exception:
|
|
1461
|
+
if mode == "required":
|
|
1462
|
+
raise
|
|
1463
|
+
return None
|
|
1464
|
+
self.__dict__[self._COGNITO_RESOLVE_MEMO] = user
|
|
1465
|
+
return user
|
|
1466
|
+
|
|
1449
1467
|
|
|
1450
1468
|
_MAX_TRACKING_FIELDS = 30
|
|
1451
1469
|
_MAX_TRACKING_PAYLOAD_BYTES = 4096
|
{velocity_python-0.13.2 → velocity_python-0.14.1}/src/velocity/aws/handlers/lambda_handler.py
RENAMED
|
@@ -103,6 +103,76 @@ class LambdaHandler(BaseHandler):
|
|
|
103
103
|
finally:
|
|
104
104
|
_tenancy.end_pre_resolution(self)
|
|
105
105
|
|
|
106
|
+
_AUTH_MODES = ("required", "optional", "none")
|
|
107
|
+
# Context attribute holding this request's verified grant (or None):
|
|
108
|
+
# the grant's HMAC is verified once per request.
|
|
109
|
+
_MASQUERADE_GRANT_MEMO = "_velocity_masquerade_grant"
|
|
110
|
+
|
|
111
|
+
def _is_public_action(self, context) -> bool:
|
|
112
|
+
public_actions = getattr(self, "public_actions", None)
|
|
113
|
+
if not isinstance(public_actions, (list, tuple, set)):
|
|
114
|
+
return False
|
|
115
|
+
try:
|
|
116
|
+
current_action = context.action()
|
|
117
|
+
except Exception:
|
|
118
|
+
return False
|
|
119
|
+
return bool(current_action) and current_action in public_actions
|
|
120
|
+
|
|
121
|
+
def effective_auth_mode(self, context) -> str:
|
|
122
|
+
"""``"required"``, ``"optional"`` or ``"none"``: the handler's
|
|
123
|
+
``auth_mode``, or ``"none"`` for an action in ``public_actions``. A
|
|
124
|
+
value that is not one of the three (a typo, ``"None"``) is
|
|
125
|
+
``"required"``: authentication fails closed."""
|
|
126
|
+
if self._is_public_action(context):
|
|
127
|
+
return "none"
|
|
128
|
+
mode = getattr(self, "auth_mode", "required") or "required"
|
|
129
|
+
return mode if mode in self._AUTH_MODES else "required"
|
|
130
|
+
|
|
131
|
+
def _verified_masquerade_grant(self, context):
|
|
132
|
+
"""``context.get_masquerade_grant()``, verified once per request and
|
|
133
|
+
memoised on the Context."""
|
|
134
|
+
memo = getattr(context, "__dict__", None)
|
|
135
|
+
if isinstance(memo, dict) and self._MASQUERADE_GRANT_MEMO in memo:
|
|
136
|
+
return memo[self._MASQUERADE_GRANT_MEMO]
|
|
137
|
+
grant = context.get_masquerade_grant()
|
|
138
|
+
if isinstance(memo, dict):
|
|
139
|
+
memo[self._MASQUERADE_GRANT_MEMO] = grant
|
|
140
|
+
return grant
|
|
141
|
+
|
|
142
|
+
def applicable_masquerade_grant(self, context):
|
|
143
|
+
"""The verified masquerade grant ``beforeAction`` WILL apply to this
|
|
144
|
+
request, or None. The one predicate: a layer that must skip its own
|
|
145
|
+
sign-in handling under masquerade asks this, never its own copy.
|
|
146
|
+
|
|
147
|
+
Applies only when the effective auth mode is not ``"none"``,
|
|
148
|
+
``allow_masquerade`` is true, ``user_table`` is set, the grant
|
|
149
|
+
verifies (``Context.get_masquerade_grant``, once per request), its
|
|
150
|
+
``pool`` is this handler's ``user_table``, and both its
|
|
151
|
+
``real_user`` and ``effective_user`` pass
|
|
152
|
+
:func:`velocity.aws.identity.normalize_email`. A grant that fails
|
|
153
|
+
any of these is treated as absent (the request then needs its own
|
|
154
|
+
sign-in). The grant returned is a copy carrying the normalised
|
|
155
|
+
addresses, so every consumer (the session, the audit, the tenant
|
|
156
|
+
resolver, a layer) sees the same ones."""
|
|
157
|
+
if self.effective_auth_mode(context) == "none":
|
|
158
|
+
return None
|
|
159
|
+
if not getattr(self, "allow_masquerade", True):
|
|
160
|
+
return None
|
|
161
|
+
pool = getattr(self, "user_table", None)
|
|
162
|
+
if not pool:
|
|
163
|
+
return None
|
|
164
|
+
grant = self._verified_masquerade_grant(context)
|
|
165
|
+
if not isinstance(grant, dict) or grant.get("pool") != pool:
|
|
166
|
+
return None
|
|
167
|
+
from velocity.aws.identity import normalize_email
|
|
168
|
+
|
|
169
|
+
real_user = normalize_email(grant.get("real_user"))
|
|
170
|
+
effective_user = normalize_email(grant.get("effective_user"))
|
|
171
|
+
if not (real_user and effective_user):
|
|
172
|
+
logger.warning("Ignored masquerade grant: an address the rule refuses")
|
|
173
|
+
return None
|
|
174
|
+
return {**grant, "real_user": real_user, "effective_user": effective_user}
|
|
175
|
+
|
|
106
176
|
def _before_action(self, tx, context):
|
|
107
177
|
# Enhanced activity tracking is supplied by the WebHandler mixin; a bare
|
|
108
178
|
# LambdaHandler (no WebHandler) simply skips it rather than crashing.
|
|
@@ -113,8 +183,10 @@ class LambdaHandler(BaseHandler):
|
|
|
113
183
|
|
|
114
184
|
self.current_user = {}
|
|
115
185
|
|
|
116
|
-
auth_mode =
|
|
186
|
+
auth_mode = self.effective_auth_mode(context)
|
|
117
187
|
require_db_user = bool(getattr(self, "require_db_user", True))
|
|
188
|
+
if self._is_public_action(context):
|
|
189
|
+
require_db_user = False
|
|
118
190
|
|
|
119
191
|
session = context.session() or {}
|
|
120
192
|
# recorded below from server-side facts only; never one left over
|
|
@@ -122,73 +194,57 @@ class LambdaHandler(BaseHandler):
|
|
|
122
194
|
|
|
123
195
|
session.pop(_identity.SESSION_MODE_KEY, None)
|
|
124
196
|
|
|
125
|
-
public_actions = getattr(self, "public_actions", None)
|
|
126
|
-
try:
|
|
127
|
-
current_action = context.action()
|
|
128
|
-
except Exception:
|
|
129
|
-
current_action = None
|
|
130
|
-
|
|
131
|
-
if (
|
|
132
|
-
current_action
|
|
133
|
-
and isinstance(public_actions, (list, tuple, set))
|
|
134
|
-
and current_action in public_actions
|
|
135
|
-
):
|
|
136
|
-
auth_mode = "none"
|
|
137
|
-
require_db_user = False
|
|
138
|
-
|
|
139
197
|
# Masquerade: a signed grant lets an authorized admin act as another
|
|
140
198
|
# user. When a valid grant scoped to this app's user_table is present,
|
|
141
199
|
# the request identity resolves to the target (effective_user) exactly
|
|
142
200
|
# as if they had signed in, while the real admin is retained for audit.
|
|
143
|
-
#
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
201
|
+
# Whether a grant applies is decided once, by
|
|
202
|
+
# applicable_masquerade_grant (which a layer calls too).
|
|
203
|
+
masquerade = self.applicable_masquerade_grant(context)
|
|
204
|
+
if masquerade:
|
|
205
|
+
# addresses already normalised by applicable_masquerade_grant
|
|
206
|
+
grant = masquerade
|
|
207
|
+
real_user = grant["real_user"]
|
|
208
|
+
effective_user = grant["effective_user"]
|
|
209
|
+
self._refuse_disabled_real_user(tx, grant)
|
|
210
|
+
session["real_user"] = real_user
|
|
211
|
+
session["email_address"] = effective_user
|
|
212
|
+
session["masquerade"] = {
|
|
213
|
+
"real_user": real_user,
|
|
214
|
+
"effective_user": effective_user,
|
|
215
|
+
"pool": grant["pool"],
|
|
216
|
+
"jti": grant.get("jti"),
|
|
217
|
+
"exp": grant.get("exp"),
|
|
218
|
+
}
|
|
219
|
+
logger.info(
|
|
220
|
+
"Masquerade active: %s acting as %s on %s",
|
|
221
|
+
real_user,
|
|
222
|
+
effective_user,
|
|
223
|
+
grant["pool"],
|
|
224
|
+
)
|
|
225
|
+
# Persist the audit the docstring promises: who acted as whom,
|
|
226
|
+
# from where. Goes to the framework's one security audit sink
|
|
227
|
+
# (sys_security_events, the Security Events page), on its own
|
|
228
|
+
# transaction: this request's tx stays open. Fail-closed, as
|
|
229
|
+
# authz.require is: no audit row, no masquerade.
|
|
230
|
+
from velocity.aws.capabilities.security import record_event
|
|
231
|
+
|
|
232
|
+
recorded = record_event(
|
|
233
|
+
tx,
|
|
234
|
+
"masquerade",
|
|
235
|
+
f"{real_user} acting as {effective_user} "
|
|
236
|
+
f"on {grant['pool']} (jti {grant.get('jti')})",
|
|
237
|
+
aws_event=self.aws_event,
|
|
238
|
+
context=context,
|
|
239
|
+
user_email=real_user,
|
|
240
|
+
# recorded before any request actor is set; the actor
|
|
241
|
+
# format AuditTrailMixin uses under masquerade
|
|
242
|
+
actor=f"{effective_user} as {real_user}",
|
|
243
|
+
)
|
|
244
|
+
if not recorded:
|
|
245
|
+
raise AccessError(
|
|
246
|
+
"That masquerade could not be recorded, so it was refused."
|
|
187
247
|
)
|
|
188
|
-
if not recorded:
|
|
189
|
-
raise AccessError(
|
|
190
|
-
"That masquerade could not be recorded, so it was refused."
|
|
191
|
-
)
|
|
192
248
|
|
|
193
249
|
if masquerade or auth_mode == "none":
|
|
194
250
|
# In masquerade mode the caller's own Cognito token is for a
|
|
@@ -196,20 +252,23 @@ class LambdaHandler(BaseHandler):
|
|
|
196
252
|
# Cognito lookup; identity comes from the verified grant instead.
|
|
197
253
|
self.cognito_user = None
|
|
198
254
|
else:
|
|
255
|
+
# one lookup per request, shared with any layer that resolved it
|
|
256
|
+
# first (Context.resolved_cognito_user); "required" raises
|
|
199
257
|
context.perf.start("get_cognito_user")
|
|
200
|
-
|
|
201
|
-
self.cognito_user = context.get_cognito_user_optional(self.aws_event)
|
|
202
|
-
else:
|
|
203
|
-
self.cognito_user = context.get_cognito_user(self.aws_event)
|
|
258
|
+
self.cognito_user = context.resolved_cognito_user(auth_mode)
|
|
204
259
|
context.perf.log("get_cognito_user")
|
|
205
260
|
|
|
206
261
|
logger.debug("DEBUG: !!! cognito_user %s", self.cognito_user)
|
|
207
262
|
if isinstance(self.cognito_user, dict):
|
|
208
|
-
|
|
209
|
-
|
|
263
|
+
attributes = self.cognito_user.get("attributes")
|
|
264
|
+
raw = attributes.get("email") if isinstance(attributes, dict) else None
|
|
265
|
+
# a refused address leaves the session without one, so
|
|
266
|
+
# require_db_user refuses the request by name below
|
|
267
|
+
email_address = _identity.normalize_email(raw)
|
|
268
|
+
if email_address:
|
|
210
269
|
session["email_address"] = email_address
|
|
211
|
-
|
|
212
|
-
logger.warning("
|
|
270
|
+
else:
|
|
271
|
+
logger.warning("Cognito user has no usable email address")
|
|
213
272
|
|
|
214
273
|
self._record_identity_mode(session, masquerade)
|
|
215
274
|
|
|
@@ -422,7 +481,9 @@ class LambdaHandler(BaseHandler):
|
|
|
422
481
|
|
|
423
482
|
from velocity.aws.handlers.context import user_cache_seconds
|
|
424
483
|
|
|
425
|
-
|
|
484
|
+
from velocity.aws.identity import normalize_email
|
|
485
|
+
|
|
486
|
+
email = normalize_email(grant.get("real_user"))
|
|
426
487
|
|
|
427
488
|
def load():
|
|
428
489
|
row = tx.table(table).find({"email_address": email}) if email else None
|
|
@@ -448,10 +509,21 @@ class LambdaHandler(BaseHandler):
|
|
|
448
509
|
from velocity.cache import memo
|
|
449
510
|
|
|
450
511
|
from velocity.aws.handlers.context import user_cache_seconds
|
|
512
|
+
from velocity.aws.identity import find_case_variant, normalize_email
|
|
513
|
+
|
|
514
|
+
# the lookup value and the cache key are the normalised address; a
|
|
515
|
+
# refused one finds nobody and queries nothing
|
|
516
|
+
email_address = normalize_email(email_address)
|
|
517
|
+
if not email_address:
|
|
518
|
+
return None
|
|
451
519
|
|
|
452
520
|
def load():
|
|
453
|
-
|
|
454
|
-
|
|
521
|
+
table = tx.table(self.user_table)
|
|
522
|
+
row = table.find({"email_address": email_address})
|
|
523
|
+
if row:
|
|
524
|
+
return row.to_dict()
|
|
525
|
+
# a row stored before the address rule (identity.find_case_variant)
|
|
526
|
+
return find_case_variant(table, email_address)
|
|
455
527
|
|
|
456
528
|
# Grants kept as rows ride on this row (velocity.aws.permissions).
|
|
457
529
|
# Keying the entry by the grants' change counter makes a change reach
|
|
@@ -85,13 +85,21 @@ def mint_grant(
|
|
|
85
85
|
"""Create a signed masquerade grant string.
|
|
86
86
|
|
|
87
87
|
``real_user``, ``effective_user`` and ``pool`` are required and must be
|
|
88
|
-
non-empty.
|
|
88
|
+
non-empty. Both addresses go through
|
|
89
|
+
:func:`velocity.aws.identity.normalize_email` and are signed in that form;
|
|
90
|
+
an address the rule refuses raises (``LambdaHandler`` would ignore such a
|
|
91
|
+
grant). ``ttl_seconds`` bounds validity; ``jti`` defaults to a random id.
|
|
89
92
|
"""
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
from velocity.aws.identity import normalize_email
|
|
94
|
+
|
|
95
|
+
real_user = normalize_email(real_user)
|
|
96
|
+
effective_user = normalize_email(effective_user)
|
|
92
97
|
pool = (pool or "").strip()
|
|
93
98
|
if not real_user or not effective_user or not pool:
|
|
94
|
-
raise MasqueradeError(
|
|
99
|
+
raise MasqueradeError(
|
|
100
|
+
"real_user, effective_user (valid ASCII email addresses) and pool "
|
|
101
|
+
"are required"
|
|
102
|
+
)
|
|
95
103
|
if ttl_seconds <= 0:
|
|
96
104
|
raise MasqueradeError("ttl_seconds must be positive")
|
|
97
105
|
|