cloudg 0.7.0__tar.gz → 0.7.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.
- {cloudg-0.7.0 → cloudg-0.7.1}/PKG-INFO +15 -1
- {cloudg-0.7.0 → cloudg-0.7.1}/README.md +24 -2
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/__init__.py +1 -1
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/cli.py +2 -0
- cloudg-0.7.1/cloudg/cli_gate.py +140 -0
- cloudg-0.7.1/cloudg/gate.py +174 -0
- cloudg-0.7.1/cloudg/renderers/sarif.py +173 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/DOCUMENTATION.md +29 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/PYPI.md +1 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/pyproject.toml +12 -1
- cloudg-0.7.1/tests/fixtures/ci/findings.json +135 -0
- cloudg-0.7.1/tests/test_gate.py +262 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/.gitignore +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/LICENSE +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/api.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/api_results.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/api_scanners.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/cli_commands.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/cli_helpers.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/cli_inventory.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/cli_run_helpers.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/collectors/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/collectors/aws.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/collectors/aws_services.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/collectors/aws_services_extended.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/collectors/azure.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/collectors/base.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/collectors/gcp.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/collectors/gcp_assets.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/collectors/multi.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/config.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/config_keys.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/config_ratelimit.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/coverage.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/credentials.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/exceptions.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/graph/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/graph/builder.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/graph/ontology.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/graph/ontology_rules.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/graph/ports.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/graph/rag_export.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/graph/rag_text.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/graph/reachability.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/ingest.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/_util.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_deep.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_deep_tasks.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/_base.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/_policy_grants.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/_common.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/alarms.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/backup.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/batch.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/build_deploy.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/cicd.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/compute.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/containers_ext.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/firehose.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/integration.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/logs.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/operations.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/application/serverless_ext.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/cloudcontrol.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/containers/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/containers/ecr.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/containers/ecs.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/containers/eks.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/_common.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/analytics.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/bedrock.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/databases.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/glue.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/glue_etl.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/lakeformation.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/messaging.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/registry.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/sagemaker.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/serverless_data.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/data_ml/transfer.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/_common.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/cognito.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/data_protection.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/iam_extras.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/identity_center.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/ram.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/s3_access_points.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/service_catalog.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/sharing.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/governance/stack_sets.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/identity.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/_common.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/apigateway.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/cloudfront.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/direct_connect.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/elb_rules.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/global_accelerator.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/lattice.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/network_manager.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/privatelink.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/resolver.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/tgw.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/network_ext/vpn.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/platform/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/platform/compute_fabric.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/platform/data.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/platform/dns_iac_ops.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/platform/load_balancing.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/platform/storage.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/security/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/security/_common.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/security/detection.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/security/network_protection.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/security/posture.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/serverless/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/serverless/apigateway.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/serverless/functions.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/aws_services/serverless/messaging.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_deep.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_entra.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/arm_types.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/builder.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/children.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/compute.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/data_ml.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/data_security.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/dataplane.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/edge.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/families.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/governance.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/helpers.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/hybrid.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/integration.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/network.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/ops.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/query.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/registry.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/rest.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/security.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/tables.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_graph/web_containers.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_hierarchy.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/azure_kubernetes.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/catalogs/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/catalogs/aws_arn_types.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/catalogs/aws_cloudcontrol.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/catalogs/azure_arm_types.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/catalogs/gcp_asset_types.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/dependencies.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_deep.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_hierarchy.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/_refs.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/apis.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/cicd.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/compute.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/containers_ext.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/context.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/data_ext.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/data_logging.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/edge.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/gke.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/governance.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/hybrid.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/iam.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/identity_ext.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/integration.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/load_balancing.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/messaging.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/ml.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/names.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/netsec.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/network.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/ops.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/pipelines.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/resource_manager.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/security_ext.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_relations/serverless.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_sources/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_sources/base.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_sources/derived.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_sources/identity.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_sources/ops.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_sources/platform.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_sources/rest.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_sources/security.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/gcp_tasks.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/kubernetes.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/linker.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/linker_index.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/linker_rules.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/mapper.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/mapper_result.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/organization.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/inventory/organization_assets.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/__main__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/adapters/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/adapters/_common.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/adapters/export.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/adapters/fastmcp.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/adapters/lowlevel.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/adapters/mcp_sdk.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/_common.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/_compliance.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/_findings.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/_graph.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/_graph_impact.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/_inventory.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/_live.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/_resources.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/_sparql.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/compliance.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/export.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/findings.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/graph.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/inventory.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/live.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/meta.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/ontology.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/privacy.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/prompts.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/resources.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/catalog/workspace.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/cli.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/cli_common.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/cli_config.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/content.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/context.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/core.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/layer.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/layer_options.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/layer_output.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/middleware.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/_http_io.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/_http_sessions.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/_methods.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/_shared.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/auth.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/http.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/jsonrpc.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/protocol.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/native/stdio.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policies/airgapped.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policies/audit.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policies/open.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policies/read_only.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policies/soc-analyst.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policies/standard.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policies/strict.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policy/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policy/access.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policy/audit.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policy/config.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policy/describe.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policy/engine.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policy/pipelines.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policy/ratelimit.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/policy/vaults.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/schema.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/server.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/state/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/state/base.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/state/dataset.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/state/diff.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/state/loading.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/state/workspace.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/annotation.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/base.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/builtin_detectors.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/builtin_rules.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/detectors.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/entities.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/projection.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/redaction.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/redaction_run.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/strategies.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/substitution.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/textscan.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/vault.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/mcp/transforms/vault_formats.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/normaliser.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/policies/custodian-aws-security.yml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/policies/custodian-azure.yml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/policies/custodian-gcp.yml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/policies/custodian.yml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/region_discovery.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/registry.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/renderers/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/renderers/html_report.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/renderers/iso_scene.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/renderers/json_export.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/renderers/svg.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/renderers/svg_layout.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/renderers/terraform_export.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/aws.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/azure.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/breaker.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/errors.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/gcp.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/governor.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/guard.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/limiter.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/retry.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/resilience/stats.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/retry.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/check_equivalence.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/cis_aws_v3.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/cis_azure_v2.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/cis_gcp_v3.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/aws_foundational_security_best_practices_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/cis_5.0_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/cis_5.0_azure.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/cis_5.0_gcp.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/gdpr_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/hipaa_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/hipaa_azure.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/hipaa_gcp.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/iso27001_2022_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/iso27001_2022_azure.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/iso27001_2022_gcp.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/mitre_attack_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/mitre_attack_azure.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/mitre_attack_gcp.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/nist_800_53_revision_5_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/nist_csf_2.0_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/pci_4.0_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/pci_4.0_azure.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/pci_4.0_gcp.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/soc2_aws.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/soc2_azure.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/frameworks/soc2_gcp.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/gdpr.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/hipaa_security_rule.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/iso_27001_2022.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/nist_800_53.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/pci_dss_v4.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/rules/soc2_tsc.yaml +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/scanners/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/scanners/_errors.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/scanners/checkov.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/scanners/iam_linter.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/scanners/prowler.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/scanners/prowler_ocsf.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/scanners/scoutsuite.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/scanners/trivy.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/schema/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/schema/models.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/figures/empty-tray.js +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/report.html.j2 +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/vendor/LICENSE-anatomy.txt +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/vendor/LICENSE-chartjs.md +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/vendor/LICENSE-d3.txt +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/vendor/LICENSE-hairline.txt +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/vendor/NOTICE +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/vendor/chart.umd.js +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/vendor/d3.min.js +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/vendor/hairline-kernel.js +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/templates/vendor/iso-kit.js +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/cloudg/ui.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/INVENTORY_CATALOG.md +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/INVENTORY_INTERNALS.md +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/INVENTORY_REFERENCE.md +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/MCP.md +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/MCP_INTERNALS.md +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/MCP_PRIVACY.md +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/MCP_TOOLS.md +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/docs/RESILIENCE.md +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/azure_fakes.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/conftest.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/gcp_fakes.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/_adapter_testkit.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/conftest.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/fake_secrets.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/fixtures/__init__.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/fixtures/sample_estate.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_adapters_args_model.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_adapters_export.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_adapters_fastmcp.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_adapters_sdk.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_adapters_serve.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_audit_fixes.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_compliance.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_export_live_meta.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_findings.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_graph.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_inventory.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_ontology.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_prompts.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_registry.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_regressions.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_resources.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_catalog_workspace.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_cli_mcp.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_middleware.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_native_auth.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_native_http.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_native_privacy.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_native_protocol.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_native_stdio.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_policy.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_policy_regressions.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_privacy_tools.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_state.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/mcp/test_transforms.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_api.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_aws_application.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_aws_data_ml.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_aws_governance.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_aws_network_ext.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_azure_entra.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_azure_inventory.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_azure_kubernetes.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_azure_parity_extractors.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_azure_parity_graph.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_azure_parity_rest.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_azure_rest.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_catalogs_cloudcontrol.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_cli_commands.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_collection_failed.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_collectors.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_config_keys.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_exceptions.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_gcp_inventory.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_gcp_parity_extractors.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_gcp_registry.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_gcp_sources.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_graph_builder.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_html_report.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_ingest.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_inventory.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_inventory_deep.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_inventory_fixes.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_iso_scene.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_normaliser.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_normaliser_compliance.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_ontology.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_ontology_fixes.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_ports.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_rag_export.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_reachability.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_region_discovery.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_resilience.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_scanner_orchestration.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_scanner_wiring.py +0 -0
- {cloudg-0.7.0 → cloudg-0.7.1}/tests/test_terraform_export.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cloudg
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: cloudg (cloud graphing) - multi-cloud infrastructure mapping, knowledge graphs and security intelligence for AWS, Azure and GCP
|
|
5
5
|
Project-URL: Homepage, https://github.com/morpheuslord/cloudg
|
|
6
6
|
Project-URL: Repository, https://github.com/morpheuslord/cloudg
|
|
@@ -33,6 +33,7 @@ Requires-Dist: rich>=13.0
|
|
|
33
33
|
Requires-Dist: svgwrite>=1.4
|
|
34
34
|
Provides-Extra: all
|
|
35
35
|
Requires-Dist: aioboto3>=12.0; extra == 'all'
|
|
36
|
+
Requires-Dist: aiohttp>=3.14.4; extra == 'all'
|
|
36
37
|
Requires-Dist: azure-identity>=1.14; extra == 'all'
|
|
37
38
|
Requires-Dist: azure-mgmt-compute>=30.0; extra == 'all'
|
|
38
39
|
Requires-Dist: azure-mgmt-keyvault>=10.0; extra == 'all'
|
|
@@ -42,11 +43,15 @@ Requires-Dist: azure-mgmt-resourcegraph>=8.0.0; extra == 'all'
|
|
|
42
43
|
Requires-Dist: azure-mgmt-sql>=3.0; extra == 'all'
|
|
43
44
|
Requires-Dist: azure-mgmt-storage>=21.0; extra == 'all'
|
|
44
45
|
Requires-Dist: boto3>=1.28; extra == 'all'
|
|
46
|
+
Requires-Dist: certifi>=2026.10.18; extra == 'all'
|
|
45
47
|
Requires-Dist: google-auth>=2.22; extra == 'all'
|
|
46
48
|
Requires-Dist: google-cloud-asset>=3.0; extra == 'all'
|
|
47
49
|
Requires-Dist: mcp<3,>=1.30; extra == 'all'
|
|
50
|
+
Requires-Dist: opentelemetry-api>=1.45.1; extra == 'all'
|
|
51
|
+
Requires-Dist: pyasn1>=0.6.5; extra == 'all'
|
|
48
52
|
Provides-Extra: aws
|
|
49
53
|
Requires-Dist: aioboto3>=12.0; extra == 'aws'
|
|
54
|
+
Requires-Dist: aiohttp>=3.14.4; extra == 'aws'
|
|
50
55
|
Requires-Dist: boto3>=1.28; extra == 'aws'
|
|
51
56
|
Provides-Extra: azure
|
|
52
57
|
Requires-Dist: azure-identity>=1.14; extra == 'azure'
|
|
@@ -57,23 +62,31 @@ Requires-Dist: azure-mgmt-resource>=23.0; extra == 'azure'
|
|
|
57
62
|
Requires-Dist: azure-mgmt-resourcegraph>=8.0.0; extra == 'azure'
|
|
58
63
|
Requires-Dist: azure-mgmt-sql>=3.0; extra == 'azure'
|
|
59
64
|
Requires-Dist: azure-mgmt-storage>=21.0; extra == 'azure'
|
|
65
|
+
Requires-Dist: certifi>=2026.10.18; extra == 'azure'
|
|
60
66
|
Provides-Extra: dev
|
|
61
67
|
Requires-Dist: aioboto3>=12.0; extra == 'dev'
|
|
68
|
+
Requires-Dist: aiohttp>=3.14.4; extra == 'dev'
|
|
62
69
|
Requires-Dist: boto3>=1.28; extra == 'dev'
|
|
63
70
|
Requires-Dist: mcp<3,>=1.30; extra == 'dev'
|
|
64
71
|
Requires-Dist: moto[all]>=5.0; extra == 'dev'
|
|
72
|
+
Requires-Dist: opentelemetry-api>=1.45.1; extra == 'dev'
|
|
65
73
|
Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
|
|
66
74
|
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
67
75
|
Requires-Dist: ruff>=0.1; extra == 'dev'
|
|
76
|
+
Requires-Dist: werkzeug>=3.1.9; extra == 'dev'
|
|
68
77
|
Provides-Extra: full
|
|
69
78
|
Requires-Dist: diagrams>=0.23; extra == 'full'
|
|
70
79
|
Requires-Dist: policy-sentry>=0.12; extra == 'full'
|
|
71
80
|
Requires-Dist: weasyprint>=60.0; extra == 'full'
|
|
72
81
|
Provides-Extra: gcp
|
|
82
|
+
Requires-Dist: certifi>=2026.10.18; extra == 'gcp'
|
|
73
83
|
Requires-Dist: google-auth>=2.22; extra == 'gcp'
|
|
74
84
|
Requires-Dist: google-cloud-asset>=3.0; extra == 'gcp'
|
|
85
|
+
Requires-Dist: opentelemetry-api>=1.45.1; extra == 'gcp'
|
|
86
|
+
Requires-Dist: pyasn1>=0.6.5; extra == 'gcp'
|
|
75
87
|
Provides-Extra: mcp
|
|
76
88
|
Requires-Dist: mcp<3,>=1.30; extra == 'mcp'
|
|
89
|
+
Requires-Dist: opentelemetry-api>=1.45.1; extra == 'mcp'
|
|
77
90
|
Description-Content-Type: text/markdown
|
|
78
91
|
|
|
79
92
|
<p align="center">
|
|
@@ -99,6 +112,7 @@ cloudg (cloud graphing) maps AWS, Azure and GCP infrastructure into a graph, run
|
|
|
99
112
|
- **Map.** `cloudg map` collects everything deployed (or default) in an account, down to the network fabric, sweeps every service for the rest, and links it all into typed relationships: S3 `INVOKES` Lambda, function `ASSUMES_ROLE` role, WAF `PROTECTS` ALB. No scanner runs and none has to be installed.
|
|
100
113
|
- **Scan.** `cloudg run` fans out to Prowler, ScoutSuite, Checkov and Trivy against the same accounts, then normalises, deduplicates and maps every finding against 28 compliance frameworks.
|
|
101
114
|
- **Merge.** `cloudg ingest` does the same for scanner output produced elsewhere, with no cloud credentials and no scanner binaries.
|
|
115
|
+
- **Gate.** `cloudg gate` fails a CI job on findings at or above a severity and writes SARIF for code scanning. On GitHub, `uses: morpheuslord/cloudg@v0.7.1` runs the whole pipeline and the gate as an action.
|
|
102
116
|
- **Use it.** The results leave as an interactive HTML report, JSON, GraphML, an RDF ontology, RAG chunks for LLM pipelines and Terraform files, and `cloudg mcp serve` turns all of it into an MCP server for AI assistants.
|
|
103
117
|
|
|
104
118
|
## Install
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License: MIT"></a>
|
|
7
7
|
<img src="https://img.shields.io/badge/python-3.11%2B-blue.svg" alt="Python 3.11+">
|
|
8
|
-
<img src="https://img.shields.io/badge/version-0.
|
|
8
|
+
<img src="https://img.shields.io/badge/version-0.7.1-4c1.svg" alt="Version 0.7.1">
|
|
9
9
|
<a href="https://github.com/astral-sh/uv"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json" alt="uv"></a>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
@@ -59,6 +59,28 @@ cloudg ingest --prowler ./prowler-output/ --checkov ./results_json.json --trivy
|
|
|
59
59
|
|
|
60
60
|
Any combination of Prowler, ScoutSuite, Checkov and Trivy outputs works; cloudg normalises, deduplicates across scanners via the check-equivalence rulesets, maps compliance frameworks, and renders the reports.
|
|
61
61
|
|
|
62
|
+
In CI, `cloudg gate` fails the job on findings at or above a severity and writes SARIF for code scanning. On GitHub the repository doubles as an action that installs cloudg and the scanners, runs the pipeline and gates it:
|
|
63
|
+
|
|
64
|
+
```yaml
|
|
65
|
+
permissions:
|
|
66
|
+
contents: read
|
|
67
|
+
id-token: write # OIDC login to the cloud
|
|
68
|
+
security-events: write # SARIF upload
|
|
69
|
+
|
|
70
|
+
steps:
|
|
71
|
+
- uses: aws-actions/configure-aws-credentials@v6
|
|
72
|
+
with:
|
|
73
|
+
role-to-assume: arn:aws:iam::123456789012:role/cloudg-github
|
|
74
|
+
aws-region: us-east-1
|
|
75
|
+
- uses: morpheuslord/cloudg@v0.7.1
|
|
76
|
+
with:
|
|
77
|
+
provider: aws
|
|
78
|
+
fail-on: critical
|
|
79
|
+
min-assets: "1"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
The [CI and automation guide](https://morpheuslord.github.io/cloudg/guides/ci-automation/) has every input, Azure and GCP logins, GitLab CI and a plain shell version.
|
|
83
|
+
|
|
62
84
|
<details>
|
|
63
85
|
<summary><b>Other install options (pip, Docker, installer scripts)</b></summary>
|
|
64
86
|
|
|
@@ -276,7 +298,7 @@ controls:
|
|
|
276
298
|
| `--terraform/--no-terraform` | Terraform recreation (off by default) |
|
|
277
299
|
| `-o, --output` | output directory, `./reports` by default |
|
|
278
300
|
|
|
279
|
-
`cloudg collect` and `cloudg scan` run the individual phases; `cloudg map` builds the scanner-independent inventory map (`--findings` merges existing findings into asset/compliance maps, `--no-sweep` skips the catch-all sweep); `cloudg ingest` aggregates scanner outputs you already have (`--prowler`, `--scoutsuite`, `--checkov`, `--trivy`, each taking a file or directory and repeatable); `cloudg report -i findings.json` re-renders reports from a previous run.
|
|
301
|
+
`cloudg collect` and `cloudg scan` run the individual phases; `cloudg map` builds the scanner-independent inventory map (`--findings` merges existing findings into asset/compliance maps, `--no-sweep` skips the catch-all sweep); `cloudg ingest` aggregates scanner outputs you already have (`--prowler`, `--scoutsuite`, `--checkov`, `--trivy`, each taking a file or directory and repeatable); `cloudg report -i findings.json` re-renders reports from a previous run. `cloudg gate -i reports --fail-on high` fails a CI job on findings at or above a severity, and writes SARIF for code scanning with `--sarif`.
|
|
280
302
|
|
|
281
303
|
</details>
|
|
282
304
|
|
|
@@ -17,6 +17,7 @@ from rich.logging import RichHandler
|
|
|
17
17
|
|
|
18
18
|
from cloudg import __version__, ui
|
|
19
19
|
from cloudg.cli_commands import run
|
|
20
|
+
from cloudg.cli_gate import gate
|
|
20
21
|
from cloudg.cli_helpers import (
|
|
21
22
|
_gather_ingest_reports,
|
|
22
23
|
_load_scan_assets,
|
|
@@ -643,6 +644,7 @@ def ingest(
|
|
|
643
644
|
# ─────────────────────────────────────────────────────────────────────
|
|
644
645
|
|
|
645
646
|
cli.add_command(run)
|
|
647
|
+
cli.add_command(gate)
|
|
646
648
|
cli.add_command(map_inventory)
|
|
647
649
|
cli.add_command(deps)
|
|
648
650
|
cli.add_command(mcp_group)
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"""`cloudg gate`: fail a CI job on findings at or above a severity."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import sys
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Any
|
|
9
|
+
|
|
10
|
+
import click
|
|
11
|
+
from rich.markup import escape
|
|
12
|
+
|
|
13
|
+
from cloudg import ui
|
|
14
|
+
from cloudg.gate import EXIT_GATE_FAILED, THRESHOLD_CHOICES, GateResult, evaluate_gate
|
|
15
|
+
|
|
16
|
+
_CONSOLE_TOP = 25
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def _resolve_input(path: Path) -> Path:
|
|
20
|
+
"""``path``, or the findings.json inside it when it is a directory."""
|
|
21
|
+
return path / "findings.json" if path.is_dir() else path
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _load(ctx: click.Context, input_path: Path) -> Any:
|
|
25
|
+
from cloudg.cli_helpers import _load_report_input
|
|
26
|
+
|
|
27
|
+
cfg = ctx.obj
|
|
28
|
+
rules_dir = cfg.rulesets.rules_dir if cfg is not None else None
|
|
29
|
+
if not input_path.exists():
|
|
30
|
+
ui.error_panel("Input file not found", input_path)
|
|
31
|
+
sys.exit(1)
|
|
32
|
+
try:
|
|
33
|
+
scan_result, _graph = _load_report_input(input_path, rules_dir=rules_dir)
|
|
34
|
+
except (OSError, ValueError) as exc:
|
|
35
|
+
ui.error_panel("Could not read the input", exc)
|
|
36
|
+
sys.exit(1)
|
|
37
|
+
return scan_result
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _show(gate: GateResult) -> None:
|
|
41
|
+
ui.stats_table("Findings by severity", gate.counts)
|
|
42
|
+
rows = [
|
|
43
|
+
[f.title, f.severity.value, f.source_tool, f.resource_arn or f.resource_id]
|
|
44
|
+
for f in gate.blocking[:_CONSOLE_TOP]
|
|
45
|
+
]
|
|
46
|
+
if rows:
|
|
47
|
+
ui.ranked_table("Blocking findings", ["Finding", "Severity", "Tool", "Resource"], rows)
|
|
48
|
+
if gate.passed:
|
|
49
|
+
ui.success(f"Gate passed (fail on {gate.fail_on}, {len(gate.blocking)} blocking)")
|
|
50
|
+
else:
|
|
51
|
+
ui.fail(f"Gate failed: {escape(gate.reason)}")
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def _write_extras(
|
|
55
|
+
scan_result: Any, gate: GateResult, sarif: str | None, summary: str | None
|
|
56
|
+
) -> None:
|
|
57
|
+
if sarif:
|
|
58
|
+
from cloudg.renderers.sarif import write_sarif
|
|
59
|
+
|
|
60
|
+
ui.artifact("SARIF", write_sarif(scan_result, sarif))
|
|
61
|
+
if summary:
|
|
62
|
+
from cloudg.gate import summary_markdown
|
|
63
|
+
|
|
64
|
+
with open(summary, "a", encoding="utf-8") as fh:
|
|
65
|
+
fh.write(summary_markdown(gate))
|
|
66
|
+
ui.artifact("Summary", summary)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@click.command()
|
|
70
|
+
@click.option(
|
|
71
|
+
"-i",
|
|
72
|
+
"--input",
|
|
73
|
+
"input_file",
|
|
74
|
+
default="./reports",
|
|
75
|
+
show_default=True,
|
|
76
|
+
help="findings.json (or the directory holding it) from `cloudg run` or `cloudg ingest`, "
|
|
77
|
+
"or a raw-findings.json",
|
|
78
|
+
)
|
|
79
|
+
@click.option(
|
|
80
|
+
"--fail-on",
|
|
81
|
+
type=click.Choice(THRESHOLD_CHOICES, case_sensitive=False),
|
|
82
|
+
default="high",
|
|
83
|
+
show_default=True,
|
|
84
|
+
help="Lowest severity that fails the gate; `never` only reports",
|
|
85
|
+
)
|
|
86
|
+
@click.option(
|
|
87
|
+
"--max",
|
|
88
|
+
"max_blocking",
|
|
89
|
+
type=click.IntRange(min=0),
|
|
90
|
+
default=0,
|
|
91
|
+
show_default=True,
|
|
92
|
+
help="Blocking findings tolerated before the gate fails",
|
|
93
|
+
)
|
|
94
|
+
@click.option(
|
|
95
|
+
"--min-assets",
|
|
96
|
+
type=click.IntRange(min=0),
|
|
97
|
+
default=0,
|
|
98
|
+
show_default=True,
|
|
99
|
+
help="Fail when fewer assets were collected (catches runs whose credentials did not work)",
|
|
100
|
+
)
|
|
101
|
+
@click.option("--sarif", default=None, help="Also write the findings as SARIF 2.1.0 to this file")
|
|
102
|
+
@click.option(
|
|
103
|
+
"--summary",
|
|
104
|
+
default=None,
|
|
105
|
+
help="Append a Markdown summary to this file (for example $GITHUB_STEP_SUMMARY)",
|
|
106
|
+
)
|
|
107
|
+
@click.option("--json", "as_json", is_flag=True, help="Print the verdict as JSON on stdout")
|
|
108
|
+
@click.pass_context
|
|
109
|
+
def gate(
|
|
110
|
+
ctx: click.Context,
|
|
111
|
+
input_file: str,
|
|
112
|
+
fail_on: str,
|
|
113
|
+
max_blocking: int,
|
|
114
|
+
min_assets: int,
|
|
115
|
+
sarif: str | None,
|
|
116
|
+
summary: str | None,
|
|
117
|
+
as_json: bool,
|
|
118
|
+
) -> None:
|
|
119
|
+
"""Fail a CI job on findings at or above a severity.
|
|
120
|
+
|
|
121
|
+
Reads a findings.json, counts the findings at --fail-on or above
|
|
122
|
+
(suppressed findings never count), and exits with status 4 when there
|
|
123
|
+
are more than --max of them or fewer assets than --min-assets. Status 1
|
|
124
|
+
means the input is missing or unreadable.
|
|
125
|
+
|
|
126
|
+
\b
|
|
127
|
+
cloudg gate -i reports --fail-on high
|
|
128
|
+
cloudg gate -i reports --fail-on critical --min-assets 1 --sarif reports/cloudg.sarif
|
|
129
|
+
"""
|
|
130
|
+
ui.section("Security Gate")
|
|
131
|
+
input_path = _resolve_input(Path(input_file))
|
|
132
|
+
scan_result = _load(ctx, input_path)
|
|
133
|
+
verdict = evaluate_gate(scan_result, fail_on, max_blocking, min_assets)
|
|
134
|
+
|
|
135
|
+
_show(verdict)
|
|
136
|
+
_write_extras(scan_result, verdict, sarif, summary)
|
|
137
|
+
if as_json:
|
|
138
|
+
click.echo(json.dumps(verdict.to_dict(), indent=2))
|
|
139
|
+
if not verdict.passed:
|
|
140
|
+
ctx.exit(EXIT_GATE_FAILED)
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"""Severity gate for CI pipelines.
|
|
2
|
+
|
|
3
|
+
`evaluate_gate` decides whether a scan result should fail a pipeline: it
|
|
4
|
+
counts the findings at or above a severity threshold, ignores suppressed
|
|
5
|
+
ones, and can also require a minimum number of collected assets (a run with
|
|
6
|
+
no assets usually means the credentials did not work). `cloudg gate` and
|
|
7
|
+
the GitHub Action are thin wrappers around it.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from collections import Counter
|
|
13
|
+
from dataclasses import dataclass, field
|
|
14
|
+
|
|
15
|
+
from cloudg.schema.models import Finding, ScanResult, Severity
|
|
16
|
+
|
|
17
|
+
# Exit status of `cloudg gate` when the gate fails. 1 stays "could not run"
|
|
18
|
+
# (missing or unreadable input) and 2 is click's usage error, so a pipeline
|
|
19
|
+
# can tell "the gate found something" from "the gate is broken".
|
|
20
|
+
EXIT_GATE_FAILED = 4
|
|
21
|
+
|
|
22
|
+
SEVERITY_ORDER: tuple[Severity, ...] = (
|
|
23
|
+
Severity.INFO,
|
|
24
|
+
Severity.LOW,
|
|
25
|
+
Severity.MEDIUM,
|
|
26
|
+
Severity.HIGH,
|
|
27
|
+
Severity.CRITICAL,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
THRESHOLD_CHOICES: tuple[str, ...] = ("critical", "high", "medium", "low", "info", "never")
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def parse_threshold(value: str) -> Severity | None:
|
|
34
|
+
"""The severity named by ``value`` (any case), or None for ``never``.
|
|
35
|
+
|
|
36
|
+
Raises:
|
|
37
|
+
ValueError: ``value`` is not one of THRESHOLD_CHOICES.
|
|
38
|
+
"""
|
|
39
|
+
name = value.strip().lower()
|
|
40
|
+
if name not in THRESHOLD_CHOICES:
|
|
41
|
+
raise ValueError(
|
|
42
|
+
f"unknown severity threshold {value!r}, expected one of {THRESHOLD_CHOICES}"
|
|
43
|
+
)
|
|
44
|
+
return None if name == "never" else Severity(name.upper())
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _rank(severity: Severity) -> int:
|
|
48
|
+
return SEVERITY_ORDER.index(severity)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@dataclass
|
|
52
|
+
class GateResult:
|
|
53
|
+
"""Outcome of one gate evaluation."""
|
|
54
|
+
|
|
55
|
+
threshold: Severity | None
|
|
56
|
+
max_blocking: int
|
|
57
|
+
min_assets: int
|
|
58
|
+
total_assets: int
|
|
59
|
+
counts: dict[str, int]
|
|
60
|
+
suppressed: int
|
|
61
|
+
blocking: list[Finding] = field(default_factory=list)
|
|
62
|
+
reason: str = ""
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def passed(self) -> bool:
|
|
66
|
+
return not self.reason
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def total_findings(self) -> int:
|
|
70
|
+
return sum(self.counts.values())
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def fail_on(self) -> str:
|
|
74
|
+
return self.threshold.value if self.threshold else "NEVER"
|
|
75
|
+
|
|
76
|
+
def to_dict(self) -> dict[str, object]:
|
|
77
|
+
"""JSON-ready summary, as `cloudg gate --json` prints it."""
|
|
78
|
+
return {
|
|
79
|
+
"passed": self.passed,
|
|
80
|
+
"reason": self.reason,
|
|
81
|
+
"fail_on": self.fail_on,
|
|
82
|
+
"max": self.max_blocking,
|
|
83
|
+
"blocking": len(self.blocking),
|
|
84
|
+
"total_findings": self.total_findings,
|
|
85
|
+
"suppressed": self.suppressed,
|
|
86
|
+
"total_assets": self.total_assets,
|
|
87
|
+
"min_assets": self.min_assets,
|
|
88
|
+
"counts": self.counts,
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def evaluate_gate(
|
|
93
|
+
result: ScanResult,
|
|
94
|
+
fail_on: str = "high",
|
|
95
|
+
max_blocking: int = 0,
|
|
96
|
+
min_assets: int = 0,
|
|
97
|
+
) -> GateResult:
|
|
98
|
+
"""Apply the gate to ``result``.
|
|
99
|
+
|
|
100
|
+
Args:
|
|
101
|
+
result: A scan result, for example from `cloudg run` or
|
|
102
|
+
`CloudGEngine.run()`, or restored from findings.json.
|
|
103
|
+
fail_on: Lowest severity that blocks (``critical``, ``high``,
|
|
104
|
+
``medium``, ``low``, ``info``), or ``never`` to only report.
|
|
105
|
+
max_blocking: How many blocking findings are tolerated.
|
|
106
|
+
min_assets: Fail when fewer assets than this were collected.
|
|
107
|
+
|
|
108
|
+
Returns:
|
|
109
|
+
A GateResult; ``passed`` is False when either check failed, and
|
|
110
|
+
``reason`` says why. ``blocking`` is sorted worst first.
|
|
111
|
+
"""
|
|
112
|
+
threshold = parse_threshold(fail_on)
|
|
113
|
+
active = [f for f in result.findings if not f.is_suppressed]
|
|
114
|
+
tally = Counter(f.severity for f in active)
|
|
115
|
+
counts = {s.value: tally.get(s, 0) for s in reversed(SEVERITY_ORDER)}
|
|
116
|
+
blocking: list[Finding] = []
|
|
117
|
+
if threshold is not None:
|
|
118
|
+
floor = _rank(threshold)
|
|
119
|
+
blocking = [f for f in active if _rank(f.severity) >= floor]
|
|
120
|
+
blocking.sort(key=lambda f: (-_rank(f.severity), -f.risk_score, f.title))
|
|
121
|
+
|
|
122
|
+
gate = GateResult(
|
|
123
|
+
threshold=threshold,
|
|
124
|
+
max_blocking=max_blocking,
|
|
125
|
+
min_assets=min_assets,
|
|
126
|
+
total_assets=len(result.assets),
|
|
127
|
+
counts=counts,
|
|
128
|
+
suppressed=len(result.findings) - len(active),
|
|
129
|
+
blocking=blocking,
|
|
130
|
+
)
|
|
131
|
+
gate.reason = _failure_reason(gate)
|
|
132
|
+
return gate
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def _failure_reason(gate: GateResult) -> str:
|
|
136
|
+
if gate.total_assets < gate.min_assets:
|
|
137
|
+
return f"only {gate.total_assets} asset(s) collected, expected at least {gate.min_assets}"
|
|
138
|
+
if len(gate.blocking) > gate.max_blocking:
|
|
139
|
+
return (
|
|
140
|
+
f"{len(gate.blocking)} finding(s) at {gate.fail_on} or above, "
|
|
141
|
+
f"{gate.max_blocking} allowed"
|
|
142
|
+
)
|
|
143
|
+
return ""
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def summary_markdown(gate: GateResult, top: int = 10) -> str:
|
|
147
|
+
"""A Markdown summary for a CI job page (GitHub's $GITHUB_STEP_SUMMARY)."""
|
|
148
|
+
verdict = "passed" if gate.passed else f"failed: {gate.reason}"
|
|
149
|
+
lines = [
|
|
150
|
+
"## cloudg security gate",
|
|
151
|
+
"",
|
|
152
|
+
f"**Result:** {verdict}",
|
|
153
|
+
"",
|
|
154
|
+
f"Fail on: `{gate.fail_on}`, allowed: {gate.max_blocking}, "
|
|
155
|
+
f"assets: {gate.total_assets}, suppressed findings: {gate.suppressed}",
|
|
156
|
+
"",
|
|
157
|
+
"| Severity | Findings |",
|
|
158
|
+
"|---|---|",
|
|
159
|
+
]
|
|
160
|
+
lines += [f"| {sev} | {n} |" for sev, n in gate.counts.items()]
|
|
161
|
+
if gate.blocking:
|
|
162
|
+
lines += ["", f"### Blocking findings (worst {min(top, len(gate.blocking))})", ""]
|
|
163
|
+
lines += ["| Severity | Finding | Resource | Tool |", "|---|---|---|---|"]
|
|
164
|
+
for f in gate.blocking[:top]:
|
|
165
|
+
target = f.resource_arn or f.resource_id
|
|
166
|
+
lines.append(
|
|
167
|
+
f"| {f.severity.value} | {_cell(f.title)} | {_cell(target)} | {_cell(f.source_tool)} |"
|
|
168
|
+
)
|
|
169
|
+
return "\n".join(lines) + "\n"
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def _cell(text: str) -> str:
|
|
173
|
+
"""Text safe inside a Markdown table cell."""
|
|
174
|
+
return text.replace("\\", "\\\\").replace("|", "\\|").replace("\n", " ")
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"""SARIF 2.1.0 export of a scan result, for GitHub code scanning and other
|
|
2
|
+
SARIF consumers.
|
|
3
|
+
|
|
4
|
+
Cloud findings point at resources, not at source files, so each result's
|
|
5
|
+
physical location is a stable pseudo path,
|
|
6
|
+
``cloud/<provider>/<account>/<region>/<resource>``, and the resource ARN or
|
|
7
|
+
ID is also given as a logical location. Code scanning shows such alerts
|
|
8
|
+
without a code snippet, and keeps one alert per resource and rule across
|
|
9
|
+
runs through the partial fingerprint.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
import hashlib
|
|
15
|
+
import json
|
|
16
|
+
import logging
|
|
17
|
+
import re
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
from typing import Any
|
|
20
|
+
from urllib.parse import quote
|
|
21
|
+
|
|
22
|
+
from cloudg import __version__
|
|
23
|
+
from cloudg.normaliser import prowler_check_id
|
|
24
|
+
from cloudg.schema.models import CloudAsset, Finding, ScanResult, Severity
|
|
25
|
+
|
|
26
|
+
logger = logging.getLogger(__name__)
|
|
27
|
+
|
|
28
|
+
SARIF_SCHEMA = "https://json.schemastore.org/sarif-2.1.0.json"
|
|
29
|
+
INFORMATION_URI = "https://morpheuslord.github.io/cloudg/"
|
|
30
|
+
|
|
31
|
+
# GitHub code scanning reads `security-severity` (0.0 to 10.0) to rank alerts
|
|
32
|
+
# as critical (9.0+), high (7.0+), medium (4.0+) or low.
|
|
33
|
+
_SECURITY_SEVERITY = {
|
|
34
|
+
Severity.CRITICAL: "9.5",
|
|
35
|
+
Severity.HIGH: "8.0",
|
|
36
|
+
Severity.MEDIUM: "5.5",
|
|
37
|
+
Severity.LOW: "3.0",
|
|
38
|
+
Severity.INFO: "0.0",
|
|
39
|
+
}
|
|
40
|
+
_LEVEL = {
|
|
41
|
+
Severity.CRITICAL: "error",
|
|
42
|
+
Severity.HIGH: "error",
|
|
43
|
+
Severity.MEDIUM: "warning",
|
|
44
|
+
Severity.LOW: "note",
|
|
45
|
+
Severity.INFO: "note",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _slug(text: str) -> str:
|
|
50
|
+
return re.sub(r"[^a-z0-9]+", "-", text.lower()).strip("-") or "finding"
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def rule_id(finding: Finding) -> str:
|
|
54
|
+
"""``<tool>/<check id>``, or ``<tool>/<slug of the title>`` without a check id.
|
|
55
|
+
|
|
56
|
+
A Prowler finding Id names one resource, so the check name inside it is
|
|
57
|
+
used instead, as the normaliser does when it deduplicates.
|
|
58
|
+
"""
|
|
59
|
+
src = (finding.source_finding_id or "").strip()
|
|
60
|
+
check = prowler_check_id(src) or src or _slug(finding.title)
|
|
61
|
+
return f"{_slug(finding.source_tool)}/{check}"
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def _segment(value: str | None) -> str:
|
|
65
|
+
"""One URI path segment; never empty, ``.`` or ``..``."""
|
|
66
|
+
text = quote(value or "unknown", safe="")
|
|
67
|
+
return text if text not in ("", ".", "..") else "unknown"
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def _artifact_uri(finding: Finding, asset: CloudAsset | None) -> str:
|
|
71
|
+
if asset is None:
|
|
72
|
+
return f"cloud/unknown/{_segment(finding.resource_arn or finding.resource_id)}"
|
|
73
|
+
parts = [asset.provider.value.lower(), asset.account_id, asset.region, asset.id]
|
|
74
|
+
return "cloud/" + "/".join(_segment(p) for p in parts)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def _fingerprint(finding: Finding) -> str:
|
|
78
|
+
key = "|".join((rule_id(finding), finding.resource_arn or finding.resource_id))
|
|
79
|
+
return hashlib.sha256(key.encode()).hexdigest()
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def _rule(finding: Finding) -> dict[str, Any]:
|
|
83
|
+
tags = ["security", "cloud", finding.source_tool, *finding.compliance_frameworks]
|
|
84
|
+
return {
|
|
85
|
+
"id": rule_id(finding),
|
|
86
|
+
"name": finding.title[:255],
|
|
87
|
+
"shortDescription": {"text": finding.title},
|
|
88
|
+
"fullDescription": {"text": finding.description or finding.title},
|
|
89
|
+
"help": {"text": finding.remediation or finding.description or finding.title},
|
|
90
|
+
"defaultConfiguration": {"level": _LEVEL[finding.severity]},
|
|
91
|
+
"properties": {
|
|
92
|
+
"tags": list(dict.fromkeys(tags)),
|
|
93
|
+
"security-severity": _SECURITY_SEVERITY[finding.severity],
|
|
94
|
+
"precision": "high",
|
|
95
|
+
},
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def _result(finding: Finding, asset: CloudAsset | None) -> dict[str, Any]:
|
|
100
|
+
target = finding.resource_arn or finding.resource_id
|
|
101
|
+
result: dict[str, Any] = {
|
|
102
|
+
"ruleId": rule_id(finding),
|
|
103
|
+
"level": _LEVEL[finding.severity],
|
|
104
|
+
"message": {"text": f"{finding.title} ({target})"},
|
|
105
|
+
"locations": [
|
|
106
|
+
{
|
|
107
|
+
"physicalLocation": {
|
|
108
|
+
"artifactLocation": {"uri": _artifact_uri(finding, asset)},
|
|
109
|
+
"region": {"startLine": 1},
|
|
110
|
+
},
|
|
111
|
+
"logicalLocations": [{"fullyQualifiedName": target, "kind": "resource"}],
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"partialFingerprints": {"cloudgFinding/v1": _fingerprint(finding)},
|
|
115
|
+
"properties": {
|
|
116
|
+
"severity": finding.severity.value,
|
|
117
|
+
"risk_score": finding.risk_score,
|
|
118
|
+
"source_tool": finding.source_tool,
|
|
119
|
+
"resource_id": finding.resource_id,
|
|
120
|
+
"compliance_frameworks": finding.compliance_frameworks,
|
|
121
|
+
},
|
|
122
|
+
}
|
|
123
|
+
if finding.is_suppressed:
|
|
124
|
+
result["suppressions"] = [{"kind": "external"}]
|
|
125
|
+
return result
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def _rules(findings: list[Finding]) -> list[dict[str, Any]]:
|
|
129
|
+
"""One rule per rule ID, described by its most severe finding."""
|
|
130
|
+
worst: dict[str, Finding] = {}
|
|
131
|
+
order = list(_LEVEL) # CRITICAL first
|
|
132
|
+
for f in findings:
|
|
133
|
+
current = worst.get(rule_id(f))
|
|
134
|
+
if current is None or order.index(f.severity) < order.index(current.severity):
|
|
135
|
+
worst[rule_id(f)] = f
|
|
136
|
+
return [_rule(f) for f in worst.values()]
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def build_sarif(scan_result: ScanResult) -> dict[str, Any]:
|
|
140
|
+
"""The SARIF 2.1.0 log for ``scan_result``, as a JSON-ready dict.
|
|
141
|
+
|
|
142
|
+
Suppressed findings are kept and marked with an external suppression,
|
|
143
|
+
so code scanning closes their alerts instead of losing track of them.
|
|
144
|
+
"""
|
|
145
|
+
assets = {a.id: a for a in scan_result.assets}
|
|
146
|
+
findings = scan_result.findings
|
|
147
|
+
return {
|
|
148
|
+
"$schema": SARIF_SCHEMA,
|
|
149
|
+
"version": "2.1.0",
|
|
150
|
+
"runs": [
|
|
151
|
+
{
|
|
152
|
+
"tool": {
|
|
153
|
+
"driver": {
|
|
154
|
+
"name": "cloudg",
|
|
155
|
+
"version": __version__,
|
|
156
|
+
"semanticVersion": __version__,
|
|
157
|
+
"informationUri": INFORMATION_URI,
|
|
158
|
+
"rules": _rules(findings),
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"results": [_result(f, assets.get(f.resource_id)) for f in findings],
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def write_sarif(scan_result: ScanResult, path: str | Path) -> Path:
|
|
168
|
+
"""Write ``build_sarif(scan_result)`` to ``path`` (parents are created)."""
|
|
169
|
+
out = Path(path)
|
|
170
|
+
out.parent.mkdir(parents=True, exist_ok=True)
|
|
171
|
+
out.write_text(json.dumps(build_sarif(scan_result), indent=2))
|
|
172
|
+
logger.debug("Exported SARIF to %s", out)
|
|
173
|
+
return out
|
|
@@ -272,6 +272,33 @@ cloudg report -i ./reports/findings.json --format html
|
|
|
272
272
|
|
|
273
273
|
`--format` takes `html`, `json`, `svg` or `all`. The run is restored as written: metadata, assets, findings, compliance results, edges and graph. A `raw-findings.json` from `cloudg scan` or `cloudg ingest` is normalised first. The command refuses to write `findings.json` over its own input (exit status 1); pick another `-o`, render `--format html` or `svg` only, or pass `--overwrite`.
|
|
274
274
|
|
|
275
|
+
### cloudg gate
|
|
276
|
+
|
|
277
|
+
Fail a CI job on findings at or above a severity. It reads a `findings.json` (or the directory holding it) and needs no cloud access.
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
cloudg gate -i ./reports --fail-on high
|
|
281
|
+
cloudg gate -i ./reports --fail-on critical --min-assets 1 --sarif ./reports/cloudg.sarif --summary "$GITHUB_STEP_SUMMARY"
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
`--fail-on` takes `critical`, `high` (the default), `medium`, `low`, `info` or `never`. Suppressed findings never count. The gate fails when more than `--max` findings (0 by default) are at the threshold or above, or when fewer than `--min-assets` assets were collected, and then exits with status 4. A missing or unreadable input exits 1. `--sarif` writes SARIF 2.1.0 for GitHub code scanning, with one rule per scanner check and a stable location per cloud resource; `--summary` appends a Markdown summary to a file; `--json` prints the verdict on stdout and sends the tables to stderr.
|
|
285
|
+
|
|
286
|
+
The repository root is also a GitHub Action that runs `cloudg run` and this gate, uploads the SARIF and keeps the reports as an artifact:
|
|
287
|
+
|
|
288
|
+
```yaml
|
|
289
|
+
- uses: aws-actions/configure-aws-credentials@v6
|
|
290
|
+
with:
|
|
291
|
+
role-to-assume: arn:aws:iam::123456789012:role/cloudg-github
|
|
292
|
+
aws-region: us-east-1
|
|
293
|
+
- uses: morpheuslord/cloudg@v0.7.1
|
|
294
|
+
with:
|
|
295
|
+
provider: aws
|
|
296
|
+
fail-on: critical
|
|
297
|
+
min-assets: "1"
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
The job needs `id-token: write` for the cloud login and `security-events: write` for the SARIF upload. The CI and automation guide on the docs site lists every input, with GitLab CI and plain shell versions.
|
|
301
|
+
|
|
275
302
|
## Input requirements
|
|
276
303
|
|
|
277
304
|
This section pins down exactly what each ingest path expects, and the command that produces it.
|
|
@@ -740,6 +767,8 @@ Modules the pipeline uses internally that are equally useful standalone:
|
|
|
740
767
|
| `cloudg.renderers.terraform_export` | `TerraformExporter` | `export(assets, edges)` recreates live infrastructure as `.tf.json` plus an `import_commands.sh`; `preview(assets)` reports mappable coverage first |
|
|
741
768
|
| `cloudg.normaliser` | `FindingsNormaliser` | the full dedupe / cross-scanner merge / CVSS rescore / compliance mapping pass, on any `list[Finding]` |
|
|
742
769
|
| `cloudg.ingest` | `parse_report`, `ingest_reports` | every scanner's parser, standalone; no engine, no credentials |
|
|
770
|
+
| `cloudg.gate` | `evaluate_gate`, `GateResult`, `summary_markdown` | the CI severity gate behind `cloudg gate`: blocking findings at a threshold, suppressions, `max_blocking`, `min_assets`, a Markdown job summary |
|
|
771
|
+
| `cloudg.renderers.sarif` | `build_sarif`, `write_sarif` | a `ScanResult` as SARIF 2.1.0 for code scanning: one rule per scanner check, a `security-severity` per rule, suppressed findings kept and marked |
|
|
743
772
|
| `cloudg.coverage` | `CollectionCoverage` | per-service success/failure/asset-count records every collector produces |
|
|
744
773
|
| `cloudg.inventory.dependencies` | `DependencyGraph`, `cross_account_edges`, `security_coverage` | dependency walks, shared dependencies, blast radius, cross-account edges and security service coverage over any assets and edges |
|
|
745
774
|
| `cloudg.inventory.linker` | `RelationshipLinker` | resolve declared relations and identifiers across services, regions and accounts into typed edges |
|