simple-module-hosting 0.0.50__tar.gz → 0.0.51__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.
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/PKG-INFO +4 -4
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/pyproject.toml +4 -4
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_api_version.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_app_boot.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_body_limit.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_csp_dynamic.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_forwarded_host.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_host_services.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_hydrate_step.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_i18n_modules.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_i18n_target.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_module_routes.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_preapp_config.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_route_paths.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_secret_key.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_tenant.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/admin_surfaces.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/app_builder.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/assets.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/auth_policy.py +3 -5
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth_policy.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/app_builder.py +2 -2
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/host.py +47 -5
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/bootstrap_settings.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/_settings_registration.py +39 -2
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/host_settings.py +28 -11
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/csrf.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/error_handling/_error_handlers.py +12 -2
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/error_handling/_error_page.py +24 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/error_handling/errors.py +7 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/_inertia_setup.py +4 -0
- simple_module_hosting-0.0.51/simple_module_hosting/frontend/_tsconfig_paths.py +213 -0
- simple_module_hosting-0.0.51/simple_module_hosting/frontend/inertia_deps.py +87 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/module_tsconfig.py +47 -10
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/health.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/host.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/host_settings.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n_deps.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n_manifest.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/inertia_deps.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/inertia_utils.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/installation.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/leases.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/locales/de.json +9 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/locales/en.json +9 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/locales/es.json +9 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/log_sinks.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/logging.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/manifest.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/middleware.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/migrations.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/migrations_env.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pagination.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/path_matching.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/permissions.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_forwarded_host.py +43 -7
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_security_headers.py +94 -6
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/middleware_config.py +10 -5
- simple_module_hosting-0.0.51/simple_module_hosting/pipeline/public_urls.py +71 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/public_access.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/public_urls.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/rate_limit_deps.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/redirects.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/resource_deps.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/sentry.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/session.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/settings.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_gate.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/shared_props.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/tenancy.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/token_guard.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_shared_host_policy.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_fallback_finalization.py +1 -3
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_hosting_layout_shims.py +1 -1
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_hosting_openapi.py +7 -1
- simple_module_hosting-0.0.51/tests/error_handling/test_error_permission_exposure.py +95 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_frontend_extensions.py +34 -22
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_module_tsconfig.py +12 -2
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_spa_mounts_541.py +2 -2
- simple_module_hosting-0.0.51/tests/frontend/test_tsconfig_paths.py +84 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_forwarded_host.py +21 -0
- simple_module_hosting-0.0.51/tests/pipeline/test_hosting_csp_exempt_prefix.py +293 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_middleware_order.py +2 -0
- simple_module_hosting-0.0.51/tests/pipeline/test_public_urls.py +110 -0
- simple_module_hosting-0.0.50/simple_module_hosting/frontend/inertia_deps.py +0 -45
- simple_module_hosting-0.0.50/simple_module_hosting/pipeline/public_urls.py +0 -10
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/.gitignore +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/LICENSE +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/README.md +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/__main__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/admin_overview/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/admin_overview/pages/Overview.tsx +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/admin_overview/routes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/_anonymous.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/api_equivalent.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/csrf.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/host_permissions.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/meta_openapi.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/permissions.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/principal.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/resource_deps.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/token_guard.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth/whoami.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_app_boot.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_boot_checks.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_db_health.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_deferred_startup.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_dev_boot.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_fallback_routes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_hydrate_step.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_lifespan.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_module_routes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_openapi.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_phase_helpers.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_process_services.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_project_root.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_registrations.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/_table_coverage.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/data_compatibility.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/db_options.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/health.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/migrations.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/migrations_env.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/_api_version.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/_app_name.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/_host_services.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/_host_settings_support.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/_preapp_config.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/_secret_key.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/_stored_identity.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/bootstrap_settings.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/installation.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/config/settings.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/error_handling/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/error_handling/_error_negotiation.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/error_handling/sanitization.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/_asset_sources.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/_favicon.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/_generated_files.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/_inertia_shared.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/_spa_mount.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/admin_surfaces.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/assets.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/frontend_extensions.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/inertia_utils.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/manifest.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/page_globs.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/pagination.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/shared_props.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/frontend/static_files.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/host_cli.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n/_i18n_build.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n/_i18n_json.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n/_i18n_modules.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n/_i18n_target.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n/i18n_deps.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n/i18n_manifest.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n/i18n_middleware.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/i18n/i18n_routes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/locking/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/locking/_lease_redis.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/locking/_lease_redis_close.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/locking/_lease_redis_scripts.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/locking/leases.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/observability/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/observability/_observability.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/observability/log_sinks.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/observability/logging.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/observability/sentry.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/observability/sentry_scrub.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/observability/sentry_scrub_text.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_body_limit.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_cors.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_csp_dynamic.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_insecure_transport.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_middleware_pipeline.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_request_guard_responses.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_request_policy.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_route_access.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_route_guard.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_route_paths.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_server_timing.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/_tenant.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/compression.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/maintenance.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/middleware.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/path_matching.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/public_access.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/redirects.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/session.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/setup_gate.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/pipeline/tenancy.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/py.typed +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/rate_limit/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/rate_limit/_rate_limit.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/rate_limit/_rate_limit_keys.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/rate_limit/_rate_limit_store.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/rate_limit/rate_limit_deps.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_wizard/__init__.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_wizard/_migration_lock.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_wizard/components/ConnectionList.tsx +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_wizard/components/StepForm.tsx +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_wizard/composition.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_wizard/migrate.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_wizard/pages/Wizard.tsx +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_wizard/payloads.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/setup_wizard/routes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/ui_locales/de.json +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/ui_locales/en.json +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/ui_locales/es.json +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/_hosting_settings_db.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/_resacc_models.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/_sentry_transport.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_api_equivalent.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_grant_sources.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_hosting_csrf.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_hosting_csrf_partial.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_hosting_csrf_shared_prop.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_hosting_csrf_tokens.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_hosting_permissions.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_hosting_platform_permissions.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_meta_openapi.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_permission_any_of.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_principal_builder.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_principal_permissions_claim.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_resource_deps.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_resource_policy_owned.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_resource_policy_parity.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_single_tenant_principal.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_token_guard_effective_route.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_token_route_guard.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/auth/test_whoami.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/backend_cleanup_helpers.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_admin_surface.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_app.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_app_name.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_app_project_root.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_backend_resource_cleanup.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_boot_drift_check.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_check_migrations.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_check_migrations_expression_note.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_csp_module_sources.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_customize_registries.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_database_injection.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_db_health_check.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_deferred_startup_serialization.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_design_packs_wiring.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_dev_boot_exit.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_dev_boot_output.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_diagnostics_state.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_fallback_routes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_file_access_registration.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_health.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_host_cli.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_host_factory.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_hosting_data_compatibility.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_hosting_health_bounded.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_hosting_lifespan_cleanup.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_hosting_openapi_security.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_hosting_table_coverage.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_invalidation_wiring.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_lifespan_deferred_startup.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_lifespan_lease_contention.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_lifespan_lease_ownership.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_lifespan_order.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_lifespan_resource_cleanup.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_migration_listing.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_migration_multihead.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_migration_script_cache.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_migrations_env.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_openapi_token_flag.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_resource_types_wiring.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_setup_public_routes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_strict_discovery_wiring.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_tenant_resolver_diagnostic.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/boot/test_view_prefixes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_app_name.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_auth_provider_setting.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_boot_config_hardening.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_build_time_settings_marked.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_host_settings_fields.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_hosting_api_version_cache.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_hosting_config_sources.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_installation_id.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_login_redirect_setting.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_merge_host_settings_strict.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_native_link_prefixes_strip.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_preapp_config.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_preapp_invalid_values.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_preapp_read_failures.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_secret_key_bootstrap.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_settings_i18n.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_settings_secrets.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_setup_secret_key.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/config/test_sqlite_path_anchor.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/conftest.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/error_handling/test_api_error_negotiation.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/error_handling/test_error_page_shared_props.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/error_handling/test_error_status_coverage.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/error_handling/test_error_surrogates.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/error_handling/test_hosting_error_json_and_session_cookie.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/error_handling/test_hosting_public_error_page.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_branding_head.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_favicon_default.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_generated_file_writes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_home_url_default.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_hosting_asset_version.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_hosting_framework_pages_reserved.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_hosting_inertia_body_validation.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_hosting_inertia_cache.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_hosting_inertia_validation_errors.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_hosting_lazy_layout_catalogs.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_hosting_pagination_deps.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_hosting_spa_mount_nonce.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_hosting_ui_assets.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_inertia_i18n_shared_props.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_inertia_protocol_middleware.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_inertia_shared_providers.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_manifest.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_menu_providers_wiring.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_module_tsconfig_coverage.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_precompressed_static.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_server_rendered_head.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/frontend/test_static_caching.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_hosting_catalog_json_cache.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_i18n_build_overrides.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_i18n_manifest.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_i18n_manifest_published_target.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_i18n_routes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_i18n_types_cover_installed_modules.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_i18n_ui_namespace.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_locale_middleware.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_portable_i18n_typecheck.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/i18n/test_translator_dep.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/locking/test_backend_cleanup_cancellation.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/locking/test_backend_cleanup_fork_failures.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/locking/test_backend_cleanup_handoff.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/locking/test_backend_cleanup_transports.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/locking/test_hosting_lease_backends.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/locking/test_hosting_lease_selection.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/locking/test_hosting_lease_timeouts.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/observability/test_hosting_log_sinks.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/observability/test_hosting_sentry.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/observability/test_hosting_sentry_scrub.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/observability/test_hosting_sentry_scrub_gaps.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/observability/test_logging.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_gzip_negotiation.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_host_gzip.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_hosting_cors_api.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_hosting_cors_unset.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_hosting_csp_nonce.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_hosting_csp_providers.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_hosting_error_handling_policy.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_hosting_public_access.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_hosting_public_path_boundaries.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_hosting_security_static_headers.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_hosting_server_timing.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_insecure_transport_warning.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_live_request_guards.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_maintenance_mode.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_menu_urls_are_canonical.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_middleware_overrides.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_middleware_session_replacement.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_middleware_stages.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_proxy_headers.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_redirects.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_request_guard_body_limit.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_request_guard_body_limit_middleware_read.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_request_guard_body_limit_started.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_response_compression.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_route_guard.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_route_guard_fastapi_contract.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_route_paths.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_session_cookie_secure.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_session_cookie_security.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_session_cookie_window.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_session_root.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_session_vary_dedupe.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_setup_gate.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_setup_gate_single_flight.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_tenancy_api.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_tenant_middleware.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_tenant_resolver_types.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_tenant_scope_helpers.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/pipeline/test_tenant_source.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/rate_limit/test_rate_limit_rules_redis.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/rate_limit/test_rate_limit_rules_registry.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/rate_limit/test_rate_limit_store_shared.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/rate_limit/test_request_guard_auth_parity.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/rate_limit/test_request_guard_rate_limit.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/setup_wizard/test_hosting_migration_target.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/setup_wizard/test_setup_composition.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/setup_wizard/test_setup_migrate_error_redaction.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/setup_wizard/test_setup_migrate_worker_lock.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/setup_wizard/test_setup_registry.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests/setup_wizard/test_setup_routes.py +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests-js/hosting_AdminOverview.test.tsx +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tests-js/hosting_SetupWizard.test.tsx +0 -0
- {simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/tsconfig.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: simple_module_hosting
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.51
|
|
4
4
|
Summary: FastAPI + Inertia.js host runtime for simple_module — app_builder, middleware stack, CLI (sm / simple-module), scaffolding
|
|
5
5
|
Project-URL: Homepage, https://github.com/antosubash/simple_module_python
|
|
6
6
|
Project-URL: Repository, https://github.com/antosubash/simple_module_python
|
|
@@ -26,9 +26,9 @@ Requires-Dist: fastapi<0.163,>=0.140
|
|
|
26
26
|
Requires-Dist: httpx<0.29,>=0.27
|
|
27
27
|
Requires-Dist: itsdangerous<3,>=2.0
|
|
28
28
|
Requires-Dist: jinja2<4,>=3.1
|
|
29
|
-
Requires-Dist: simple-module-core==0.0.
|
|
30
|
-
Requires-Dist: simple-module-db==0.0.
|
|
31
|
-
Requires-Dist: simple-module-inertia==0.0.
|
|
29
|
+
Requires-Dist: simple-module-core==0.0.51
|
|
30
|
+
Requires-Dist: simple-module-db==0.0.51
|
|
31
|
+
Requires-Dist: simple-module-inertia==0.0.51
|
|
32
32
|
Requires-Dist: starlette<2,>=0.44
|
|
33
33
|
Requires-Dist: tomlkit<0.16,>=0.13
|
|
34
34
|
Requires-Dist: uvicorn[standard]<0.55,>=0.34
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "simple_module_hosting"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.51"
|
|
4
4
|
description = "FastAPI + Inertia.js host runtime for simple_module — app_builder, middleware stack, CLI (sm / simple-module), scaffolding"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -29,9 +29,9 @@ dependencies = [
|
|
|
29
29
|
# it directly — out-of-tree hosts have nothing else pulling it in.
|
|
30
30
|
"itsdangerous>=2.0,<3",
|
|
31
31
|
"jinja2>=3.1,<4",
|
|
32
|
-
"simple_module_core==0.0.
|
|
33
|
-
"simple_module_db==0.0.
|
|
34
|
-
"simple_module_inertia==0.0.
|
|
32
|
+
"simple_module_core==0.0.51",
|
|
33
|
+
"simple_module_db==0.0.51",
|
|
34
|
+
"simple_module_inertia==0.0.51",
|
|
35
35
|
"starlette>=0.44,<2",
|
|
36
36
|
"tomlkit>=0.13,<0.16",
|
|
37
37
|
"uvicorn[standard]>=0.34,<0.55",
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_api_version.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._api_version",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.config._api_version",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.config._api_version")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_app_boot.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._app_boot",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.boot._app_boot",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.boot._app_boot")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_body_limit.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._body_limit",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.pipeline._body_limit",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.pipeline._body_limit")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_csp_dynamic.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._csp_dynamic",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.pipeline._csp_dynamic",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.pipeline._csp_dynamic")
|
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._forwarded_host",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.pipeline._forwarded_host",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.pipeline._forwarded_host")
|
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._host_services",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.config._host_services",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.config._host_services")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_hydrate_step.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._hydrate_step",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.boot._hydrate_step",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.boot._hydrate_step")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_i18n_modules.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._i18n_modules",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.i18n._i18n_modules",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.i18n._i18n_modules")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_i18n_target.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._i18n_target",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.i18n._i18n_target",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.i18n._i18n_target")
|
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._module_routes",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.boot._module_routes",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.boot._module_routes")
|
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._preapp_config",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.config._preapp_config",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.config._preapp_config")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_route_paths.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._route_paths",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.pipeline._route_paths",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.pipeline._route_paths")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_secret_key.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._secret_key",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.config._secret_key",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.config._secret_key")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/_tenant.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting._tenant",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.pipeline._tenant",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.pipeline._tenant")
|
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting.admin_surfaces",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.frontend.admin_surfaces",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.frontend.admin_surfaces")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/app_builder.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting.app_builder",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.boot.app_builder",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.boot.app_builder")
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/assets.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting.assets",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.frontend.assets",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.frontend.assets")
|
|
@@ -19,13 +19,11 @@ def session_cookie_is_secure(settings: Settings) -> bool:
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
def login_redirect_url(app: FastAPI, provider: str) -> str:
|
|
22
|
-
"""Resolve the live host destination,
|
|
22
|
+
"""Resolve the live host destination, falling back to ``/`` when Dashboard is absent."""
|
|
23
|
+
del provider
|
|
23
24
|
destination = app.state.host.settings.login_redirect_url
|
|
24
25
|
if destination != DEFAULT_LOGIN_REDIRECT_URL:
|
|
25
26
|
return destination
|
|
26
27
|
if any(m.meta.name == _DASHBOARD_MODULE for m in app.state.sm.modules):
|
|
27
28
|
return destination
|
|
28
|
-
|
|
29
|
-
(prefix for name, prefix in app.state.sm.view_prefixes.items() if name != provider), None
|
|
30
|
-
)
|
|
31
|
-
return "/" if prefix is None else f"{prefix.rstrip('/')}/"
|
|
29
|
+
return "/"
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/auth_policy.py
RENAMED
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting.auth_policy",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.auth.auth_policy",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.auth.auth_policy")
|
|
@@ -58,6 +58,7 @@ from simple_module_hosting.config._secret_key import assert_not_placeholder
|
|
|
58
58
|
from simple_module_hosting.config._settings_registration import (
|
|
59
59
|
check_settings_registration,
|
|
60
60
|
register_host_settings,
|
|
61
|
+
run_register_settings,
|
|
61
62
|
)
|
|
62
63
|
from simple_module_hosting.config.host_settings import HostSettings
|
|
63
64
|
from simple_module_hosting.config.settings import Settings
|
|
@@ -174,8 +175,7 @@ def create_app(
|
|
|
174
175
|
app = build_fastapi_app(settings, lifespan)
|
|
175
176
|
|
|
176
177
|
# ── Phase 4: Module settings ───────────────────────────
|
|
177
|
-
|
|
178
|
-
mod.register_settings(app)
|
|
178
|
+
run_register_settings(app, modules)
|
|
179
179
|
|
|
180
180
|
register_host_settings(app)
|
|
181
181
|
app.state.host.settings = HostSettings.model_validate(settings.model_dump())
|
{simple_module_hosting-0.0.50 → simple_module_hosting-0.0.51}/simple_module_hosting/boot/host.py
RENAMED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
+
import secrets
|
|
6
7
|
import sys
|
|
7
8
|
import tomllib
|
|
8
|
-
from collections.abc import Callable, Iterable, Iterator
|
|
9
|
+
from collections.abc import Callable, Generator, Iterable, Iterator
|
|
10
|
+
from contextlib import contextmanager
|
|
11
|
+
from contextvars import ContextVar
|
|
9
12
|
from importlib import import_module
|
|
10
13
|
from pathlib import Path
|
|
11
14
|
from typing import TYPE_CHECKING, Any
|
|
@@ -16,6 +19,40 @@ if TYPE_CHECKING:
|
|
|
16
19
|
|
|
17
20
|
from simple_module_hosting.config.settings import Settings
|
|
18
21
|
|
|
22
|
+
_OFFLINE_EXPORT: ContextVar[bool] = ContextVar("_OFFLINE_EXPORT", default=False)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@contextmanager
|
|
26
|
+
def offline_app_build() -> Generator[None]:
|
|
27
|
+
"""Build host apps without connecting to a database (used by ``smpy openapi export --app``)."""
|
|
28
|
+
token = _OFFLINE_EXPORT.set(True)
|
|
29
|
+
prev_environ = os.environ.copy()
|
|
30
|
+
os.environ["SM_ENVIRONMENT"] = "testing"
|
|
31
|
+
try:
|
|
32
|
+
yield
|
|
33
|
+
finally:
|
|
34
|
+
os.environ.clear()
|
|
35
|
+
os.environ.update(prev_environ)
|
|
36
|
+
_OFFLINE_EXPORT.reset(token)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _offline_settings(*, app_name: str | None = None) -> Settings:
|
|
40
|
+
"""Build lenient, DB-free ``Settings`` for offline OpenAPI export."""
|
|
41
|
+
from simple_module_core.settings.stored_settings import construct_leniently
|
|
42
|
+
|
|
43
|
+
from simple_module_hosting.config._app_name import with_api_title_default
|
|
44
|
+
from simple_module_hosting.config.settings import Settings
|
|
45
|
+
|
|
46
|
+
fixed: dict[str, Any] = {
|
|
47
|
+
"environment": "testing",
|
|
48
|
+
"secret_key": secrets.token_urlsafe(32),
|
|
49
|
+
"database_url": "sqlite+aiosqlite:///:memory:",
|
|
50
|
+
}
|
|
51
|
+
settings = construct_leniently(with_api_title_default(Settings, app_name), {}, fixed=fixed)
|
|
52
|
+
settings._secret_key_ephemeral = True
|
|
53
|
+
settings._app_name_default = app_name
|
|
54
|
+
return settings
|
|
55
|
+
|
|
19
56
|
|
|
20
57
|
def _is_workspace_member(host_dir: Path) -> bool:
|
|
21
58
|
"""True for ``<root>/host/main.py`` under a uv workspace root (repo and workspace scaffold).
|
|
@@ -86,10 +123,15 @@ def build_host_app(
|
|
|
86
123
|
from simple_module_hosting import create_app, merge_host_settings
|
|
87
124
|
from simple_module_hosting.observability.logging import setup_logging
|
|
88
125
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
126
|
+
if _OFFLINE_EXPORT.get():
|
|
127
|
+
settings = _offline_settings(app_name=app_name)
|
|
128
|
+
else:
|
|
129
|
+
settings = (
|
|
130
|
+
merge_host_settings(app_name=app_name)
|
|
131
|
+
if app_name is not None
|
|
132
|
+
else merge_host_settings()
|
|
133
|
+
)
|
|
134
|
+
setup_logging(level=settings.log_level, json_format=settings.log_format == "json")
|
|
93
135
|
options: dict[str, Any] = {"database": database} if database is not None else {}
|
|
94
136
|
if customize is not None:
|
|
95
137
|
options["customize"] = customize
|
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting.bootstrap_settings",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.config.bootstrap_settings",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.config.bootstrap_settings")
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from fastapi import FastAPI
|
|
6
|
+
from simple_module_core.access.file_access import FileAccessPolicyRegistry
|
|
6
7
|
from simple_module_core.diagnostics import Diagnostic, DiagnosticLevel
|
|
7
8
|
from simple_module_core.settings.module_settings import register_module_settings
|
|
8
9
|
|
|
@@ -22,6 +23,39 @@ def register_host_settings(app: FastAPI) -> None:
|
|
|
22
23
|
register_module_settings(app, HOST_PACKAGE, cls, lambda s: _HostServices(settings=s))
|
|
23
24
|
|
|
24
25
|
|
|
26
|
+
_POLICY_MODULES_ATTR = "_sm_file_access_policy_modules"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _policy_keys(app: FastAPI) -> frozenset[str]:
|
|
30
|
+
registry = getattr(app.state, "file_access_policies", None)
|
|
31
|
+
if not isinstance(registry, FileAccessPolicyRegistry):
|
|
32
|
+
return frozenset()
|
|
33
|
+
return frozenset(owner for owner, _ in registry.items())
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def run_register_settings(app: FastAPI, modules: list) -> None:
|
|
37
|
+
"""Run each module's register_settings(app) and record which added file access policies."""
|
|
38
|
+
attributed: set[str] = set()
|
|
39
|
+
for mod in modules:
|
|
40
|
+
before = _policy_keys(app)
|
|
41
|
+
mod.register_settings(app)
|
|
42
|
+
if _policy_keys(app) - before:
|
|
43
|
+
attributed.add(mod.meta.name)
|
|
44
|
+
setattr(app.state, _POLICY_MODULES_ATTR, frozenset(attributed))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _has_file_access_policy(app: FastAPI, module_name: str, candidates: tuple[str, ...]) -> bool:
|
|
48
|
+
attributed = getattr(app.state, _POLICY_MODULES_ATTR, None)
|
|
49
|
+
if isinstance(attributed, frozenset):
|
|
50
|
+
return module_name in attributed
|
|
51
|
+
return any(
|
|
52
|
+
owner == candidate or owner.startswith(f"{candidate}.")
|
|
53
|
+
for owner in _policy_keys(app)
|
|
54
|
+
for candidate in candidates
|
|
55
|
+
if candidate
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
|
|
25
59
|
def check_settings_registration(app: FastAPI, modules: list) -> list[Diagnostic]:
|
|
26
60
|
"""SM012: warn if a module overrides register_settings but added nothing to app.state.
|
|
27
61
|
|
|
@@ -39,7 +73,9 @@ def check_settings_registration(app: FastAPI, modules: list) -> list[Diagnostic]
|
|
|
39
73
|
# with Settings-module autodiscovery in `settings.module_settings.discovery`.
|
|
40
74
|
package = cls.__module__.split(".", 1)[0]
|
|
41
75
|
candidates = (package, mod.meta.name.lower())
|
|
42
|
-
if any(hasattr(app.state, c) for c in candidates)
|
|
76
|
+
if any(hasattr(app.state, c) for c in candidates) or _has_file_access_policy(
|
|
77
|
+
app, mod.meta.name, candidates
|
|
78
|
+
):
|
|
43
79
|
continue
|
|
44
80
|
mod_prefix = package
|
|
45
81
|
diagnostics.append(
|
|
@@ -50,7 +86,8 @@ def check_settings_registration(app: FastAPI, modules: list) -> list[Diagnostic]
|
|
|
50
86
|
module_name=mod.meta.name,
|
|
51
87
|
suggestion=(
|
|
52
88
|
f"Store your module state on app.state "
|
|
53
|
-
f"(e.g., app.state.{mod_prefix} = {mod.meta.name}Services(...))"
|
|
89
|
+
f"(e.g., app.state.{mod_prefix} = {mod.meta.name}Services(...)) "
|
|
90
|
+
f"or register a file access policy for {mod_prefix}"
|
|
54
91
|
),
|
|
55
92
|
)
|
|
56
93
|
)
|
|
@@ -116,7 +116,18 @@ class HostSettings(BaseSettings):
|
|
|
116
116
|
"""
|
|
117
117
|
|
|
118
118
|
login_redirect_url: str = DEFAULT_LOGIN_REDIRECT_URL
|
|
119
|
-
"""Post-login destination for all providers; an absent Dashboard falls back to
|
|
119
|
+
"""Post-login destination for all providers; an absent Dashboard falls back to ``/``."""
|
|
120
|
+
|
|
121
|
+
expose_required_permission: Literal["always", "admin_only", "never"] = Field(
|
|
122
|
+
default="always",
|
|
123
|
+
json_schema_extra={"group": "Security"},
|
|
124
|
+
)
|
|
125
|
+
"""When to include the missing permission name in 403 responses and error pages.
|
|
126
|
+
|
|
127
|
+
``always`` keeps the existing behaviour, ``admin_only`` omits it outside
|
|
128
|
+
``/admin`` routes so end-user error pages do not disclose internal
|
|
129
|
+
permission strings, and ``never`` omits it everywhere.
|
|
130
|
+
"""
|
|
120
131
|
|
|
121
132
|
@field_validator("login_redirect_url")
|
|
122
133
|
@classmethod
|
|
@@ -171,9 +182,9 @@ class HostSettings(BaseSettings):
|
|
|
171
182
|
leaves authenticated requests unlimited."""
|
|
172
183
|
|
|
173
184
|
forwarded_host_allowlist: list[str] = Field(default=[], json_schema_extra=_RESTART_GUARD)
|
|
174
|
-
"""
|
|
175
|
-
|
|
176
|
-
the
|
|
185
|
+
"""Exact hosts or ``*.example.com`` entries with optional ports. Used by the
|
|
186
|
+
account email request-origin fallback and, when ``trusted_proxy`` is set,
|
|
187
|
+
by the ``X-Forwarded-Host`` middleware."""
|
|
177
188
|
|
|
178
189
|
cors_allow_origins: list[str] = Field(default=[], json_schema_extra={"group": "CORS"})
|
|
179
190
|
"""Origins allowed to call ``/api/`` cross-origin. Empty (default) installs no
|
|
@@ -198,17 +209,23 @@ class HostSettings(BaseSettings):
|
|
|
198
209
|
"""Serve ``/api/openapi.json`` outside development, anonymously. Off by default:
|
|
199
210
|
the schema lists every endpoint, so exposing it is an operator decision."""
|
|
200
211
|
|
|
201
|
-
db_pool_size: int = Field(default=10, json_schema_extra=_RESTART_DB)
|
|
202
|
-
db_max_overflow: int = Field(default=20, json_schema_extra=_RESTART_DB)
|
|
212
|
+
db_pool_size: int = Field(default=10, ge=0, le=1000, json_schema_extra=_RESTART_DB)
|
|
213
|
+
db_max_overflow: int = Field(default=20, ge=-1, le=1000, json_schema_extra=_RESTART_DB)
|
|
203
214
|
db_pool_pre_ping: bool = Field(default=True, json_schema_extra=_RESTART_DB)
|
|
204
|
-
db_pool_recycle: int = Field(
|
|
205
|
-
|
|
215
|
+
db_pool_recycle: int = Field(
|
|
216
|
+
default=1800, ge=-1, le=2_147_483_647, json_schema_extra=_RESTART_DB
|
|
217
|
+
)
|
|
218
|
+
db_pool_timeout: int = Field(default=30, ge=1, le=86400, json_schema_extra=_RESTART_DB)
|
|
206
219
|
"""Seconds a request waits for a pooled connection before failing."""
|
|
207
|
-
db_connect_timeout: int = Field(default=10, ge=1, json_schema_extra=_RESTART_DB)
|
|
220
|
+
db_connect_timeout: int = Field(default=10, ge=1, le=86400, json_schema_extra=_RESTART_DB)
|
|
208
221
|
"""Seconds to wait for a new connection to open (Postgres drivers only)."""
|
|
209
|
-
db_statement_timeout_ms: int = Field(
|
|
222
|
+
db_statement_timeout_ms: int = Field(
|
|
223
|
+
default=0, ge=0, le=2_147_483_647, json_schema_extra=_RESTART_DB
|
|
224
|
+
)
|
|
210
225
|
"""Postgres ``statement_timeout`` in milliseconds; ``0`` disables."""
|
|
211
|
-
db_idle_in_tx_timeout_ms: int = Field(
|
|
226
|
+
db_idle_in_tx_timeout_ms: int = Field(
|
|
227
|
+
default=0, ge=0, le=2_147_483_647, json_schema_extra=_RESTART_DB
|
|
228
|
+
)
|
|
212
229
|
"""Postgres ``idle_in_transaction_session_timeout`` in ms; ``0`` disables."""
|
|
213
230
|
|
|
214
231
|
@field_validator("public_base_url", mode="after")
|
|
@@ -7,7 +7,7 @@ from simple_module_core.runtime.deprecation import deprecated_module
|
|
|
7
7
|
|
|
8
8
|
deprecated_module(
|
|
9
9
|
"simple_module_hosting.csrf",
|
|
10
|
-
remove_in="0.0.
|
|
10
|
+
remove_in="0.0.55",
|
|
11
11
|
use="simple_module_hosting.auth.csrf",
|
|
12
12
|
)
|
|
13
13
|
sys.modules[__name__] = import_module("simple_module_hosting.auth.csrf")
|
|
@@ -15,7 +15,10 @@ from starlette.requests import Request
|
|
|
15
15
|
from starlette.responses import Response
|
|
16
16
|
|
|
17
17
|
from simple_module_hosting.error_handling._error_negotiation import _wants_json
|
|
18
|
-
from simple_module_hosting.error_handling._error_page import
|
|
18
|
+
from simple_module_hosting.error_handling._error_page import (
|
|
19
|
+
render_error_page,
|
|
20
|
+
should_expose_permission,
|
|
21
|
+
)
|
|
19
22
|
from simple_module_hosting.error_handling.sanitization import sanitize_error_payload
|
|
20
23
|
from simple_module_hosting.frontend.inertia_utils import redirect_back_with_errors
|
|
21
24
|
from simple_module_hosting.observability._observability import CorrelationIdMiddleware
|
|
@@ -32,9 +35,16 @@ async def http_exception_handler(request: Request, exc: HTTPException) -> Respon
|
|
|
32
35
|
# body, since both answer with the same status.
|
|
33
36
|
headers = getattr(exc, "headers", None)
|
|
34
37
|
detail = sanitize_error_payload(exc.detail)
|
|
38
|
+
required: str | None = None
|
|
39
|
+
if isinstance(exc, PermissionDenied):
|
|
40
|
+
if should_expose_permission(request):
|
|
41
|
+
required = exc.permission
|
|
42
|
+
else:
|
|
43
|
+
# Redact both default and custom details when permission exposure
|
|
44
|
+
# is disabled so no permission string leaks into JSON or HTML props.
|
|
45
|
+
detail = "Forbidden"
|
|
35
46
|
if exc.status_code in _INERTIA_ERROR_STATUSES and not _wants_json(request):
|
|
36
47
|
message = str(detail) if detail else ""
|
|
37
|
-
required = exc.permission if isinstance(exc, PermissionDenied) else None
|
|
38
48
|
return await render_error_page(request, exc.status_code, message, headers, required)
|
|
39
49
|
return JSONResponse(
|
|
40
50
|
status_code=exc.status_code,
|
|
@@ -7,7 +7,11 @@ from collections.abc import Mapping
|
|
|
7
7
|
from http import HTTPStatus
|
|
8
8
|
|
|
9
9
|
from fastapi.responses import JSONResponse
|
|
10
|
-
from simple_module_core.modules.app_state import
|
|
10
|
+
from simple_module_core.modules.app_state import (
|
|
11
|
+
get_auth_provider,
|
|
12
|
+
get_host_services,
|
|
13
|
+
get_inertia_dependency,
|
|
14
|
+
)
|
|
11
15
|
from simple_module_inertia import (
|
|
12
16
|
Inertia,
|
|
13
17
|
InertiaConfig,
|
|
@@ -16,9 +20,11 @@ from simple_module_inertia import (
|
|
|
16
20
|
)
|
|
17
21
|
from starlette.requests import Request
|
|
18
22
|
from starlette.responses import Response
|
|
23
|
+
from starlette.routing import get_route_path
|
|
19
24
|
|
|
20
25
|
from simple_module_hosting.error_handling.sanitization import sanitize_error_payload
|
|
21
26
|
from simple_module_hosting.frontend._inertia_shared import resolve_inertia_shared
|
|
27
|
+
from simple_module_hosting.frontend.inertia_deps import apply_inertia_history_policy
|
|
22
28
|
|
|
23
29
|
logger = logging.getLogger(__name__)
|
|
24
30
|
|
|
@@ -27,6 +33,18 @@ logger = logging.getLogger(__name__)
|
|
|
27
33
|
_SIGN_IN_STATUSES = frozenset({401, 419})
|
|
28
34
|
|
|
29
35
|
|
|
36
|
+
def should_expose_permission(request: Request) -> bool:
|
|
37
|
+
"""Whether ``HostSettings.expose_required_permission`` permits naming a 403 permission."""
|
|
38
|
+
host = get_host_services(request.app)
|
|
39
|
+
mode = getattr(getattr(host, "settings", None), "expose_required_permission", "always")
|
|
40
|
+
if mode == "never":
|
|
41
|
+
return False
|
|
42
|
+
if mode == "admin_only":
|
|
43
|
+
route_path = get_route_path(request.scope)
|
|
44
|
+
return route_path == "/admin" or route_path.startswith("/admin/")
|
|
45
|
+
return True
|
|
46
|
+
|
|
47
|
+
|
|
30
48
|
def _specific_detail(status_code: int, message: str) -> str:
|
|
31
49
|
"""The detail, unless it only restates the status.
|
|
32
50
|
|
|
@@ -117,6 +135,7 @@ async def render_error_page(
|
|
|
117
135
|
shared = {}
|
|
118
136
|
if shared:
|
|
119
137
|
inertia.share(**shared)
|
|
138
|
+
apply_inertia_history_policy(request, inertia)
|
|
120
139
|
# The correlation id is the only handle a user has on their own failed
|
|
121
140
|
# request — without it a support report is just "it broke". It is already
|
|
122
141
|
# on every log line for this request, so quoting it back makes the page
|
|
@@ -142,6 +161,10 @@ async def render_error_page(
|
|
|
142
161
|
)
|
|
143
162
|
response.status_code = status_code
|
|
144
163
|
_apply_headers(response, headers)
|
|
164
|
+
if getattr(request.state, "user", None) is not None:
|
|
165
|
+
response.headers["Cache-Control"] = "private, no-store"
|
|
166
|
+
if "etag" in response.headers:
|
|
167
|
+
del response.headers["etag"]
|
|
145
168
|
return response
|
|
146
169
|
except InertiaVersionConflictException as exc:
|
|
147
170
|
return await inertia_version_conflict_exception_handler(request, exc)
|
|
@@ -6,7 +6,10 @@ from starlette.requests import Request
|
|
|
6
6
|
from starlette.responses import JSONResponse, Response
|
|
7
7
|
|
|
8
8
|
from simple_module_hosting.error_handling._error_negotiation import _wants_json
|
|
9
|
-
from simple_module_hosting.error_handling._error_page import
|
|
9
|
+
from simple_module_hosting.error_handling._error_page import (
|
|
10
|
+
render_error_page as _render_error_page,
|
|
11
|
+
)
|
|
12
|
+
from simple_module_hosting.error_handling._error_page import should_expose_permission
|
|
10
13
|
from simple_module_hosting.error_handling.sanitization import sanitize_error_payload
|
|
11
14
|
|
|
12
15
|
|
|
@@ -24,6 +27,9 @@ async def render_error_page(
|
|
|
24
27
|
fallback. Status and supplied headers survive either response format.
|
|
25
28
|
``required_permission`` optionally identifies the permission a 403 lacked.
|
|
26
29
|
"""
|
|
30
|
+
if required_permission is not None and not should_expose_permission(request):
|
|
31
|
+
required_permission = None
|
|
32
|
+
detail = "Forbidden"
|
|
27
33
|
if _wants_json(request):
|
|
28
34
|
return JSONResponse(
|
|
29
35
|
status_code=status_code,
|
|
@@ -171,5 +171,9 @@ def setup_inertia(
|
|
|
171
171
|
use_flash_errors=True,
|
|
172
172
|
site=site_info,
|
|
173
173
|
)
|
|
174
|
+
from simple_module_hosting.frontend.inertia_deps import SESSION_CLEAR_HISTORY_KEY
|
|
175
|
+
from simple_module_hosting.pipeline.session import preserve_across_sign_in
|
|
176
|
+
|
|
177
|
+
preserve_across_sign_in(app, SESSION_CLEAR_HISTORY_KEY)
|
|
174
178
|
app.state.inertia_dependency = inertia_dependency_factory(inertia_config)
|
|
175
179
|
return inertia_config
|