apisec-surface 1.4.0__tar.gz → 1.4.2__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.
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/PKG-INFO +2 -2
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/README.md +1 -1
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/pyproject.toml +1 -1
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/cli/main.py +30 -8
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/config.py +4 -1
- apisec_surface-1.4.2/src/apisec_code_bolt/frameworks/python/_flask_common.py +55 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/flask_plugin.py +91 -7
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/taint_scanner.py +17 -4
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/parser.py +27 -0
- apisec_surface-1.4.2/tests/integration/test_cli_upload_decision.py +85 -0
- apisec_surface-1.4.2/tests/unit/test_flask_verb_decorators.py +473 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_python_parser.py +38 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_python_taint_scanner.py +38 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/.gitignore +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/__main__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/analyzer.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/binding_tracker.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/boundary_detection.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/build_tool_env.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/call_graph.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/call_graph_types.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/call_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/capability_tagger.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/config_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/container_facts.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/data_flow.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/dependency_extractor.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/deployment_routes.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/firebase_client_usage.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/firebase_functions_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/firestore_rules.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/flow_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/gradle_resolve.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/gradle_variables.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/hof_catalog.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/integration_detector.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/js_gradle_locks.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/legacy_contract.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/literal_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/manifest_partitioner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/nuget_restore.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/parse_index.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/path_normalizer.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/path_resolution_ladder.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/read_site_detector.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/request_patterns.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/route_like.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/secret_patterns.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/secrets_policy.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/sensitivity_classifier.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/sink_evidence.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/surface_enrichment.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/surface_ledger.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/surface_reconciliation.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/template_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/test_code.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/tree_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/unsupported_frameworks.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/url_prefix_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/analysis/version_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/cli/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/cli/exit_codes.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/cloud/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/cloud/apisec_client.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/cloud/client.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/canonical_resolution.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/ci_identity.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/credentials.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/discovery.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/log_format.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/manifest.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/memory_guard.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/repo.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/runtime_entry_points.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/state.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/telemetry.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/core/types.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/fingerprinting/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/_graphql_common.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/_jwt_common.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/_weak_random_common.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/auth_helpers.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/base.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/_path_helpers.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/aspnet_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/azure_functions_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/csharp_constants.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/di_registration.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/grpc_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/jwt_config_extractor.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/legacy_aspnet_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/lookup_vocabulary.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/object_reference_interprocedural.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/refit_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/taint_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/wcf_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/dotnet/webforms_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/go/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/go/gin_auth.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/go/gin_inputs.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/go/gin_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/go/taint_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/_annotations.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/_constraints.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/graphql_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/jaxrs_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/jwt_config_extractor.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/micronaut_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/object_reference_micronaut.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/object_reference_spring.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/servlet_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/spring_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/java/taint_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/_route_helpers.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/_ts_source.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/express_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/fastify_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/firebase_auth.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/firebase_callable_body.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/firebase_functions_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/firestore_admin_taint.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/graphql_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/koa_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/nestjs_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/js/taint_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/celery_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/click_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/django_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/fastapi/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/fastapi/plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/graphql_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/object_reference.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/prefect_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/weak_hash_facts.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/webhook_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/_ts_helpers.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/action_cable_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/grape_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/graphql_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/hanami_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/padrino_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/rails_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/roda_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/sidekiq_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/sinatra_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/taint_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/ruby/weak_hash_facts.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/base.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/csharp/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/csharp/language_services.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/csharp/literals.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/csharp/parser.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/csharp/type_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/go/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/go/config_values.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/go/language_services.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/go/parser.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/js/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/js/language_services.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/js/parser.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/jvm/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/jvm/language_services.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/jvm/member_reference.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/jvm/parser.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/jvm/type_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/cbv_extractor.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/constant_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/cross_file_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/dynamic_route_detector.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/expression_utils.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/extraction_types.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/language_services.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/parameter_analyzer.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/path_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/router_registry.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/type_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/python/visitors.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/ruby/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/ruby/language_services.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/ruby/parser.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/parsing/services.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/pkgindex/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/pkgindex/indexer.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/pkgindex/metadata.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/pkgindex/module_graph.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/pkgindex/package_source.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/query/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/query/ast_cache.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/query/executor.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/query/handlers.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/query/manifest_context.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/conftest.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/9.2.0/checksums/checksums.lock +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/9.2.0/checksums/md5-checksums.bin +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/9.2.0/checksums/sha1-checksums.bin +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/9.2.0/gc.properties +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/buildOutputCleanup/cache.properties +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/.gradle/vcs-1/gc.properties +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/Cargo.toml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/Gemfile.lock +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/Pipfile +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/build.gradle +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/build.gradle.kts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/cyclonedx-agg-all.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/cyclonedx-agg-runtime.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/cyclonedx-bom-all.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/cyclonedx-bom-runtime.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/go.mod +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/package-lock-v1.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/package-lock.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/packages.lock.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/pnpm-lock-v5.yaml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/pnpm-lock-v6.yaml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/pnpm-lock-v9-env.yaml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/pnpm-lock-v9-workspace.yaml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/pnpm-lock.yaml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/pom.xml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/pyproject_pep621.toml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/pyproject_poetry.toml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/requirements-dev.txt +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/requirements.txt +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/setup.cfg +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/setup.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/yarn-berry.lock +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/dep_files/yarn.lock +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/firebase_webapp/apps/web/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/firebase_webapp/apps/web/src/App.tsx +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/firebase_webapp/apps/web/src/legacy.js +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/firebase_webapp/firebase.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/firebase_webapp/firestore.rules +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/firebase_webapp/pnpm-workspace.yaml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/firebase_webapp/services/api/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/firebase_webapp/services/api/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_django/urls.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_django/views.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_django_cbv_module_alias/urls.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_django_cbv_module_alias/views.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_django_query_params/models.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_django_query_params/urls.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_django_query_params/views.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_express/app.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_express/middleware/authenticate.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_express/routes/auth.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_express/routes/users.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_fastapi/main.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_fastapi/routes/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_fastapi/routes/users.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_fastapi/services/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_fastapi/services/user_service.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/firebase.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/openapi/gateway.swagger.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/packages/shared/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/packages/shared/src/admin.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/packages/shared/src/auth.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/packages/shared/src/http.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/packages/shared/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/services/acme/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/services/acme/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/services/acme/src/tasks.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_auth/services/acme/src/widgets.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/firebase.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/packages/shared/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/packages/shared/src/admin.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/packages/shared/src/auth.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/packages/shared/src/crud.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/packages/shared/src/http.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/packages/shared/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/packages/shared/src/triggers.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/services/identity/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/services/identity/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/services/identity/src/users.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/services/orders/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/services/orders/src/carts.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/services/orders/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/services/orders/src/orders.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_firestore/services/orders/src/tasks.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/firebase.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/packages/shared/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/packages/shared/src/http.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/packages/shared/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/packages/shared/src/triggers.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/orders/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/orders/src/current.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/orders/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/orders/src/orders.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/orders/src/tasks.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/reports/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/reports/src/extensions.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/reports/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/reports/src/legacy.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/reports/src/modern.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_functions/services/reports/src/runwith.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_gateway/firebase.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_gateway/openapi/gateway.swagger.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_gateway/openapi/service.openapi.yaml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_gateway/packages/shared/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_gateway/packages/shared/src/http.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_gateway/packages/shared/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_gateway/services/api/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_gateway/services/api/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_gateway/services/api/src/things.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_real_handlers/firebase.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_real_handlers/functions/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_real_handlers/functions/src/index.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_real_handlers/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_real_handlers/quickstart/functions/index.js +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_firebase_real_handlers/quickstart/functions/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_flask/app.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_flask_auth/app.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_flask_pydantic/app.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_grape/api.rb +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_mixed_transport/app/cli.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_mixed_transport/app/tasks.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_mixed_transport/app/web.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_mixed_transport/requirements.txt +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_monorepo/apps/service-a/app.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_monorepo/apps/service-a/pyproject.toml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_monorepo/apps/service-b/app.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_monorepo/apps/service-b/pyproject.toml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_monorepo/shared_util.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_nestjs/auth.controller.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_nestjs/roles.decorator.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_nestjs/roles.guard.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_nestjs/users.controller.ts +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/chatbot/chat_api.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/chatbot/pyproject.toml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/community/pyproject.toml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/community/urls.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/community/views.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/identity/pom.xml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/identity/src/main/java/com/crapi/identity/config/WebSecurityConfig.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/identity/src/main/java/com/crapi/identity/controller/AuthController.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/portal/portal_api.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_auth_schemes/services/portal/pyproject.toml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_monorepo/services/api-js/index.js +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_monorepo/services/api-js/package.json +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_monorepo/services/api-py/main.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_polyglot_monorepo/services/api-py/pyproject.toml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_sinatra/app.rb +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_spring_boot/apisec-code-bolt/state.yaml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_spring_boot/src/main/java/com/example/demo/config/SecurityConfig.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_spring_boot/src/main/java/com/example/demo/controller/UserController.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_spring_boot/src/main/java/com/example/demo/model/User.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_spring_boot/src/main/java/com/example/demo/service/UserService.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/sample_spring_boot/src/main/resources/application.properties +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/surface_accuracy/express-factory/routes/app.js +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/surface_accuracy/spring-mini/demo/BaseController.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/surface_accuracy/spring-mini/demo/DisabledController.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/surface_accuracy/spring-mini/demo/UserController.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/VULNERABILITIES.md +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/config/SecurityConfig.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/controller/AdminController.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/controller/OrderController.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/controller/UserController.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/model/Order.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/model/User.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/service/OrderService.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/service/UserService.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vuln_spring_boot/src/main/resources/application.properties +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vulnerable_app/pom.xml +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vulnerable_app/src/main/java/com/demo/DemoController.java +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/fixtures/vulnerable_app/target/classes/com/demo/DemoController.class +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_cli.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_django_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_django_cbv_decorator_auth.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_django_mount_prefix_scan_root.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_django_query_param_flow.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_erb_template_data_flows.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_express_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_fastapi_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_firebase_auth_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_firebase_firestore_taint.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_firebase_functions_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_firebase_gateway_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_firebase_real_handler_taint.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_flask_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_flask_auth_integration.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_gin_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_handlebars_stored_data_flows.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_jsx_tsx_manifest.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_mixed_transport_origin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_monorepo_entry_point_id_collision.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_monorepo_inherited_dependencies.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_monorepo_partitioning.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_monorepo_regression.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_nestjs_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_polyglot_auth_scheme_fallback.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_polyglot_monorepo_auth_boundary.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_polyglot_python_prefix_maps.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_regression_flask_auth_and_deps.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_root_config_autodiscovery.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_spring_boot_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_spring_service_impl_flow.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/integration/test_vulnerable_app_reachability_guard.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/test_query/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/test_query/fixtures/sample_app.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/test_query/test_auth_indicator_matching.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/test_query/test_executor.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/test_query/test_executor_connected.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/test_query/test_handlers.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/test_query/test_read_site_origin_types.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/__init__.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/conftest.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_annotations_path_join.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_answers_submit_404.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_apisec_client.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_apisec_client_enrich.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_aspnet_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_azure_functions_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_benchmark_audit.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_benchmark_compare_auth.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_benchmark_compare_facts.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_benchmark_gcp_monorepo_gt.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_benchmark_reachability.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_benchmark_run.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_boundary_detection.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_call_graph.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_call_resolver_di_ambiguous.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_canonical_resolution.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_cbv_extractor.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_cli_console_url.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_client_data_access_manifest.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_composer_dependencies.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_config.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_config_scanner_framework.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_config_scanner_secret_values.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_constant_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_container_facts.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_cross_file_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_body_source_presence.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_command_bus_resolution.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_constants.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_ctor_local_qualification.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_efcore_dbset_calls.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_integration_detector.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_interface_receiver_resolution.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_literals.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_minimal_api_handlers.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_object_reference_interprocedural.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_package_call_qualification.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_package_namespace_roots.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_property_receiver_resolution.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_taint_fastendpoints.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_taint_origin_types.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_taint_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_taint_sink_receivers.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_csharp_type_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_data_flow.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_decorator_call_edges.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_dependency_parsing.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_deployment_routes.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_discovery.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_django_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_dotnet_custom_authorize.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_dotnet_default_auth.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_dotnet_di_registration.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_dotnet_object_reference_fact.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_dotnet_project_graph.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_dotnet_project_reference_partitions.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_dotnet_route_authorization_fact.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_dynamic_routes.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_entry_point_interface_resolution.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_express_nestjs_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_fastapi_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_fastify_passport_auth.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_fastify_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_firebase_auth_model.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_firebase_callable_body.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_firebase_client_usage.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_firebase_functions_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_firebase_gateway_routes.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_firestore_admin_taint.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_firestore_rules.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_flask_auth_and_deps.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_flask_blueprint_prefix.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_flask_params.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_flask_surface_kind.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_flow_analysis.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_gin_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_github_scan_result_report.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_go_language_services.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_go_parser.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_go_taint_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_gradle_resolve.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_gradle_variables.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_grape_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_graphql_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_grpc_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_grpc_route_auth.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_instrumentation.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_integration_detection.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_java_autowired_service_flow.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_java_constant_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_java_parser.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_java_receiver_types.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_java_taint_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_jaxrs_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_jaxrs_secured_auth.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_js_gradle_locks.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_js_graphql_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_js_handler_functions.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_js_parser.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_js_ruby_dependency_calls.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_js_taint_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_jwt_config_extraction.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_koa_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_legacy_aspnet_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_legacy_committed_contract.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_legacy_migration.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_manifest_entry_point_gate.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_manifest_partitioner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_manifest_upload_gzip.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_manifest_upload_refusal.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_memory_guard.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_micronaut_object_reference_fact.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_micronaut_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_monorepo_upload_cli.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_nuget_cpm_pins.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_nuget_restore.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_origin_type_contract.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_parameter_analyzer.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_path_resolution_ladder.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_path_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_pkgindex.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_pydantic_body_inference.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_python_object_reference_fact.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_python_weak_hash_facts.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_questions_poll_transient.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_rails_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_reachability_idioms.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_read_site_detector.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_refit_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_repo_canonical.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_results_publish_failure.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_route_auth_roles.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_router_registry.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_ruby_graphql_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_ruby_language_services.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_ruby_p6_plugins.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_ruby_weak_hash_facts.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_secret_detection_coverage.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_secret_value_presentation.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_secrets_policy.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_sensitivity_capability.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_servlet_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_sinatra_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_sink_evidence.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_spring_object_reference_fact.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_spring_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_static_route_catchup.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_surface_accuracy_benchmark.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_surface_enrichment.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_surface_enrichment_data_flow_policy.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_surface_extraction_client.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_surface_ledger.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_surface_reconciliation.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_telemetry.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_template_scanner.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_test_fake_implementors.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_transformation_tracking.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_tree_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_ts_class_method_names.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_type_resolver_selection.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_types.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_unsupported_frameworks.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_upload_verify_timeout.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_url_prefix_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_verification_outcome_exit.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_version_resolver.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_wcf_plugin.py +0 -0
- {apisec_surface-1.4.0 → apisec_surface-1.4.2}/tests/unit/test_webforms_plugin.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: apisec-surface
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: Static analysis probe for extracting architectural metadata from codebases
|
|
5
5
|
Project-URL: Homepage, https://apisec.ai
|
|
6
6
|
Project-URL: Documentation, https://docs.apisecapps.com/docs/surface
|
|
@@ -202,7 +202,7 @@ direct link to your results in the console.
|
|
|
202
202
|
|
|
203
203
|
```bash
|
|
204
204
|
# Analyze and save the manifest locally, no upload
|
|
205
|
-
apisec-surface analyze . --output manifest.json
|
|
205
|
+
apisec-surface analyze . --output manifest.json
|
|
206
206
|
|
|
207
207
|
# Analyze but write nothing — just print a summary (great for a first look)
|
|
208
208
|
apisec-surface analyze . --dry-run
|
|
@@ -150,7 +150,7 @@ direct link to your results in the console.
|
|
|
150
150
|
|
|
151
151
|
```bash
|
|
152
152
|
# Analyze and save the manifest locally, no upload
|
|
153
|
-
apisec-surface analyze . --output manifest.json
|
|
153
|
+
apisec-surface analyze . --output manifest.json
|
|
154
154
|
|
|
155
155
|
# Analyze but write nothing — just print a summary (great for a first look)
|
|
156
156
|
apisec-surface analyze . --dry-run
|
|
@@ -93,12 +93,16 @@ def cli(ctx: click.Context, verbose: bool, quiet: bool, debug: bool, log_format:
|
|
|
93
93
|
"-o",
|
|
94
94
|
"--output",
|
|
95
95
|
type=click.Path(dir_okay=False, path_type=Path),
|
|
96
|
-
help="Save manifest to file instead of uploading.",
|
|
96
|
+
help="Save manifest to file instead of uploading. Add --upload to also upload.",
|
|
97
97
|
)
|
|
98
98
|
@click.option(
|
|
99
|
-
"--no-upload",
|
|
100
|
-
|
|
101
|
-
help=
|
|
99
|
+
"--upload/--no-upload",
|
|
100
|
+
default=None,
|
|
101
|
+
help=(
|
|
102
|
+
"Upload to the cloud, or don't. Default: upload, unless --output is given "
|
|
103
|
+
"or the config sets cloud.enabled: false. --no-upload without --output "
|
|
104
|
+
"saves to apisec/manifest.json."
|
|
105
|
+
),
|
|
102
106
|
)
|
|
103
107
|
@click.option(
|
|
104
108
|
"--api-key",
|
|
@@ -258,7 +262,7 @@ def analyze(
|
|
|
258
262
|
ctx: click.Context,
|
|
259
263
|
path: Path,
|
|
260
264
|
output: Path | None,
|
|
261
|
-
|
|
265
|
+
upload: bool | None,
|
|
262
266
|
api_key_override: str | None,
|
|
263
267
|
api_url_override: str | None,
|
|
264
268
|
output_format: str,
|
|
@@ -297,8 +301,11 @@ def analyze(
|
|
|
297
301
|
# Analyze current directory and save locally
|
|
298
302
|
apisec-surface analyze . --no-upload
|
|
299
303
|
|
|
300
|
-
# Analyze and save to specific file
|
|
301
|
-
apisec-surface analyze . --output manifest.json
|
|
304
|
+
# Analyze and save to specific file (not uploaded)
|
|
305
|
+
apisec-surface analyze . --output manifest.json
|
|
306
|
+
|
|
307
|
+
# Save to a file and upload too
|
|
308
|
+
apisec-surface analyze . --output manifest.json --upload
|
|
302
309
|
|
|
303
310
|
# Analyze with framework hints
|
|
304
311
|
apisec-surface analyze . --frameworks fastapi,sqlalchemy
|
|
@@ -309,10 +316,15 @@ def analyze(
|
|
|
309
316
|
if api_key_override and not quiet:
|
|
310
317
|
error_console.print(
|
|
311
318
|
"[yellow]Warning: passing API keys via CLI arguments exposes them in "
|
|
312
|
-
"process listings. Prefer the
|
|
319
|
+
"process listings. Prefer the APISEC_PAT env var or the "
|
|
313
320
|
"'apisec-surface auth' command.[/yellow]"
|
|
314
321
|
)
|
|
315
322
|
|
|
323
|
+
# A scan someone asked to keep local must never leave the machine: --output
|
|
324
|
+
# names a local file, so it uploads only with an explicit --upload.
|
|
325
|
+
# `cloud: enabled: false` in the config is checked once the config is loaded.
|
|
326
|
+
no_upload = upload is False or (upload is None and output is not None)
|
|
327
|
+
|
|
316
328
|
# Build configuration
|
|
317
329
|
config_overrides: dict[str, Any] = {}
|
|
318
330
|
|
|
@@ -378,6 +390,10 @@ def analyze(
|
|
|
378
390
|
error_console.print(f"[red]Configuration error:[/red] {e}")
|
|
379
391
|
sys.exit(ExitCode.CONFIG_ERROR)
|
|
380
392
|
|
|
393
|
+
# The config can keep scans local too; an explicit --upload still wins.
|
|
394
|
+
if upload is None and not config.cloud.enabled:
|
|
395
|
+
no_upload = True
|
|
396
|
+
|
|
381
397
|
# Registration code — required on first run, stored and never asked again.
|
|
382
398
|
# Subsequent runs use the installation ID hash only.
|
|
383
399
|
from ..core.telemetry import (
|
|
@@ -555,6 +571,12 @@ def analyze(
|
|
|
555
571
|
_emit_json_summary(path, result, output_path=output_path, secrets=secrets_report)
|
|
556
572
|
elif not quiet:
|
|
557
573
|
console.print(f"\n[green]✓ Manifest saved to {output_path}[/green]")
|
|
574
|
+
if no_upload and upload is None:
|
|
575
|
+
reason = "--output" if output is not None else "cloud.enabled: false"
|
|
576
|
+
console.print(
|
|
577
|
+
f"[dim]Not uploaded ({reason} keeps the scan local; "
|
|
578
|
+
"add --upload to upload it).[/dim]"
|
|
579
|
+
)
|
|
558
580
|
|
|
559
581
|
# Display summary (text mode only)
|
|
560
582
|
if log_format != "json" and not quiet:
|
|
@@ -275,7 +275,10 @@ class CloudConfig(BaseModel):
|
|
|
275
275
|
|
|
276
276
|
api_key: str | None = Field(
|
|
277
277
|
default=None,
|
|
278
|
-
description=
|
|
278
|
+
description=(
|
|
279
|
+
"Not used for uploads: they read --api-key, the APISEC_PAT env var or the "
|
|
280
|
+
"key stored by `apisec-surface auth`."
|
|
281
|
+
),
|
|
279
282
|
)
|
|
280
283
|
|
|
281
284
|
timeout_seconds: int = Field(
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""Facts about Flask shared by the route extractor and the Python taint scanner."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import re
|
|
6
|
+
|
|
7
|
+
# Flask 2.0's verb shorthands: ``@app.get(rule)`` is ``@app.route(rule,
|
|
8
|
+
# methods=["GET"])``. Flask defines exactly these five; there is no
|
|
9
|
+
# ``@app.head`` or ``@app.options``.
|
|
10
|
+
FLASK_VERB_DECORATORS: frozenset[str] = frozenset({"get", "post", "put", "patch", "delete"})
|
|
11
|
+
|
|
12
|
+
# A plain string literal: an optional r/u/b prefix, then a quote. An f-string
|
|
13
|
+
# does not match and is treated as the expression it is.
|
|
14
|
+
_STRING_LITERAL_START_RE = re.compile(r"^[rRuUbB]{0,2}(?P<quote>['\"])")
|
|
15
|
+
# A call whose first argument is a keyword (``key=...``); ``==`` is a comparison.
|
|
16
|
+
_KEYWORD_FIRST_RE = re.compile(r"^[A-Za-z_]\w*\s*=(?!=)")
|
|
17
|
+
# The ``rule`` keyword anywhere in a keyword-only call.
|
|
18
|
+
_RULE_KEYWORD_RE = re.compile(r"(?:^|,)\s*rule\s*=(?!=)")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def verb_call_could_register_a_view(raw_arguments: str | None) -> bool:
|
|
22
|
+
"""Whether a verb shorthand call can register a Flask view.
|
|
23
|
+
|
|
24
|
+
``raw_arguments`` is the decorator's argument text between its
|
|
25
|
+
parentheses, or None when the decorator is not called at all.
|
|
26
|
+
|
|
27
|
+
werkzeug's ``Rule.__init__`` refuses any rule that does not start with
|
|
28
|
+
``/`` (``ValueError: URL rule '...' must start with a slash``), and the
|
|
29
|
+
shorthands require the rule, which Flask's keyword spelling names
|
|
30
|
+
``rule=``. So:
|
|
31
|
+
|
|
32
|
+
- not called (``@app.get``) or called with nothing (``@app.get()``):
|
|
33
|
+
cannot register a view;
|
|
34
|
+
- first argument a plain string literal: a view only if it starts with
|
|
35
|
+
``/`` (``@cache.delete("foo")`` and ``@mock.patch("os.path")`` are not);
|
|
36
|
+
- keyword-only (``@app.get(rule="/x")``): a view only with a ``rule``
|
|
37
|
+
keyword (``@cache.delete(key="foo")`` is not);
|
|
38
|
+
- any other first argument (``RULE``, ``settings.RULE``, an f-string,
|
|
39
|
+
``*args``): undecidable, accepted exactly as ``@app.route(RULE)`` is.
|
|
40
|
+
"""
|
|
41
|
+
if raw_arguments is None:
|
|
42
|
+
return False
|
|
43
|
+
raw = raw_arguments.strip()
|
|
44
|
+
if not raw:
|
|
45
|
+
return False
|
|
46
|
+
match = _STRING_LITERAL_START_RE.match(raw)
|
|
47
|
+
if match is not None:
|
|
48
|
+
body = raw[match.end() :]
|
|
49
|
+
quote = match.group("quote")
|
|
50
|
+
if body.startswith(quote * 2): # triple-quoted
|
|
51
|
+
body = body[2:]
|
|
52
|
+
return body.startswith("/")
|
|
53
|
+
if _KEYWORD_FIRST_RE.match(raw):
|
|
54
|
+
return _RULE_KEYWORD_RE.search(raw) is not None
|
|
55
|
+
return True
|
{apisec_surface-1.4.0 → apisec_surface-1.4.2}/src/apisec_code_bolt/frameworks/python/flask_plugin.py
RENAMED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Flask framework plugin for extracting routes and parameters.
|
|
3
3
|
|
|
4
4
|
Flask uses:
|
|
5
|
-
- @app.route(path) or @bp.route(path) with methods
|
|
5
|
+
- @app.route(path) or @bp.route(path) with methods, or the Flask 2.0 verb
|
|
6
|
+
shorthands @app.get(path) / @bp.post(path) / put / patch / delete
|
|
6
7
|
- Path params: <int:id>, <uuid:pk> (converted to {id}, {pk})
|
|
7
8
|
- Parameters: from request.args, request.form, request.get_json() in handler body
|
|
8
9
|
(read-site detection handles these; we extract route structure here)
|
|
@@ -39,6 +40,7 @@ from ..base import (
|
|
|
39
40
|
ExtractedRoute,
|
|
40
41
|
FrameworkPluginRegistry,
|
|
41
42
|
)
|
|
43
|
+
from ._flask_common import FLASK_VERB_DECORATORS, verb_call_could_register_a_view
|
|
42
44
|
|
|
43
45
|
if TYPE_CHECKING:
|
|
44
46
|
from ...parsing.services import AnalysisContext
|
|
@@ -80,6 +82,54 @@ HTTP_METHOD_MAP = {
|
|
|
80
82
|
"options": HttpMethod.OPTIONS,
|
|
81
83
|
}
|
|
82
84
|
|
|
85
|
+
|
|
86
|
+
def _file_uses_flask_not_fastapi(parsed_file: ParsedFile) -> bool:
|
|
87
|
+
"""Whether the verb shorthands in this file are Flask's.
|
|
88
|
+
|
|
89
|
+
FastAPI spells its decorators identically (``@app.get("/x")``), so a
|
|
90
|
+
verb is only Flask's when the file imports Flask or a Flask extension
|
|
91
|
+
and not FastAPI. ``route`` needs no such gate: FastAPI has no
|
|
92
|
+
``@app.route``.
|
|
93
|
+
|
|
94
|
+
Same gate concept as ``_imports_flask`` in the Python taint scanner,
|
|
95
|
+
stricter here: that one is a raw source scan for ``from flask`` /
|
|
96
|
+
``import flask`` and keeps a file that also imports FastAPI, this one
|
|
97
|
+
reads the parsed import table and excludes it. If the two are ever
|
|
98
|
+
unified, unify toward this one.
|
|
99
|
+
"""
|
|
100
|
+
roots = {(imp.module or "").split(".")[0].lower() for imp in parsed_file.imports}
|
|
101
|
+
return any(root.startswith("flask") for root in roots) and "fastapi" not in roots
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def _could_be_a_url_rule(dec: ParsedDecorator) -> bool:
|
|
105
|
+
"""Whether a verb shorthand decorator can register a Flask view.
|
|
106
|
+
|
|
107
|
+
Judged from the decorator's recorded argument text by
|
|
108
|
+
``verb_call_could_register_a_view``, which the Python taint scanner
|
|
109
|
+
shares, so both consumers agree on what is a view. Taking another
|
|
110
|
+
library's ``@X.get/post/put/patch/delete(...)`` (``@mock.patch(...)``,
|
|
111
|
+
``@cache.delete(...)``) as the route decorator would invent a phantom
|
|
112
|
+
endpoint and, worse, hide the real ``@app.route`` stacked under it.
|
|
113
|
+
"""
|
|
114
|
+
if dec.raw_arguments is None and dec.positional_args:
|
|
115
|
+
# A decorator built without recorded text but with arguments
|
|
116
|
+
# (hand-made in tests) stays undecidable.
|
|
117
|
+
return True
|
|
118
|
+
return verb_call_could_register_a_view(dec.raw_arguments)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def _flask_receivers(parsed_file: ParsedFile) -> set[str]:
|
|
122
|
+
"""Module-level names this file binds to ``Flask(...)`` or ``Blueprint(...)``."""
|
|
123
|
+
receivers: set[str] = set()
|
|
124
|
+
for assign in parsed_file.assignments:
|
|
125
|
+
if assign.in_function is not None or assign.source_type != "call":
|
|
126
|
+
continue
|
|
127
|
+
callee = (assign.source_call or "").rsplit(".", 1)[-1]
|
|
128
|
+
if callee in ("Flask", "Blueprint"):
|
|
129
|
+
receivers.add(assign.target)
|
|
130
|
+
return receivers
|
|
131
|
+
|
|
132
|
+
|
|
83
133
|
# ── Auth detection ──────────────────────────────────────────────────────────
|
|
84
134
|
|
|
85
135
|
# Decorator names that protect routes with Flask-Login (session-based auth).
|
|
@@ -215,8 +265,8 @@ class FlaskPlugin(BaseFrameworkPlugin):
|
|
|
215
265
|
parsed_file: ParsedFile,
|
|
216
266
|
blueprint_prefixes: dict[str, list[str]] | None = None,
|
|
217
267
|
) -> list[ExtractedRoute]:
|
|
218
|
-
"""Extract route(s) from a function
|
|
219
|
-
dec = self._find_route_decorator(func)
|
|
268
|
+
"""Extract route(s) from a function registered as a Flask view."""
|
|
269
|
+
dec = self._find_route_decorator(func, parsed_file)
|
|
220
270
|
if not dec:
|
|
221
271
|
return []
|
|
222
272
|
|
|
@@ -369,8 +419,31 @@ class FlaskPlugin(BaseFrameworkPlugin):
|
|
|
369
419
|
)
|
|
370
420
|
return None
|
|
371
421
|
|
|
372
|
-
def _find_route_decorator(
|
|
373
|
-
|
|
422
|
+
def _find_route_decorator(
|
|
423
|
+
self, func: ParsedFunction, parsed_file: ParsedFile
|
|
424
|
+
) -> ParsedDecorator | None:
|
|
425
|
+
"""Find the decorator that registers ``func`` as a Flask view.
|
|
426
|
+
|
|
427
|
+
Two spellings do that:
|
|
428
|
+
- ``@app.route(path, methods=[...])`` / ``@bp.route(...)``;
|
|
429
|
+
- the Flask 2.0 verb shorthands ``@app.get(path)``, ``@bp.post(path)``,
|
|
430
|
+
``put``, ``patch`` and ``delete``, each ``route`` with one method.
|
|
431
|
+
|
|
432
|
+
A shorthand counts only on a dotted receiver (``@X.get``, never a bare
|
|
433
|
+
``@get``), only when the verb is Flask's rather than FastAPI's, and
|
|
434
|
+
only when its arguments can register a view (see
|
|
435
|
+
``_could_be_a_url_rule``): other libraries spell
|
|
436
|
+
``@X.get/post/put/patch/delete(...)`` too, and one of those stacked
|
|
437
|
+
above the real ``@app.route`` must not take its place.
|
|
438
|
+
|
|
439
|
+
The verb is Flask's when the file imports Flask and not FastAPI (see
|
|
440
|
+
``_file_uses_flask_not_fastapi``), or, in a file importing both, when
|
|
441
|
+
its receiver is a name the file binds to ``Flask(...)`` or
|
|
442
|
+
``Blueprint(...)``. Any other receiver in a mixed file stays
|
|
443
|
+
FastAPI's.
|
|
444
|
+
"""
|
|
445
|
+
verbs_are_flask = _file_uses_flask_not_fastapi(parsed_file)
|
|
446
|
+
flask_receivers = set() if verbs_are_flask else _flask_receivers(parsed_file)
|
|
374
447
|
for dec in func.decorators:
|
|
375
448
|
name = (dec.name or "").lower()
|
|
376
449
|
full = (
|
|
@@ -380,6 +453,13 @@ class FlaskPlugin(BaseFrameworkPlugin):
|
|
|
380
453
|
)
|
|
381
454
|
if "route" in name or "route" in full:
|
|
382
455
|
return dec
|
|
456
|
+
if (
|
|
457
|
+
name in FLASK_VERB_DECORATORS
|
|
458
|
+
and "." in full
|
|
459
|
+
and (verbs_are_flask or full.rsplit(".", 1)[0] in flask_receivers)
|
|
460
|
+
and _could_be_a_url_rule(dec)
|
|
461
|
+
):
|
|
462
|
+
return dec
|
|
383
463
|
return None
|
|
384
464
|
|
|
385
465
|
def _route_decorator_receiver(self, dec: ParsedDecorator) -> str:
|
|
@@ -415,6 +495,10 @@ class FlaskPlugin(BaseFrameworkPlugin):
|
|
|
415
495
|
|
|
416
496
|
def _extract_methods(self, dec: ParsedDecorator) -> list[HttpMethod]:
|
|
417
497
|
"""Extract HTTP methods from decorator."""
|
|
498
|
+
# A verb shorthand names its one method; it takes no ``methods=``.
|
|
499
|
+
verb = (dec.name or "").lower()
|
|
500
|
+
if verb in FLASK_VERB_DECORATORS:
|
|
501
|
+
return [HTTP_METHOD_MAP[verb]]
|
|
418
502
|
methods = dec.arguments.get("methods")
|
|
419
503
|
if isinstance(methods, list):
|
|
420
504
|
return [HTTP_METHOD_MAP.get(str(m).lower(), HttpMethod.GET) for m in methods]
|
|
@@ -630,8 +714,8 @@ class FlaskPlugin(BaseFrameworkPlugin):
|
|
|
630
714
|
continue
|
|
631
715
|
name_lower = name.lower()
|
|
632
716
|
|
|
633
|
-
# Skip the route decorator itself
|
|
634
|
-
if "route" in name_lower:
|
|
717
|
+
# Skip the route decorator itself, in either spelling
|
|
718
|
+
if "route" in name_lower or name_lower in FLASK_VERB_DECORATORS:
|
|
635
719
|
continue
|
|
636
720
|
|
|
637
721
|
# Known auth decorators
|
|
@@ -68,6 +68,7 @@ from .._weak_random_common import (
|
|
|
68
68
|
WEAK_RANDOM_SINK_TYPE,
|
|
69
69
|
is_credential_name,
|
|
70
70
|
)
|
|
71
|
+
from ._flask_common import FLASK_VERB_DECORATORS, verb_call_could_register_a_view
|
|
71
72
|
|
|
72
73
|
if TYPE_CHECKING:
|
|
73
74
|
pass
|
|
@@ -446,9 +447,6 @@ _SINK_BY_CALLEE: dict[str, list[_Sink]] = _build_sink_table()
|
|
|
446
447
|
# becomes the HTTP response body. That's a distinct sink shape from _Sink's
|
|
447
448
|
# call-based matching (callee + arg_index) since the "call" here is implicit —
|
|
448
449
|
# the sink is the return statement itself, not a function invocation.
|
|
449
|
-
# Flask 2.0's verb shorthands for @app.route(..., methods=[...]).
|
|
450
|
-
_FLASK_VERB_DECORATORS: frozenset[str] = frozenset({"get", "post", "put", "patch", "delete"})
|
|
451
|
-
|
|
452
450
|
_FLASK_IMPORT_MARKERS: tuple[bytes, ...] = (b"from flask", b"import flask")
|
|
453
451
|
|
|
454
452
|
|
|
@@ -712,6 +710,11 @@ class PythonTaintScanner:
|
|
|
712
710
|
a bare ``return tainted`` there is not an HTML sink. Accepting the
|
|
713
711
|
verbs unconditionally would make every FastAPI endpoint an XSS
|
|
714
712
|
finding. ``route`` needs no such gate -- FastAPI has no ``@app.route``.
|
|
713
|
+
|
|
714
|
+
A verb must also be able to register a view, by the same rule-shape
|
|
715
|
+
test the route extractor applies (``verb_call_could_register_a_view``):
|
|
716
|
+
``@cache.delete("foo")`` on a helper does not make it an HTTP entry
|
|
717
|
+
point.
|
|
715
718
|
"""
|
|
716
719
|
parent = func_node.parent
|
|
717
720
|
if parent is None or parent.type != "decorated_definition":
|
|
@@ -722,7 +725,13 @@ class PythonTaintScanner:
|
|
|
722
725
|
expr = next((c for c in dec.children if c.type != "@"), None)
|
|
723
726
|
if expr is None:
|
|
724
727
|
continue
|
|
728
|
+
raw_arguments: str | None = None
|
|
725
729
|
if expr.type == "call":
|
|
730
|
+
args = expr.child_by_field_name("arguments")
|
|
731
|
+
if args is not None:
|
|
732
|
+
raw_arguments = src[args.start_byte + 1 : args.end_byte - 1].decode(
|
|
733
|
+
"utf-8", errors="replace"
|
|
734
|
+
)
|
|
726
735
|
func = expr.child_by_field_name("function")
|
|
727
736
|
if func is not None:
|
|
728
737
|
expr = func
|
|
@@ -740,7 +749,11 @@ class PythonTaintScanner:
|
|
|
740
749
|
lowered = name.lower()
|
|
741
750
|
if lowered == "route":
|
|
742
751
|
return True
|
|
743
|
-
if
|
|
752
|
+
if (
|
|
753
|
+
lowered in FLASK_VERB_DECORATORS
|
|
754
|
+
and _imports_flask(src)
|
|
755
|
+
and verb_call_could_register_a_view(raw_arguments)
|
|
756
|
+
):
|
|
744
757
|
return True
|
|
745
758
|
return False
|
|
746
759
|
|
|
@@ -47,6 +47,31 @@ if TYPE_CHECKING:
|
|
|
47
47
|
from .visitors import ExtractedClass, ExtractedField, ExtractedFunction
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
def _decorator_raw_arguments(raw_source: str | None) -> str | None:
|
|
51
|
+
"""The text between a decorator call's parentheses, or None for ``@name``.
|
|
52
|
+
|
|
53
|
+
``@app.get("/x")`` gives ``"/x"`` with its quotes and ``@app.get(RULE)``
|
|
54
|
+
gives ``RULE``: the one place a consumer can still tell a string literal
|
|
55
|
+
from an expression, since ``positional_args`` carries a literal's value
|
|
56
|
+
and an expression's source text alike.
|
|
57
|
+
"""
|
|
58
|
+
if not raw_source:
|
|
59
|
+
return None
|
|
60
|
+
start = raw_source.find("(")
|
|
61
|
+
if start < 0:
|
|
62
|
+
return None
|
|
63
|
+
depth = 0
|
|
64
|
+
for index in range(start, len(raw_source)):
|
|
65
|
+
char = raw_source[index]
|
|
66
|
+
if char == "(":
|
|
67
|
+
depth += 1
|
|
68
|
+
elif char == ")":
|
|
69
|
+
depth -= 1
|
|
70
|
+
if depth == 0:
|
|
71
|
+
return raw_source[start + 1 : index]
|
|
72
|
+
return None
|
|
73
|
+
|
|
74
|
+
|
|
50
75
|
# =============================================================================
|
|
51
76
|
# Python Parser
|
|
52
77
|
# =============================================================================
|
|
@@ -289,6 +314,7 @@ class PythonParser(BaseParser):
|
|
|
289
314
|
arguments=d.arguments,
|
|
290
315
|
positional_args=d.positional_args,
|
|
291
316
|
location=d.location,
|
|
317
|
+
raw_arguments=_decorator_raw_arguments(d.raw_source),
|
|
292
318
|
)
|
|
293
319
|
for d in func.decorators
|
|
294
320
|
]
|
|
@@ -355,6 +381,7 @@ class PythonParser(BaseParser):
|
|
|
355
381
|
arguments=d.arguments,
|
|
356
382
|
positional_args=d.positional_args,
|
|
357
383
|
location=d.location,
|
|
384
|
+
raw_arguments=_decorator_raw_arguments(d.raw_source),
|
|
358
385
|
)
|
|
359
386
|
for d in cls.decorators
|
|
360
387
|
]
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"""When does `analyze` upload? Only when nothing asked to keep the scan local.
|
|
2
|
+
|
|
3
|
+
--output used to save the file *and* upload, although its help said "instead of
|
|
4
|
+
uploading", and `cloud: enabled: false` in the config was never read, so both
|
|
5
|
+
documented ways to keep a scan local sent it to the cloud.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from unittest.mock import patch
|
|
9
|
+
|
|
10
|
+
import pytest
|
|
11
|
+
from click.testing import CliRunner
|
|
12
|
+
|
|
13
|
+
from apisec_code_bolt.cli.main import cli
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@pytest.fixture(autouse=True)
|
|
17
|
+
def skip_registration():
|
|
18
|
+
with patch("apisec_code_bolt.core.telemetry.needs_registration", return_value=False):
|
|
19
|
+
yield
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@pytest.fixture
|
|
23
|
+
def project(tmp_path):
|
|
24
|
+
root = tmp_path / "proj"
|
|
25
|
+
root.mkdir()
|
|
26
|
+
(root / "main.py").write_text(
|
|
27
|
+
"from fastapi import FastAPI\n\napp = FastAPI()\n\n"
|
|
28
|
+
"@app.get('/health')\ndef health():\n return {'status': 'ok'}\n"
|
|
29
|
+
)
|
|
30
|
+
return root
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _run(args, tmp_path):
|
|
34
|
+
with (
|
|
35
|
+
patch("apisec_code_bolt.cli.main._run_authenticated_upload") as upload,
|
|
36
|
+
patch("apisec_code_bolt.cli.main._report_github_scan_result_to_integrations"),
|
|
37
|
+
):
|
|
38
|
+
result = CliRunner().invoke(cli, ["analyze", *args])
|
|
39
|
+
assert result.exit_code == 0, result.output
|
|
40
|
+
return upload.called, result.output
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def test_default_uploads(project, tmp_path):
|
|
44
|
+
uploaded, _ = _run([str(project)], tmp_path)
|
|
45
|
+
assert uploaded
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def test_output_keeps_the_scan_local(project, tmp_path):
|
|
49
|
+
out = tmp_path / "m.json"
|
|
50
|
+
uploaded, output = _run([str(project), "--output", str(out)], tmp_path)
|
|
51
|
+
assert not uploaded
|
|
52
|
+
assert out.exists()
|
|
53
|
+
assert "Not uploaded (--output keeps the scan local" in output
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def test_output_with_upload_does_both(project, tmp_path):
|
|
57
|
+
out = tmp_path / "m.json"
|
|
58
|
+
uploaded, _ = _run([str(project), "--output", str(out), "--upload"], tmp_path)
|
|
59
|
+
assert uploaded
|
|
60
|
+
assert out.exists()
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def test_no_upload_without_output_saves_default_path(project, tmp_path):
|
|
64
|
+
uploaded, _ = _run([str(project), "--no-upload"], tmp_path)
|
|
65
|
+
assert not uploaded
|
|
66
|
+
assert (project / "apisec" / "manifest.json").exists()
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def test_config_cloud_disabled_keeps_the_scan_local(project, tmp_path):
|
|
70
|
+
(project / ".surface.yaml").write_text("cloud:\n enabled: false\n")
|
|
71
|
+
uploaded, output = _run([str(project)], tmp_path)
|
|
72
|
+
assert not uploaded
|
|
73
|
+
assert "Not uploaded (cloud.enabled: false" in output
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def test_explicit_upload_beats_config(project, tmp_path):
|
|
77
|
+
(project / ".surface.yaml").write_text("cloud:\n enabled: false\n")
|
|
78
|
+
uploaded, _ = _run([str(project), "--upload"], tmp_path)
|
|
79
|
+
assert uploaded
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def test_api_key_warning_names_the_env_var_uploads_read(project, tmp_path):
|
|
83
|
+
_, output = _run([str(project), "--no-upload", "--api-key", "x"], tmp_path)
|
|
84
|
+
assert "APISEC_PAT" in output
|
|
85
|
+
assert "CODEBOLT_API_KEY" not in output
|