apisec-surface 1.3.2__tar.gz → 1.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/PKG-INFO +33 -2
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/README.md +32 -1
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/pyproject.toml +1 -1
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/analyzer.py +292 -28
- apisec_surface-1.4.1/src/apisec_code_bolt/analysis/build_tool_env.py +98 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/call_graph.py +40 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/call_resolver.py +120 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/config_scanner.py +13 -2
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/data_flow.py +6 -1
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/dependency_extractor.py +283 -20
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/integration_detector.py +112 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/literal_scanner.py +8 -4
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/manifest_partitioner.py +10 -1
- apisec_surface-1.4.1/src/apisec_code_bolt/analysis/nuget_restore.py +427 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/secret_patterns.py +29 -3
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/surface_enrichment.py +286 -18
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/cli/main.py +48 -9
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/config.py +47 -10
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/manifest.py +67 -3
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/base.py +3 -1
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/_path_helpers.py +14 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/aspnet_plugin.py +573 -125
- apisec_surface-1.4.1/src/apisec_code_bolt/frameworks/dotnet/azure_functions_plugin.py +494 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/csharp_constants.py +127 -24
- apisec_surface-1.4.1/src/apisec_code_bolt/frameworks/dotnet/di_registration.py +21 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/grpc_plugin.py +219 -34
- apisec_surface-1.4.1/src/apisec_code_bolt/frameworks/dotnet/lookup_vocabulary.py +72 -0
- apisec_surface-1.4.1/src/apisec_code_bolt/frameworks/dotnet/object_reference_interprocedural.py +163 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/taint_scanner.py +166 -13
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/csharp/parser.py +13 -2
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/query/executor.py +2 -2
- apisec_surface-1.4.1/tests/integration/test_cli_upload_decision.py +85 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/test_query/test_executor_connected.py +2 -2
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/test_query/test_handlers.py +2 -2
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_aspnet_plugin.py +681 -33
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_azure_functions_plugin.py +193 -2
- apisec_surface-1.4.1/tests/unit/test_call_resolver_di_ambiguous.py +16 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_config_scanner_secret_values.py +28 -0
- apisec_surface-1.4.1/tests/unit/test_csharp_body_source_presence.py +74 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_command_bus_resolution.py +2 -2
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_constants.py +99 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_ctor_local_qualification.py +2 -2
- apisec_surface-1.4.1/tests/unit/test_csharp_integration_detector.py +44 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_interface_receiver_resolution.py +24 -24
- apisec_surface-1.4.1/tests/unit/test_csharp_object_reference_interprocedural.py +131 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_package_call_qualification.py +5 -5
- apisec_surface-1.4.1/tests/unit/test_csharp_package_namespace_roots.py +138 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_property_receiver_resolution.py +1 -1
- apisec_surface-1.4.1/tests/unit/test_csharp_taint_origin_types.py +88 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_decorator_call_edges.py +8 -8
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_dependency_parsing.py +22 -22
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_dotnet_custom_authorize.py +14 -14
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_dotnet_default_auth.py +8 -8
- apisec_surface-1.4.1/tests/unit/test_dotnet_di_registration.py +6 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_dotnet_object_reference_fact.py +58 -0
- apisec_surface-1.4.1/tests/unit/test_dotnet_project_graph.py +243 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_dotnet_project_reference_partitions.py +28 -3
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_gradle_resolve.py +27 -0
- apisec_surface-1.4.1/tests/unit/test_grpc_route_auth.py +245 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_manifest_partitioner.py +7 -1
- apisec_surface-1.4.1/tests/unit/test_nuget_restore.py +750 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_reachability_idioms.py +43 -12
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_secret_detection_coverage.py +60 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_surface_enrichment.py +428 -23
- apisec_surface-1.4.1/tests/unit/test_surface_enrichment_data_flow_policy.py +40 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_test_fake_implementors.py +2 -2
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_verification_outcome_exit.py +9 -9
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_webforms_plugin.py +117 -8
- apisec_surface-1.3.2/src/apisec_code_bolt/analysis/build_tool_env.py +0 -49
- apisec_surface-1.3.2/src/apisec_code_bolt/frameworks/dotnet/azure_functions_plugin.py +0 -295
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/.gitignore +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/__main__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/binding_tracker.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/boundary_detection.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/call_graph_types.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/capability_tagger.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/container_facts.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/deployment_routes.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/firebase_client_usage.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/firebase_functions_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/firestore_rules.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/flow_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/gradle_resolve.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/gradle_variables.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/hof_catalog.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/js_gradle_locks.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/legacy_contract.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/parse_index.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/path_normalizer.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/path_resolution_ladder.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/read_site_detector.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/request_patterns.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/route_like.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/secrets_policy.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/sensitivity_classifier.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/sink_evidence.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/surface_ledger.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/surface_reconciliation.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/template_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/test_code.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/tree_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/unsupported_frameworks.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/url_prefix_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/analysis/version_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/cli/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/cli/exit_codes.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/cloud/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/cloud/apisec_client.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/cloud/client.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/canonical_resolution.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/ci_identity.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/credentials.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/discovery.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/log_format.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/memory_guard.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/repo.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/runtime_entry_points.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/state.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/telemetry.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/core/types.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/fingerprinting/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/_graphql_common.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/_jwt_common.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/_weak_random_common.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/auth_helpers.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/jwt_config_extractor.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/legacy_aspnet_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/refit_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/wcf_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/dotnet/webforms_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/go/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/go/gin_auth.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/go/gin_inputs.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/go/gin_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/go/taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/_annotations.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/_constraints.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/graphql_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/jaxrs_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/jwt_config_extractor.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/micronaut_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/object_reference_micronaut.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/object_reference_spring.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/servlet_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/spring_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/java/taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/_route_helpers.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/_ts_source.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/express_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/fastify_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/firebase_auth.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/firebase_callable_body.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/firebase_functions_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/firestore_admin_taint.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/graphql_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/koa_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/nestjs_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/js/taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/celery_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/click_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/django_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/fastapi/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/fastapi/plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/flask_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/graphql_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/object_reference.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/prefect_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/weak_hash_facts.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/python/webhook_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/_ts_helpers.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/action_cable_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/grape_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/graphql_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/hanami_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/padrino_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/rails_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/roda_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/sidekiq_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/sinatra_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/frameworks/ruby/weak_hash_facts.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/base.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/csharp/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/csharp/language_services.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/csharp/literals.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/csharp/type_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/go/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/go/config_values.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/go/language_services.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/go/parser.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/js/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/js/language_services.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/js/parser.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/jvm/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/jvm/language_services.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/jvm/member_reference.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/jvm/parser.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/jvm/type_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/cbv_extractor.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/constant_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/cross_file_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/dynamic_route_detector.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/expression_utils.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/extraction_types.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/language_services.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/parameter_analyzer.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/parser.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/path_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/router_registry.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/type_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/python/visitors.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/ruby/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/ruby/language_services.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/ruby/parser.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/parsing/services.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/pkgindex/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/pkgindex/indexer.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/pkgindex/metadata.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/pkgindex/module_graph.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/pkgindex/package_source.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/query/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/query/ast_cache.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/query/handlers.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/src/apisec_code_bolt/query/manifest_context.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/conftest.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/9.2.0/checksums/checksums.lock +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/9.2.0/checksums/md5-checksums.bin +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/9.2.0/checksums/sha1-checksums.bin +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/9.2.0/gc.properties +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/buildOutputCleanup/cache.properties +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/.gradle/vcs-1/gc.properties +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/Cargo.toml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/Gemfile.lock +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/Pipfile +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/build.gradle +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/build.gradle.kts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/cyclonedx-agg-all.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/cyclonedx-agg-runtime.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/cyclonedx-bom-all.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/cyclonedx-bom-runtime.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/go.mod +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/package-lock-v1.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/package-lock.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/packages.lock.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/pnpm-lock-v5.yaml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/pnpm-lock-v6.yaml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/pnpm-lock-v9-env.yaml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/pnpm-lock-v9-workspace.yaml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/pnpm-lock.yaml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/pom.xml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/pyproject_pep621.toml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/pyproject_poetry.toml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/requirements-dev.txt +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/requirements.txt +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/setup.cfg +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/setup.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/yarn-berry.lock +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/dep_files/yarn.lock +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/firebase_webapp/apps/web/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/firebase_webapp/apps/web/src/App.tsx +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/firebase_webapp/apps/web/src/legacy.js +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/firebase_webapp/firebase.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/firebase_webapp/firestore.rules +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/firebase_webapp/pnpm-workspace.yaml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/firebase_webapp/services/api/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/firebase_webapp/services/api/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_django/urls.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_django/views.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_django_cbv_module_alias/urls.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_django_cbv_module_alias/views.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_django_query_params/models.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_django_query_params/urls.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_django_query_params/views.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_express/app.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_express/middleware/authenticate.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_express/routes/auth.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_express/routes/users.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_fastapi/main.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_fastapi/routes/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_fastapi/routes/users.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_fastapi/services/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_fastapi/services/user_service.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/firebase.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/openapi/gateway.swagger.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/packages/shared/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/packages/shared/src/admin.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/packages/shared/src/auth.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/packages/shared/src/http.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/packages/shared/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/services/acme/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/services/acme/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/services/acme/src/tasks.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_auth/services/acme/src/widgets.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/firebase.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/packages/shared/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/packages/shared/src/admin.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/packages/shared/src/auth.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/packages/shared/src/crud.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/packages/shared/src/http.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/packages/shared/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/packages/shared/src/triggers.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/services/identity/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/services/identity/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/services/identity/src/users.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/services/orders/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/services/orders/src/carts.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/services/orders/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/services/orders/src/orders.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_firestore/services/orders/src/tasks.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/firebase.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/packages/shared/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/packages/shared/src/http.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/packages/shared/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/packages/shared/src/triggers.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/orders/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/orders/src/current.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/orders/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/orders/src/orders.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/orders/src/tasks.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/reports/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/reports/src/extensions.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/reports/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/reports/src/legacy.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/reports/src/modern.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_functions/services/reports/src/runwith.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_gateway/firebase.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_gateway/openapi/gateway.swagger.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_gateway/openapi/service.openapi.yaml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_gateway/packages/shared/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_gateway/packages/shared/src/http.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_gateway/packages/shared/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_gateway/services/api/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_gateway/services/api/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_gateway/services/api/src/things.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_real_handlers/firebase.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_real_handlers/functions/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_real_handlers/functions/src/index.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_real_handlers/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_real_handlers/quickstart/functions/index.js +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_firebase_real_handlers/quickstart/functions/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_flask/app.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_flask_auth/app.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_flask_pydantic/app.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_grape/api.rb +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_mixed_transport/app/cli.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_mixed_transport/app/tasks.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_mixed_transport/app/web.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_mixed_transport/requirements.txt +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_monorepo/apps/service-a/app.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_monorepo/apps/service-a/pyproject.toml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_monorepo/apps/service-b/app.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_monorepo/apps/service-b/pyproject.toml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_monorepo/shared_util.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_nestjs/auth.controller.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_nestjs/roles.decorator.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_nestjs/roles.guard.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_nestjs/users.controller.ts +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/chatbot/chat_api.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/chatbot/pyproject.toml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/community/pyproject.toml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/community/urls.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/community/views.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/identity/pom.xml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/identity/src/main/java/com/crapi/identity/config/WebSecurityConfig.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/identity/src/main/java/com/crapi/identity/controller/AuthController.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/portal/portal_api.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_auth_schemes/services/portal/pyproject.toml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_monorepo/services/api-js/index.js +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_monorepo/services/api-js/package.json +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_monorepo/services/api-py/main.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_polyglot_monorepo/services/api-py/pyproject.toml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_sinatra/app.rb +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_spring_boot/apisec-code-bolt/state.yaml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_spring_boot/src/main/java/com/example/demo/config/SecurityConfig.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_spring_boot/src/main/java/com/example/demo/controller/UserController.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_spring_boot/src/main/java/com/example/demo/model/User.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_spring_boot/src/main/java/com/example/demo/service/UserService.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/sample_spring_boot/src/main/resources/application.properties +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/surface_accuracy/express-factory/routes/app.js +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/surface_accuracy/spring-mini/demo/BaseController.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/surface_accuracy/spring-mini/demo/DisabledController.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/surface_accuracy/spring-mini/demo/UserController.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/VULNERABILITIES.md +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/config/SecurityConfig.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/controller/AdminController.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/controller/OrderController.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/controller/UserController.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/model/Order.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/model/User.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/service/OrderService.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/src/main/java/com/example/vulnapi/service/UserService.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vuln_spring_boot/src/main/resources/application.properties +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vulnerable_app/pom.xml +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vulnerable_app/src/main/java/com/demo/DemoController.java +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/fixtures/vulnerable_app/target/classes/com/demo/DemoController.class +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_cli.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_django_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_django_cbv_decorator_auth.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_django_mount_prefix_scan_root.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_django_query_param_flow.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_erb_template_data_flows.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_express_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_fastapi_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_firebase_auth_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_firebase_firestore_taint.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_firebase_functions_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_firebase_gateway_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_firebase_real_handler_taint.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_flask_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_flask_auth_integration.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_gin_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_handlebars_stored_data_flows.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_jsx_tsx_manifest.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_mixed_transport_origin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_monorepo_entry_point_id_collision.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_monorepo_inherited_dependencies.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_monorepo_partitioning.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_monorepo_regression.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_nestjs_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_polyglot_auth_scheme_fallback.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_polyglot_monorepo_auth_boundary.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_polyglot_python_prefix_maps.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_regression_flask_auth_and_deps.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_root_config_autodiscovery.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_spring_boot_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_spring_service_impl_flow.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/integration/test_vulnerable_app_reachability_guard.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/test_query/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/test_query/fixtures/sample_app.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/test_query/test_auth_indicator_matching.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/test_query/test_executor.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/test_query/test_read_site_origin_types.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/__init__.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/conftest.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_annotations_path_join.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_answers_submit_404.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_apisec_client.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_apisec_client_enrich.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_benchmark_audit.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_benchmark_compare_auth.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_benchmark_compare_facts.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_benchmark_gcp_monorepo_gt.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_benchmark_reachability.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_benchmark_run.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_boundary_detection.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_call_graph.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_canonical_resolution.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_cbv_extractor.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_cli_console_url.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_client_data_access_manifest.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_composer_dependencies.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_config.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_config_scanner_framework.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_constant_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_container_facts.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_cross_file_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_efcore_dbset_calls.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_literals.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_minimal_api_handlers.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_taint_fastendpoints.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_taint_sink_receivers.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_csharp_type_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_data_flow.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_deployment_routes.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_discovery.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_django_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_dotnet_route_authorization_fact.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_dynamic_routes.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_entry_point_interface_resolution.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_express_nestjs_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_fastapi_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_fastify_passport_auth.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_fastify_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_firebase_auth_model.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_firebase_callable_body.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_firebase_client_usage.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_firebase_functions_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_firebase_gateway_routes.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_firestore_admin_taint.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_firestore_rules.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_flask_auth_and_deps.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_flask_blueprint_prefix.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_flask_params.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_flask_surface_kind.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_flow_analysis.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_gin_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_github_scan_result_report.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_go_language_services.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_go_parser.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_go_taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_gradle_variables.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_grape_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_graphql_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_grpc_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_instrumentation.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_integration_detection.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_java_autowired_service_flow.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_java_constant_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_java_parser.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_java_receiver_types.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_java_taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_jaxrs_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_jaxrs_secured_auth.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_js_gradle_locks.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_js_graphql_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_js_handler_functions.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_js_parser.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_js_ruby_dependency_calls.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_js_taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_jwt_config_extraction.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_koa_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_legacy_aspnet_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_legacy_committed_contract.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_legacy_migration.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_manifest_entry_point_gate.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_manifest_upload_gzip.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_manifest_upload_refusal.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_memory_guard.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_micronaut_object_reference_fact.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_micronaut_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_monorepo_upload_cli.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_nuget_cpm_pins.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_origin_type_contract.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_parameter_analyzer.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_path_resolution_ladder.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_path_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_pkgindex.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_pydantic_body_inference.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_python_object_reference_fact.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_python_parser.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_python_taint_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_python_weak_hash_facts.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_questions_poll_transient.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_rails_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_read_site_detector.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_refit_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_repo_canonical.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_results_publish_failure.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_route_auth_roles.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_router_registry.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_ruby_graphql_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_ruby_language_services.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_ruby_p6_plugins.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_ruby_weak_hash_facts.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_secret_value_presentation.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_secrets_policy.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_sensitivity_capability.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_servlet_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_sinatra_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_sink_evidence.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_spring_object_reference_fact.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_spring_plugin.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_static_route_catchup.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_surface_accuracy_benchmark.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_surface_extraction_client.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_surface_ledger.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_surface_reconciliation.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_telemetry.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_template_scanner.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_transformation_tracking.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_tree_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_ts_class_method_names.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_type_resolver_selection.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_types.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_unsupported_frameworks.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_upload_verify_timeout.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_url_prefix_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_version_resolver.py +0 -0
- {apisec_surface-1.3.2 → apisec_surface-1.4.1}/tests/unit/test_wcf_plugin.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: apisec-surface
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.1
|
|
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
|
|
@@ -214,6 +214,37 @@ apisec-surface analyze . --stdout --no-upload | jq .
|
|
|
214
214
|
apisec-surface analyze . --frameworks fastapi,sqlalchemy
|
|
215
215
|
```
|
|
216
216
|
|
|
217
|
+
### Real NuGet versions (`--nuget-restore`)
|
|
218
|
+
|
|
219
|
+
For .NET projects with no `packages.lock.json` and no restored `obj/`, the CLI
|
|
220
|
+
reads each `.csproj` and the platform estimates transitive versions. With
|
|
221
|
+
`--nuget-restore` it runs `dotnet restore` (a .NET SDK on `PATH` and network
|
|
222
|
+
access are needed) and reads the real resolved graph. Every project's `obj/` is
|
|
223
|
+
redirected to a temp directory, so nothing is written into the repository; any
|
|
224
|
+
failure (no SDK, feed auth, timeout) falls back to the `.csproj` parse with the
|
|
225
|
+
reason in the NuGet resolution row. It is off by default, `--offline` disables
|
|
226
|
+
it, and a config file inside the scanned repo cannot turn it on.
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
apisec-surface analyze . --nuget-restore
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Only use it on repositories you trust to build:
|
|
233
|
+
|
|
234
|
+
- **It runs the repository's build code.** `dotnet restore` evaluates the
|
|
235
|
+
project files and executes their MSBuild targets (`Directory.Build.props` /
|
|
236
|
+
`.targets`, imported `.props`/`.targets`, targets hooked to restore) and any
|
|
237
|
+
NuGet credential provider plugins, the way `--maven-resolve` runs Maven plugins.
|
|
238
|
+
- **It passes NuGet feed credentials through.** The restore gets an allow-listed
|
|
239
|
+
environment without the scanner's API token or other secrets, except
|
|
240
|
+
`NuGetPackageSourceCredentials_<source>`, `VSS_NUGET_EXTERNAL_FEED_ENDPOINTS`,
|
|
241
|
+
`VSS_NUGET_ACCESSTOKEN` and `NUGET_PLUGIN_PATHS`, so private feeds resolve.
|
|
242
|
+
Those credentials are sent to whatever URL the repository's `nuget.config`
|
|
243
|
+
gives the matching source.
|
|
244
|
+
|
|
245
|
+
Each restore is limited to 600 s (`APISEC_NUGET_RESTORE_TIMEOUT`) and all of them
|
|
246
|
+
to 900 s.
|
|
247
|
+
|
|
217
248
|
## Supported Languages & Frameworks
|
|
218
249
|
|
|
219
250
|
| Language | Frameworks |
|
|
@@ -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
|
|
@@ -162,6 +162,37 @@ apisec-surface analyze . --stdout --no-upload | jq .
|
|
|
162
162
|
apisec-surface analyze . --frameworks fastapi,sqlalchemy
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
+
### Real NuGet versions (`--nuget-restore`)
|
|
166
|
+
|
|
167
|
+
For .NET projects with no `packages.lock.json` and no restored `obj/`, the CLI
|
|
168
|
+
reads each `.csproj` and the platform estimates transitive versions. With
|
|
169
|
+
`--nuget-restore` it runs `dotnet restore` (a .NET SDK on `PATH` and network
|
|
170
|
+
access are needed) and reads the real resolved graph. Every project's `obj/` is
|
|
171
|
+
redirected to a temp directory, so nothing is written into the repository; any
|
|
172
|
+
failure (no SDK, feed auth, timeout) falls back to the `.csproj` parse with the
|
|
173
|
+
reason in the NuGet resolution row. It is off by default, `--offline` disables
|
|
174
|
+
it, and a config file inside the scanned repo cannot turn it on.
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
apisec-surface analyze . --nuget-restore
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Only use it on repositories you trust to build:
|
|
181
|
+
|
|
182
|
+
- **It runs the repository's build code.** `dotnet restore` evaluates the
|
|
183
|
+
project files and executes their MSBuild targets (`Directory.Build.props` /
|
|
184
|
+
`.targets`, imported `.props`/`.targets`, targets hooked to restore) and any
|
|
185
|
+
NuGet credential provider plugins, the way `--maven-resolve` runs Maven plugins.
|
|
186
|
+
- **It passes NuGet feed credentials through.** The restore gets an allow-listed
|
|
187
|
+
environment without the scanner's API token or other secrets, except
|
|
188
|
+
`NuGetPackageSourceCredentials_<source>`, `VSS_NUGET_EXTERNAL_FEED_ENDPOINTS`,
|
|
189
|
+
`VSS_NUGET_ACCESSTOKEN` and `NUGET_PLUGIN_PATHS`, so private feeds resolve.
|
|
190
|
+
Those credentials are sent to whatever URL the repository's `nuget.config`
|
|
191
|
+
gives the matching source.
|
|
192
|
+
|
|
193
|
+
Each restore is limited to 600 s (`APISEC_NUGET_RESTORE_TIMEOUT`) and all of them
|
|
194
|
+
to 900 s.
|
|
195
|
+
|
|
165
196
|
## Supported Languages & Frameworks
|
|
166
197
|
|
|
167
198
|
| Language | Frameworks |
|
|
@@ -126,7 +126,10 @@ logger = logging.getLogger(__name__)
|
|
|
126
126
|
|
|
127
127
|
# Auth dependencies that gate exactly one Cloud Function (named
|
|
128
128
|
# "<prefix>:<functionId>"); never spread to the rest of their file.
|
|
129
|
-
|
|
129
|
+
#: ``grpc-service:<T>`` is ``MapGrpcService<T>().RequireAuthorization()``: it is
|
|
130
|
+
#: declared in Program.cs but guards only service T's RPCs, never Program.cs's
|
|
131
|
+
#: own Minimal API routes.
|
|
132
|
+
_PER_FUNCTION_AUTH_PREFIXES = frozenset({"firebase-auth", "webhook-signature", "grpc-service"})
|
|
130
133
|
|
|
131
134
|
# Route tag the Firebase plugin sets on an HTTPS function that serves an
|
|
132
135
|
# Express app (onRequest(app)); the app's file-level auth middleware covers it.
|
|
@@ -277,6 +280,7 @@ class ProjectAnalyzer:
|
|
|
277
280
|
|
|
278
281
|
# Data flow analysis results (for manifest metadata)
|
|
279
282
|
self._data_flow_stats: dict[str, int] = {}
|
|
283
|
+
self._bola_pipeline_stats: dict[str, int | float] = {}
|
|
280
284
|
|
|
281
285
|
# Shared flow-sensitive bindings (built once, reused by call graph + data flow)
|
|
282
286
|
self._flow_bindings: Any = None
|
|
@@ -629,7 +633,20 @@ class ProjectAnalyzer:
|
|
|
629
633
|
logger.warning("Package indexing skipped: %s", e)
|
|
630
634
|
|
|
631
635
|
def _stage_analyze_flows(self, ctx: dict[str, Any]) -> None:
|
|
632
|
-
|
|
636
|
+
if self._call_graph:
|
|
637
|
+
from ..frameworks.dotnet.object_reference_interprocedural import (
|
|
638
|
+
enrich_routes_from_call_graph,
|
|
639
|
+
)
|
|
640
|
+
|
|
641
|
+
enrich_routes_from_call_graph(
|
|
642
|
+
ctx["routes"],
|
|
643
|
+
self._call_graph,
|
|
644
|
+
self._parsed_files,
|
|
645
|
+
)
|
|
646
|
+
ctx["data_flows"], flow_stats = self._analyze_data_flows(ctx["routes"])
|
|
647
|
+
self._bola_pipeline_stats = self._compute_bola_pipeline_stats(
|
|
648
|
+
ctx["routes"], ctx["data_flows"], flow_stats
|
|
649
|
+
)
|
|
633
650
|
ctx["integrations"] = self._detect_integrations()
|
|
634
651
|
ctx["literals"] = self._scan_literals()
|
|
635
652
|
ctx["weak_hash_facts"] = self._detect_weak_hash_facts()
|
|
@@ -641,6 +658,7 @@ class ProjectAnalyzer:
|
|
|
641
658
|
self._parsed_files,
|
|
642
659
|
maven_resolve=self.config.analysis.jvm.maven_resolve,
|
|
643
660
|
gradle_resolve=self.config.analysis.jvm.gradle_resolve,
|
|
661
|
+
nuget_restore=self.config.analysis.dotnet.nuget_restore,
|
|
644
662
|
)
|
|
645
663
|
ctx["pkg_dependencies"] = dep_extractor.extract()
|
|
646
664
|
self._index_dependency_internals(ctx["pkg_dependencies"])
|
|
@@ -1139,6 +1157,10 @@ class ProjectAnalyzer:
|
|
|
1139
1157
|
constants = CSharpConstants(
|
|
1140
1158
|
pf for fp, pf in self._parsed_files.items() if str(fp).endswith(".cs")
|
|
1141
1159
|
)
|
|
1160
|
+
# Group prefixes that kept an unresolved interpolation hole
|
|
1161
|
+
# ($"{_base}/orders" with _base unknown): a route under one is not
|
|
1162
|
+
# fully resolved, whatever its own path.
|
|
1163
|
+
unresolved_prefixes: set[str] = set()
|
|
1142
1164
|
|
|
1143
1165
|
for file_path_obj, parsed_file in self._parsed_files.items():
|
|
1144
1166
|
file_path = str(file_path_obj)
|
|
@@ -1153,15 +1175,19 @@ class ProjectAnalyzer:
|
|
|
1153
1175
|
continue
|
|
1154
1176
|
if not call.arguments:
|
|
1155
1177
|
continue
|
|
1156
|
-
|
|
1157
|
-
|
|
1178
|
+
template = constants.resolve_argument_template(
|
|
1179
|
+
call.arguments[0], str(parsed_file.path)
|
|
1180
|
+
)
|
|
1181
|
+
if template is None:
|
|
1158
1182
|
continue
|
|
1159
|
-
raw =
|
|
1183
|
+
raw = template.value
|
|
1160
1184
|
# Resolve API versioning placeholder → v1
|
|
1161
1185
|
raw = _re.sub(r"v\{[^}]*[Vv]ersion[^}]*\}", "v1", raw)
|
|
1162
1186
|
# Strip remaining route constraints: {id:int} → {id}
|
|
1163
1187
|
raw = _re.sub(r"\{([^:}]+):[^}]+\}", r"{\1}", raw)
|
|
1164
1188
|
prefix = "/" + raw.strip("/") if raw else ""
|
|
1189
|
+
if any("version" not in hole.lower() for hole in template.unresolved):
|
|
1190
|
+
unresolved_prefixes.add(prefix)
|
|
1165
1191
|
line = call.location.line if call.location else -1
|
|
1166
1192
|
if line > 0:
|
|
1167
1193
|
group_lines[line] = prefix
|
|
@@ -1342,20 +1368,23 @@ class ProjectAnalyzer:
|
|
|
1342
1368
|
if not any("Authorize" in d or "permission" in d.lower() for d in new_deps):
|
|
1343
1369
|
new_deps.insert(0, "Authorize@group")
|
|
1344
1370
|
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1371
|
+
update: dict[str, Any] = {
|
|
1372
|
+
"path": new_path,
|
|
1373
|
+
"id": stable_id(
|
|
1374
|
+
"ep",
|
|
1375
|
+
route.method,
|
|
1376
|
+
new_path,
|
|
1377
|
+
route.handler_function,
|
|
1378
|
+
),
|
|
1379
|
+
"dependencies": new_deps,
|
|
1380
|
+
}
|
|
1381
|
+
if prefix in unresolved_prefixes:
|
|
1382
|
+
update.update(
|
|
1383
|
+
path_fully_resolved=False,
|
|
1384
|
+
path_resolution_source="unresolved",
|
|
1385
|
+
path_dynamic_reason="unresolved_static_constant",
|
|
1357
1386
|
)
|
|
1358
|
-
)
|
|
1387
|
+
updated.append(route.model_copy(update=update))
|
|
1359
1388
|
|
|
1360
1389
|
elif has_prog_auth:
|
|
1361
1390
|
# Auth-only override without a prefix change (extension method defines
|
|
@@ -2996,6 +3025,32 @@ class ProjectAnalyzer:
|
|
|
2996
3025
|
#: whose types live in a different (newer) package.
|
|
2997
3026
|
_SYSTEMISH_PACKAGE_PREFIXES = ("system.", "microsoft.")
|
|
2998
3027
|
|
|
3028
|
+
#: Trailing package-id segments that are not part of the namespace the
|
|
3029
|
+
#: package's types live in: ``Oracle.ManagedDataAccess.Core`` ships
|
|
3030
|
+
#: ``Oracle.ManagedDataAccess.Client``, ``Microsoft.Data.Sqlite.Core``
|
|
3031
|
+
#: ships ``Microsoft.Data.Sqlite``. Mirrored by the reasoning engine
|
|
3032
|
+
#: (``graph/builder.py``), which links the qualified callee to the package.
|
|
3033
|
+
_PACKAGE_ID_NAMESPACE_SUFFIXES = (".core",)
|
|
3034
|
+
|
|
3035
|
+
@classmethod
|
|
3036
|
+
def _nuget_namespace_roots(cls, package_ids: frozenset[str]) -> frozenset[str]:
|
|
3037
|
+
"""Lowercased namespaces the NuGet *package_ids* can be used as.
|
|
3038
|
+
|
|
3039
|
+
Each id, plus the id without a trailing suffix from
|
|
3040
|
+
``_PACKAGE_ID_NAMESPACE_SUFFIXES`` when at least two segments remain
|
|
3041
|
+
(``Azure.Core`` must not claim all of ``Azure``) and no package of the
|
|
3042
|
+
app has that id itself (it would then name a different package).
|
|
3043
|
+
"""
|
|
3044
|
+
roots = set(package_ids)
|
|
3045
|
+
for package_id in package_ids:
|
|
3046
|
+
for suffix in cls._PACKAGE_ID_NAMESPACE_SUFFIXES:
|
|
3047
|
+
if not package_id.endswith(suffix):
|
|
3048
|
+
continue
|
|
3049
|
+
stem = package_id[: -len(suffix)]
|
|
3050
|
+
if stem.count(".") >= 1 and stem not in package_ids:
|
|
3051
|
+
roots.add(stem)
|
|
3052
|
+
return frozenset(roots)
|
|
3053
|
+
|
|
2999
3054
|
#: Common .NET framework (BCL / ASP.NET Core shared framework) types called
|
|
3000
3055
|
#: as `Type.Member`. They never belong to a NuGet package of the app, and a
|
|
3001
3056
|
#: file's one package using would otherwise claim them
|
|
@@ -3114,7 +3169,7 @@ class ProjectAnalyzer:
|
|
|
3114
3169
|
in source order (its namespace as written), the subset that names a
|
|
3115
3170
|
NuGet package, and whether another using could also supply a bare
|
|
3116
3171
|
type: a namespace that is no package, not ``System``/``Microsoft``, and
|
|
3117
|
-
not declared in this project (another app's project, such as
|
|
3172
|
+
not declared in this project (another app's project, such as a
|
|
3118
3173
|
separately onboarded Application layer). Then a single package match
|
|
3119
3174
|
is no evidence, and the call is only a candidate.
|
|
3120
3175
|
"""
|
|
@@ -3151,11 +3206,13 @@ class ProjectAnalyzer:
|
|
|
3151
3206
|
for the ``newtonsoft.json`` key. C# code never spells that out: with
|
|
3152
3207
|
``using Newtonsoft.Json;`` the handler calls the bare type
|
|
3153
3208
|
(``JsonConvert.SerializeObject(x)``), so no package could ever be
|
|
3154
|
-
marked reached from an endpoint (
|
|
3209
|
+
marked reached from an endpoint (one customer API: 84 packages,
|
|
3155
3210
|
0 call edges). For a caller in a C# file, a ``Type.Member`` callee
|
|
3156
3211
|
where ``Type`` is not a project type, and a constructor's bare
|
|
3157
3212
|
``Type`` (``new SignedXml(doc)``), is qualified with the file's using
|
|
3158
|
-
namespaces that name a NuGet package
|
|
3213
|
+
namespaces that name a NuGet package (its id, or the id without a
|
|
3214
|
+
trailing ``.Core``: ``using Oracle.ManagedDataAccess.Client;`` names
|
|
3215
|
+
``Oracle.ManagedDataAccess.Core``). ``Type.Member`` includes calls on
|
|
3159
3216
|
a local or parameter of declared type (``signed.CheckSignature()``,
|
|
3160
3217
|
typed by the parser as ``SignedXml.CheckSignature``):
|
|
3161
3218
|
|
|
@@ -3172,10 +3229,12 @@ class ProjectAnalyzer:
|
|
|
3172
3229
|
with a package id (already linkable), project types, and every
|
|
3173
3230
|
non-C# caller.
|
|
3174
3231
|
"""
|
|
3175
|
-
package_ids =
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3232
|
+
package_ids = self._nuget_namespace_roots(
|
|
3233
|
+
frozenset(
|
|
3234
|
+
pkg.name.lower()
|
|
3235
|
+
for pkg in getattr(dependencies, "packages", [])
|
|
3236
|
+
if (getattr(pkg, "ecosystem", None) or "").lower() == "nuget"
|
|
3237
|
+
)
|
|
3179
3238
|
)
|
|
3180
3239
|
if not package_ids:
|
|
3181
3240
|
return
|
|
@@ -3405,10 +3464,14 @@ class ProjectAnalyzer:
|
|
|
3405
3464
|
for pf in self._parsed_files.values()
|
|
3406
3465
|
if pf.success and pf.language == Language.CSHARP
|
|
3407
3466
|
]
|
|
3467
|
+
cs_files = self._csharp_taint_files(cs_files, routes)
|
|
3408
3468
|
if cs_files:
|
|
3409
3469
|
from ..frameworks.dotnet.taint_scanner import CSharpTaintScanner
|
|
3410
3470
|
|
|
3411
|
-
|
|
3471
|
+
cs_param_origins = self._csharp_handler_param_origins(routes)
|
|
3472
|
+
for flow_dict in CSharpTaintScanner(
|
|
3473
|
+
cs_files, handler_param_origins=cs_param_origins
|
|
3474
|
+
).scan():
|
|
3412
3475
|
try:
|
|
3413
3476
|
flows.append(DataFlowModel(**flow_dict))
|
|
3414
3477
|
self._data_flow_stats["flows_discovered"] += 1
|
|
@@ -3516,7 +3579,78 @@ class ProjectAnalyzer:
|
|
|
3516
3579
|
)
|
|
3517
3580
|
)
|
|
3518
3581
|
|
|
3519
|
-
return flows, self._data_flow_stats
|
|
3582
|
+
return self._merge_deduped_csharp_data_flows(flows), self._data_flow_stats
|
|
3583
|
+
|
|
3584
|
+
def _sink_location_file(self, flow: DataFlowModel) -> str:
|
|
3585
|
+
sink = flow.sink
|
|
3586
|
+
if sink is None:
|
|
3587
|
+
return ""
|
|
3588
|
+
loc = sink.location
|
|
3589
|
+
if loc is None:
|
|
3590
|
+
return ""
|
|
3591
|
+
if isinstance(loc, dict):
|
|
3592
|
+
return str(loc.get("file") or "")
|
|
3593
|
+
return str(getattr(loc, "file", None) or "")
|
|
3594
|
+
|
|
3595
|
+
def _merge_deduped_csharp_data_flows(self, flows: list[DataFlowModel]) -> list[DataFlowModel]:
|
|
3596
|
+
"""Return all flows, deduping only overlapping C# intra/inter-procedural pairs."""
|
|
3597
|
+
csharp: list[DataFlowModel] = []
|
|
3598
|
+
other: list[DataFlowModel] = []
|
|
3599
|
+
for flow in flows:
|
|
3600
|
+
path = self._sink_location_file(flow).lower()
|
|
3601
|
+
if path.endswith(".cs"):
|
|
3602
|
+
csharp.append(flow)
|
|
3603
|
+
else:
|
|
3604
|
+
other.append(flow)
|
|
3605
|
+
if not csharp:
|
|
3606
|
+
return flows
|
|
3607
|
+
return other + self._dedupe_csharp_data_flow_origins(csharp)
|
|
3608
|
+
|
|
3609
|
+
def _dedupe_csharp_data_flow_origins(self, flows: list[DataFlowModel]) -> list[DataFlowModel]:
|
|
3610
|
+
"""Prefer the strongest origin when intra- and inter-procedural C# flows overlap."""
|
|
3611
|
+
rank = {
|
|
3612
|
+
"HTTP_PATH_PARAM": 4,
|
|
3613
|
+
"HTTP_QUERY_PARAM": 3,
|
|
3614
|
+
"HTTP_HEADER": 3,
|
|
3615
|
+
"HTTP_COOKIE": 3,
|
|
3616
|
+
"HTTP_BODY": 3,
|
|
3617
|
+
"UNKNOWN": 0,
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
def identity(flow: DataFlowModel) -> tuple:
|
|
3621
|
+
origin = flow.origin
|
|
3622
|
+
sink = flow.sink
|
|
3623
|
+
loc = sink.location if sink is not None else None
|
|
3624
|
+
line = None
|
|
3625
|
+
sink_file = ""
|
|
3626
|
+
if loc is not None:
|
|
3627
|
+
if isinstance(loc, dict):
|
|
3628
|
+
line = loc.get("line")
|
|
3629
|
+
sink_file = loc.get("file") or ""
|
|
3630
|
+
else:
|
|
3631
|
+
line = getattr(loc, "line", None)
|
|
3632
|
+
sink_file = getattr(loc, "file", None) or ""
|
|
3633
|
+
return (
|
|
3634
|
+
sink_file,
|
|
3635
|
+
line,
|
|
3636
|
+
getattr(origin, "entry_point_ref", None) or "",
|
|
3637
|
+
getattr(origin, "type", None) or "",
|
|
3638
|
+
getattr(origin, "name", None) or "",
|
|
3639
|
+
getattr(sink, "function", None) or "",
|
|
3640
|
+
)
|
|
3641
|
+
|
|
3642
|
+
merged: dict[tuple, DataFlowModel] = {}
|
|
3643
|
+
for flow in flows:
|
|
3644
|
+
key = identity(flow)
|
|
3645
|
+
prev = merged.get(key)
|
|
3646
|
+
if prev is None:
|
|
3647
|
+
merged[key] = flow
|
|
3648
|
+
continue
|
|
3649
|
+
prev_rank = rank.get(getattr(prev.origin, "type", None) or "", 1)
|
|
3650
|
+
new_rank = rank.get(getattr(flow.origin, "type", None) or "", 1)
|
|
3651
|
+
if new_rank >= prev_rank:
|
|
3652
|
+
merged[key] = flow
|
|
3653
|
+
return list(merged.values())
|
|
3520
3654
|
|
|
3521
3655
|
def _resolve_entry_points(self, entry_points: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
3522
3656
|
"""
|
|
@@ -3971,6 +4105,125 @@ class ProjectAnalyzer:
|
|
|
3971
4105
|
# Manifest Building
|
|
3972
4106
|
# =========================================================================
|
|
3973
4107
|
|
|
4108
|
+
@staticmethod
|
|
4109
|
+
def _csharp_handler_param_origins(routes: list[RouteModel]) -> dict[str, dict[str, str]]:
|
|
4110
|
+
"""Map handler keys to parameter name → HTTP origin type for C# taint seeding."""
|
|
4111
|
+
by_handler: dict[str, dict[str, str]] = {}
|
|
4112
|
+
|
|
4113
|
+
def set_origin(handler: str, param: str, origin: str) -> None:
|
|
4114
|
+
if not handler or not param:
|
|
4115
|
+
return
|
|
4116
|
+
by_handler.setdefault(handler, {})[param] = origin
|
|
4117
|
+
|
|
4118
|
+
for route in routes:
|
|
4119
|
+
if route.kind != "http":
|
|
4120
|
+
continue
|
|
4121
|
+
handler = route.handler_function or ""
|
|
4122
|
+
if not handler:
|
|
4123
|
+
continue
|
|
4124
|
+
loc = route.handler_location.file if route.handler_location else ""
|
|
4125
|
+
short = handler.rsplit(".", 1)[-1]
|
|
4126
|
+
class_method = f"{handler.rsplit('.', 1)[0]}.{short}" if "." in handler else short
|
|
4127
|
+
for p in route.path_params:
|
|
4128
|
+
for key in (handler, class_method, short, f"{loc}::{short}" if loc else ""):
|
|
4129
|
+
if key:
|
|
4130
|
+
set_origin(key, p.name, "HTTP_PATH_PARAM")
|
|
4131
|
+
for p in route.query_params:
|
|
4132
|
+
for key in (handler, class_method, short):
|
|
4133
|
+
set_origin(key, p.name, "HTTP_QUERY_PARAM")
|
|
4134
|
+
for p in route.header_params:
|
|
4135
|
+
for key in (handler, class_method, short):
|
|
4136
|
+
set_origin(key, p.name, "HTTP_HEADER")
|
|
4137
|
+
for p in route.cookie_params:
|
|
4138
|
+
for key in (handler, class_method, short):
|
|
4139
|
+
set_origin(key, p.name, "HTTP_COOKIE")
|
|
4140
|
+
if route.body:
|
|
4141
|
+
for bf in route.body.body_fields:
|
|
4142
|
+
for key in (handler, class_method, short):
|
|
4143
|
+
set_origin(key, bf.name, "HTTP_BODY")
|
|
4144
|
+
|
|
4145
|
+
# Remove accidental empty param entry from set_origin guard
|
|
4146
|
+
for mapping in by_handler.values():
|
|
4147
|
+
mapping.pop("", None)
|
|
4148
|
+
return by_handler
|
|
4149
|
+
|
|
4150
|
+
def _csharp_taint_files(
|
|
4151
|
+
self, cs_files: list[ParsedFile], routes: list[RouteModel]
|
|
4152
|
+
) -> list[ParsedFile]:
|
|
4153
|
+
"""Limit intra-method C# taint to handler subgraph files (reduces middleware noise)."""
|
|
4154
|
+
if not cs_files or not routes:
|
|
4155
|
+
return cs_files
|
|
4156
|
+
allowed_paths: set[Path] = set()
|
|
4157
|
+
root = self.config.project_root
|
|
4158
|
+
for route in routes:
|
|
4159
|
+
loc = route.handler_location
|
|
4160
|
+
if loc and loc.file:
|
|
4161
|
+
allowed_paths.add((root / loc.file).resolve())
|
|
4162
|
+
if self._call_graph:
|
|
4163
|
+
for route in routes:
|
|
4164
|
+
handler = route.handler_function
|
|
4165
|
+
if not handler:
|
|
4166
|
+
continue
|
|
4167
|
+
for callee in self._call_graph.get_callees(handler)[:8]:
|
|
4168
|
+
node = self._call_graph.get_node(callee)
|
|
4169
|
+
if node and node.file_path:
|
|
4170
|
+
allowed_paths.add(node.file_path.resolve())
|
|
4171
|
+
if not allowed_paths:
|
|
4172
|
+
return cs_files
|
|
4173
|
+
filtered = [pf for pf in cs_files if pf.path.resolve() in allowed_paths]
|
|
4174
|
+
return filtered or cs_files
|
|
4175
|
+
|
|
4176
|
+
@staticmethod
|
|
4177
|
+
def _compute_bola_pipeline_stats(
|
|
4178
|
+
routes: list[Any],
|
|
4179
|
+
data_flows: list[Any],
|
|
4180
|
+
flow_stats: dict[str, int],
|
|
4181
|
+
) -> dict[str, int | float]:
|
|
4182
|
+
from ..frameworks.dotnet.lookup_vocabulary import qualified_name_is_data_lookup
|
|
4183
|
+
|
|
4184
|
+
with_object_ref = 0
|
|
4185
|
+
unchecked_object_ref = 0
|
|
4186
|
+
for route in routes:
|
|
4187
|
+
ref = getattr(route, "object_reference", None)
|
|
4188
|
+
if isinstance(ref, dict) and ref.get("parameter"):
|
|
4189
|
+
with_object_ref += 1
|
|
4190
|
+
if ref.get("ownership_checked") is False:
|
|
4191
|
+
unchecked_object_ref += 1
|
|
4192
|
+
|
|
4193
|
+
user_id_origins = 0
|
|
4194
|
+
data_lookup_flows = 0
|
|
4195
|
+
unknown_origins = 0
|
|
4196
|
+
for flow in data_flows:
|
|
4197
|
+
origin = flow.origin if hasattr(flow, "origin") else None
|
|
4198
|
+
if origin is None:
|
|
4199
|
+
continue
|
|
4200
|
+
origin_type = getattr(origin, "type", "") or ""
|
|
4201
|
+
if origin_type in ("HTTP_PATH_PARAM", "HTTP_QUERY_PARAM", "CLI_ARG", "MESSAGE_KEY"):
|
|
4202
|
+
user_id_origins += 1
|
|
4203
|
+
if origin_type == "UNKNOWN":
|
|
4204
|
+
unknown_origins += 1
|
|
4205
|
+
sink = flow.sink if hasattr(flow, "sink") else None
|
|
4206
|
+
if sink is not None:
|
|
4207
|
+
sink_cat = getattr(sink, "semantic_category", None)
|
|
4208
|
+
sink_qn = getattr(sink, "function", "") or ""
|
|
4209
|
+
if sink_cat == "DATA_LOOKUP" or qualified_name_is_data_lookup(sink_qn):
|
|
4210
|
+
data_lookup_flows += 1
|
|
4211
|
+
|
|
4212
|
+
total_eps = len(routes) or 1
|
|
4213
|
+
unknown_ratio = unknown_origins / max(flow_stats.get("flows_discovered", 1), 1)
|
|
4214
|
+
return {
|
|
4215
|
+
"entry_points": len(routes),
|
|
4216
|
+
"object_reference_coverage": with_object_ref,
|
|
4217
|
+
"object_reference_unchecked": unchecked_object_ref,
|
|
4218
|
+
"user_controlled_id_flow_origins": user_id_origins,
|
|
4219
|
+
"data_lookup_flows": data_lookup_flows,
|
|
4220
|
+
"unknown_origin_flows": unknown_origins,
|
|
4221
|
+
"unknown_origin_ratio": round(unknown_ratio, 4),
|
|
4222
|
+
"flows_discovered": flow_stats.get("flows_discovered", 0),
|
|
4223
|
+
"unresolved_calls": 0,
|
|
4224
|
+
"object_reference_coverage_pct": round(100.0 * with_object_ref / total_eps, 2),
|
|
4225
|
+
}
|
|
4226
|
+
|
|
3974
4227
|
def _build_analysis_metadata(self) -> AnalysisMetadataModel:
|
|
3975
4228
|
"""Build analysis metadata from real statistics."""
|
|
3976
4229
|
truncated_flows = self._data_flow_stats.get("truncated_flows", 0)
|
|
@@ -3986,15 +4239,26 @@ class ProjectAnalyzer:
|
|
|
3986
4239
|
if self._surface_ledger is not None:
|
|
3987
4240
|
surface_ledger_dict = self._surface_ledger.to_manifest_dict()
|
|
3988
4241
|
|
|
4242
|
+
bola_stats = dict(getattr(self, "_bola_pipeline_stats", {}) or {})
|
|
4243
|
+
bola_stats["unresolved_calls"] = unresolved_calls
|
|
4244
|
+
extra_warnings = list(warnings)
|
|
4245
|
+
ratio = float(bola_stats.get("unknown_origin_ratio") or 0)
|
|
4246
|
+
if ratio >= 0.35 and bola_stats.get("flows_discovered", 0) >= 20:
|
|
4247
|
+
extra_warnings.append(
|
|
4248
|
+
f"BOLA pipeline: high UNKNOWN origin ratio ({ratio:.0%}); "
|
|
4249
|
+
"check unresolved calls and handler reachability on large .NET scans."
|
|
4250
|
+
)
|
|
4251
|
+
|
|
3989
4252
|
return AnalysisMetadataModel(
|
|
3990
4253
|
data_flow_mode=self.config.analysis.data_flow.mode,
|
|
3991
4254
|
data_flow_depth=self.config.analysis.data_flow.max_depth,
|
|
3992
4255
|
truncated_flows=truncated_flows,
|
|
3993
4256
|
unresolved_calls=unresolved_calls,
|
|
3994
4257
|
entry_points_withheld_unresolved=self._entry_points_withheld_unresolved,
|
|
3995
|
-
warnings=
|
|
4258
|
+
warnings=extra_warnings,
|
|
3996
4259
|
surface_ledger=surface_ledger_dict,
|
|
3997
4260
|
enrichment_rejected=dict(self._enrichment_rejected),
|
|
4261
|
+
bola_pipeline_stats=bola_stats,
|
|
3998
4262
|
)
|
|
3999
4263
|
|
|
4000
4264
|
def _build_manifest(
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"""The environment a build tool runs with when a scan asks it to resolve dependencies.
|
|
2
|
+
|
|
3
|
+
``--maven-resolve``, ``--gradle-resolve`` and ``--nuget-restore`` execute code from the scanned
|
|
4
|
+
repository: its ``./gradlew`` (which downloads the distribution its properties name), build
|
|
5
|
+
scripts, ``buildSrc`` and settings plugins, a pom's build extensions, or the MSBuild logic of its
|
|
6
|
+
projects and ``Directory.Build.props``. That code must not see the scanner's secrets (API tokens,
|
|
7
|
+
cloud credentials, the APIsec PAT), so the build gets an allow-listed environment: what a JVM or
|
|
8
|
+
.NET build needs to find its SDK, its own caches and the network, and nothing else.
|
|
9
|
+
|
|
10
|
+
The one exception is NuGet feed credentials (``NuGetPackageSourceCredentials_<source>`` and the
|
|
11
|
+
Azure Artifacts credential provider's ``VSS_NUGET_*``): they exist only so a restore can reach a
|
|
12
|
+
private feed, which is what ``--nuget-restore`` was asked to do -- the counterpart of Maven
|
|
13
|
+
reading the repository credentials in ``~/.m2/settings.xml``.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
import os
|
|
19
|
+
|
|
20
|
+
# Exact names a build needs.
|
|
21
|
+
_ALLOWED = {
|
|
22
|
+
"PATH",
|
|
23
|
+
"HOME",
|
|
24
|
+
"USER",
|
|
25
|
+
"LOGNAME",
|
|
26
|
+
"SHELL",
|
|
27
|
+
"TMPDIR",
|
|
28
|
+
"TMP",
|
|
29
|
+
"TEMP",
|
|
30
|
+
"LANG",
|
|
31
|
+
"LC_ALL",
|
|
32
|
+
"LC_CTYPE",
|
|
33
|
+
"TZ",
|
|
34
|
+
"JAVA_HOME",
|
|
35
|
+
"JAVA_OPTS",
|
|
36
|
+
"JAVA_TOOL_OPTIONS",
|
|
37
|
+
"GRADLE_HOME",
|
|
38
|
+
"GRADLE_USER_HOME",
|
|
39
|
+
"GRADLE_OPTS",
|
|
40
|
+
"MAVEN_HOME",
|
|
41
|
+
"M2_HOME",
|
|
42
|
+
"MAVEN_OPTS",
|
|
43
|
+
"MAVEN_ARGS",
|
|
44
|
+
"SSL_CERT_FILE",
|
|
45
|
+
"SSL_CERT_DIR",
|
|
46
|
+
"REQUESTS_CA_BUNDLE",
|
|
47
|
+
"DOTNET_ROOT",
|
|
48
|
+
"DOTNET_HOST_PATH",
|
|
49
|
+
"DOTNET_CLI_HOME",
|
|
50
|
+
"NUGET_PACKAGES",
|
|
51
|
+
"NUGET_HTTP_CACHE_PATH",
|
|
52
|
+
"NUGET_PLUGIN_PATHS",
|
|
53
|
+
"VSS_NUGET_EXTERNAL_FEED_ENDPOINTS",
|
|
54
|
+
"VSS_NUGET_ACCESSTOKEN",
|
|
55
|
+
}
|
|
56
|
+
# Windows: what any process needs to start (SystemRoot), find the user's profile and
|
|
57
|
+
# NuGet/Maven config (USERPROFILE, APPDATA) and the installed SDKs (ProgramFiles). Without
|
|
58
|
+
# them dotnet on Windows cannot even read NuGet.Config, so every restore failed.
|
|
59
|
+
_WINDOWS = {
|
|
60
|
+
"SYSTEMROOT",
|
|
61
|
+
"WINDIR",
|
|
62
|
+
"SYSTEMDRIVE",
|
|
63
|
+
"COMSPEC",
|
|
64
|
+
"PATHEXT",
|
|
65
|
+
"USERPROFILE",
|
|
66
|
+
"USERNAME",
|
|
67
|
+
"HOMEDRIVE",
|
|
68
|
+
"HOMEPATH",
|
|
69
|
+
"APPDATA",
|
|
70
|
+
"LOCALAPPDATA",
|
|
71
|
+
"PROGRAMDATA",
|
|
72
|
+
"PROGRAMFILES",
|
|
73
|
+
"PROGRAMFILES(X86)",
|
|
74
|
+
"PROGRAMW6432",
|
|
75
|
+
"COMMONPROGRAMFILES",
|
|
76
|
+
"COMMONPROGRAMFILES(X86)",
|
|
77
|
+
"NUMBER_OF_PROCESSORS",
|
|
78
|
+
"PROCESSOR_ARCHITECTURE",
|
|
79
|
+
"OS",
|
|
80
|
+
}
|
|
81
|
+
# Names compare case-insensitively: Windows environment names are (os.environ upper-cases them).
|
|
82
|
+
_ALLOWED_UPPER = {k.upper() for k in _ALLOWED} | _WINDOWS
|
|
83
|
+
# NuGet reads a private feed's credentials from NuGetPackageSourceCredentials_<source key>.
|
|
84
|
+
_PREFIXES_UPPER = ("NUGETPACKAGESOURCECREDENTIALS_",)
|
|
85
|
+
# Proxy settings, in either case, so builds behind a corporate proxy still reach their repos.
|
|
86
|
+
_PROXY = {"http_proxy", "https_proxy", "no_proxy", "all_proxy"}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def build_tool_env(environ: dict[str, str] | None = None) -> dict[str, str]:
|
|
90
|
+
"""The allow-listed subset of ``environ`` (default: this process's environment)."""
|
|
91
|
+
source = os.environ if environ is None else environ
|
|
92
|
+
return {
|
|
93
|
+
k: v
|
|
94
|
+
for k, v in source.items()
|
|
95
|
+
if k.upper() in _ALLOWED_UPPER
|
|
96
|
+
or k.lower() in _PROXY
|
|
97
|
+
or k.upper().startswith(_PREFIXES_UPPER)
|
|
98
|
+
}
|