Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cartography-cncf/cartography
/ types & classes
Types & classes
4,660 in github.com/cartography-cncf/cartography
⨍
Functions
7,408
◇
Types & classes
4,660
↳
Endpoints
777
↓ 10,224 callers
Class
PropertyRef
Represents properties on cartography nodes and relationships. PropertyRefs allow dynamically generated Neo4j ingestion queries to set values
cartography/models/core/common.py:1
↓ 816 callers
Class
OntologyFieldMapping
Mapping between an ontology field and a module's node field. Attributes: ontology_field: The field name in the ontology. node_fie
cartography/models/ontology/mapping/specs.py:7
↓ 498 callers
Class
OtherRelationships
Encapsulates a list of CartographyRelSchema objects for additional relationships. This dataclass is used to group multiple CartographyRelSch
cartography/models/core/relationships.py:430
↓ 324 callers
Class
ExtraNodeLabels
Encapsulates a list of labels for the CartographyNodeSchema. This wrapper class is used to ensure dataclass immutability for the Cartography
cartography/models/core/nodes.py:109
↓ 240 callers
Class
OntologyNodeMapping
Mapping for a node in the ontology. Attributes: node_label: The label of the ontology node. fields: A list of OntologyFieldMappin
cartography/models/ontology/mapping/specs.py:45
↓ 212 callers
Class
OntologyMapping
Ontology mapping for a specific module. Attributes: module_name: The name of the module. nodes: A list of OntologyNodeMapping def
cartography/models/ontology/mapping/specs.py:65
↓ 155 callers
Class
Fact
A Fact gathers information about the environment using a Cypher query.
cartography/rules/spec/model.py:246
↓ 111 callers
Class
Rule
A Rule represents a security issue or misconfiguration detected in the environment.
cartography/rules/spec/model.py:325
↓ 49 callers
Class
_LazyStage
Callable that defers `from cartography.intel.X import func` until first invocation. Keeps `import cartography.sync` cheap: provider SDKs (boto3,
cartography/sync.py:22
↓ 43 callers
Class
ConditionalNodeLabel
A conditional label that is applied to nodes only when specific field conditions are met. Conditional labels allow you to dynamically apply
cartography/models/core/nodes.py:72
↓ 41 callers
Class
RuleReference
A reference document for a Rule.
cartography/rules/spec/model.py:238
↓ 41 callers
Class
_FakeResponse
tests/unit/cartography/intel/gcp/test_artifact_registry_supply_chain.py:1242
↓ 31 callers
Class
InterestingAssetSchema
tests/data/graph/querybuilder/sample_models/interesting_asset.py:97
↓ 30 callers
Class
RelConstraint
If a node carrying ontology label `src` has an outward edge toward a node carrying ontology label `dst`, that edge MUST be named `label`. The
cartography/models/ontology/constraints.py:106
↓ 30 callers
Class
ReportRef
One enumerated report. uri: human-readable provenance string (used in logs and errors). name: backend-specific key passed to read_bytes (S3 o
cartography/intel/common/object_store.py:19
↓ 25 callers
Class
Config
A common interface for cartography configuration. All fields defined on this class must be present on a configuration object. Fields documen
cartography/config.py:25
↓ 24 callers
Class
ACLParser
ACLParser is a class that parses Tailscale ACLs to extract data. It removes comments and trailing commas from the ACL string and converts it
cartography/intel/tailscale/utils.py:7
↓ 22 callers
Class
LocalReportReader
cartography/intel/common/object_store.py:100
↓ 21 callers
Class
OktaSyncState
Okta sync state. Object used to store sync data to allow each stages to share data. For example, saving user and group list returned by O
cartography/intel/okta/sync_state.py:6
↓ 19 callers
Class
Framework
A reference to a compliance framework requirement/control mapping. A rule can map to many framework controls, and many rules can map to the
cartography/rules/spec/model.py:170
↓ 18 callers
Class
_FullNameMapping
Rule that maps a Cloud Asset full resource name to a Cartography node. - ``service_prefix``: the full name must start with this (e.g.
cartography/intel/gcp/policy_bindings.py:46
↓ 17 callers
Class
AzureTagProperties
cartography/models/azure/tags/tag.py:13
↓ 17 callers
Class
AzureTagToSubscriptionRel
cartography/models/azure/tags/tag.py:28
↓ 16 callers
Class
StateSchema
Schema to serialize and deserialize DriftStates from JSON.
cartography/driftdetect/serializers.py:9
↓ 14 callers
Class
PaginatedGraphqlData
cartography/intel/github/util.py:37
↓ 13 callers
Class
MatchLinkSubResource
Sub-resource scoping metadata for load_matchlinks() source or target matches. This helper lets a MatchLink schema opt into matching an endpo
cartography/models/core/relationships.py:233
↓ 12 callers
Class
CLI
Command Line Interface for cartography using Typer. This class provides the main command line interface for cartography, handling argume
cartography/cli.py:210
↓ 11 callers
Class
AWSOrganizationRelProperties
cartography/models/aws/organization.py:16
↓ 11 callers
Class
DeviceHostnameMatchLinkProperties
cartography/models/ontology/device.py:208
↓ 11 callers
Class
DeviceToNodeRelProperties
cartography/models/ontology/device.py:32
↓ 11 callers
Class
ShortcutSchema
Schema to serialize and deserialize Shortcuts from JSON.
cartography/driftdetect/serializers.py:29
↓ 11 callers
Class
_FakeClient
tests/unit/cartography/intel/gcp/test_artifact_registry_supply_chain.py:1260
↓ 10 callers
Class
ObjectStoreError
Raised on read or parse failures from a ReportReader. Covers both transport failures (S3/GCS/Azure exceptions, local OSError) and decode/pars
cartography/intel/common/object_store.py:67
↓ 9 callers
Class
CloudTrailTransientRegionFailure
cartography/intel/aws/cloudtrail.py:28
↓ 9 callers
Class
FakeClient
tests/unit/cartography/intel/aws/test_organizations.py:153
↓ 9 callers
Class
GCPLabelNodeProperties
Properties for GCPLabel nodes. The id is computed as "{resource_id}:{key}:{value}" during ingestion.
cartography/models/gcp/labels/label.py:18
↓ 9 callers
Class
GCPLabelToProjectRel
(:GCPProject)-[:RESOURCE]->(:GCPLabel)
cartography/models/gcp/labels/label.py:38
↓ 9 callers
Class
PackageToNodeRelProperties
cartography/models/ontology/package.py:26
↓ 9 callers
Class
SimpleNodeProperties
tests/unit/cartography/graph/test_querybuilder_conditional_labels.py:20
↓ 8 callers
Class
ContainerImage
Represents a container image from the graph (ECR, GCR, GitLab, etc.).
cartography/intel/supply_chain.py:535
↓ 8 callers
Class
FactResult
Results for a single Fact execution. Contains the findings from executing a Fact's Cypher query along with optional compliance metrics w
cartography/rules/spec/result.py:41
↓ 8 callers
Class
InterestingAssetToSubResourceRel
Define a sub resource relationship (:InterestingAsset)<-[:RELATIONSHIP_LABEL]-(:SubResource)
tests/data/graph/querybuilder/sample_models/interesting_asset.py:33
↓ 8 callers
Class
S3BucketReader
cartography/intel/common/object_store.py:148
↓ 7 callers
Class
ContainerImageSchema
Schema for container images with conditional labels based on image type. This mimics the ECR use case where different image types map to diff
tests/data/graph/querybuilder/sample_models/conditional_label_models.py:49
↓ 7 callers
Class
ECRLayerFetchTransientError
Raised when a transient ECR/image-blob fetch failure should skip one image.
cartography/intel/aws/ecr_image_layers.py:40
↓ 7 callers
Class
GitHubRepositoryRelProperties
cartography/models/github/repos.py:38
↓ 7 callers
Class
PublicIPToNodeRelProperties
cartography/models/ontology/publicip.py:24
↓ 7 callers
Class
UnscopedNodeSchema
tests/data/graph/querybuilder/sample_models/allow_unscoped.py:38
↓ 6 callers
Class
AWSDNSRecordSchema
cartography/models/aws/route53/dnsrecord.py:216
↓ 6 callers
Class
AWSOrganizationSyncResult
cartography/intel/aws/organizations.py:43
↓ 6 callers
Class
AWSRoleSchema
cartography/models/aws/iam/role.py:75
↓ 6 callers
Class
AppCredential
GitHub App credential with automatic token refresh. Generates a JWT from the app's private key, exchanges it for an installation access
cartography/intel/github/app_auth.py:45
↓ 6 callers
Class
GitHubContainerImageRelProperties
cartography/models/github/container_images.py:51
↓ 6 callers
Class
GitHubOrganizationUserSchema
cartography/models/github/users.py:118
↓ 6 callers
Class
GitLabProjectSchema
Schema for GitLab Project nodes. Projects are repositories/codebases that belong to an organization. They may also have a RESOURCE relat
cartography/models/gitlab/projects.py:143
↓ 6 callers
Class
LambdaTransientRegionFailure
cartography/intel/aws/lambda_function.py:38
↓ 6 callers
Class
ParsedCIInclude
A single `include:` entry from the YAML.
cartography/intel/gitlab/ci_config_parser.py:74
↓ 6 callers
Class
PolicyBindingsSyncResult
cartography/intel/gcp/policy_bindings.py:301
↓ 6 callers
Class
PrincipalToS3BucketPermissionRel
Test relationship schema connecting principals to S3 buckets with permissions.
tests/data/graph/matchlink/iam_permissions.py:42
↓ 6 callers
Class
S3ReportSource
An S3 bucket+prefix. `prefix` never has a leading slash.
cartography/intel/common/report_source.py:27
↓ 6 callers
Class
State
The default object which stores query information. :type name: String :param name: Name of the query. :type validation_query: String
cartography/driftdetect/model.py:7
↓ 6 callers
Class
TGWRelProperties
cartography/models/aws/ec2/tgw.py:19
↓ 6 callers
Class
_SyntheticHttpResponseError
tests/unit/cartography/intel/azure/test_data_factory.py:12
↓ 6 callers
Class
_TestConfig
tests/unit/cartography/intel/common/test_report_source.py:25
↓ 5 callers
Class
APIGatewayStageSchema
cartography/models/aws/apigateway/apigatewaystage.py:67
↓ 5 callers
Class
AzureDataFactoryTransientError
cartography/intel/azure/data_factory_util.py:15
↓ 5 callers
Class
ContainerPackagesFetchResult
Result of fetching the org's container packages list. ``cleanup_safe`` is False when the endpoint was unavailable (404 on older GHES, for ins
cartography/intel/github/packages.py:29
↓ 5 callers
Class
DependabotAlertsFetchResult
cartography/intel/github/dependabot_alerts.py:26
↓ 5 callers
Class
GitHubTeamToRepoRelProperties
cartography/models/github/teams.py:25
↓ 5 callers
Class
GraphStatement
A statement that will run against the cartography graph. Statements can query or update the graph. This class encapsulates a Neo4j Cypher qu
cartography/graph/statement.py:71
↓ 5 callers
Class
LocalReportSource
A filesystem path to a single report or a directory of reports.
cartography/intel/common/report_source.py:16
↓ 5 callers
Class
MockPage
tests/integration/cartography/intel/microsoft/entra/test_groups.py:29
↓ 5 callers
Class
SentinelOneSyncScope
cartography/intel/sentinelone/account.py:17
↓ 5 callers
Class
TailscaleGrantAccessRelProperties
cartography/models/tailscale/grant.py:142
↓ 4 callers
Class
AIBOMComponentToComponentRelProperties
cartography/models/aibom/component.py:106
↓ 4 callers
Class
APIGatewayClientCertificateSchema
cartography/models/aws/apigateway/apigatewaycertificate.py:62
↓ 4 callers
Class
APIGatewayResourceSchema
cartography/models/aws/apigateway/apigatewayresource.py:62
↓ 4 callers
Class
AWSIPv4CidrBlockSchema
There is no sub-resource relationship here because a CIDR block can be associated with more than one account and it doesn't make sense to
cartography/models/aws/ec2/vpc_cidr.py:45
↓ 4 callers
Class
AWSInlinePolicySchema
Inline policies are defined on the given principal and are therefore scoped to that principal's account.
cartography/models/aws/iam/inline_policy.py:65
↓ 4 callers
Class
AWSSSOUserSchema
cartography/models/aws/identitycenter/awsssouser.py:141
↓ 4 callers
Class
AttestationDiscoverySummary
cartography/intel/gitlab/container_image_attestations.py:41
↓ 4 callers
Class
Authenticator
cartography/intel/azure/util/credentials.py:38
↓ 4 callers
Class
AzureBlobContainerReader
cartography/intel/common/object_store.py:258
↓ 4 callers
Class
AzureBlobReportSource
An Azure Blob Storage container+prefix. `prefix` never has a leading slash.
cartography/intel/common/report_source.py:51
↓ 4 callers
Class
AzureCosmosDBLocationSchema
cartography/models/azure/cosmosdb/dblocation.py:108
↓ 4 callers
Class
ELBV2TransientRegionFailure
cartography/intel/aws/ec2/load_balancer_v2s.py:38
↓ 4 callers
Class
GCPArtifactRegistryRepositoryImageMatchLinkProperties
cartography/models/gcp/artifact_registry/repository_image.py:112
↓ 4 callers
Class
GCPFolderSchema
cartography/models/gcp/crm/folders.py:88
↓ 4 callers
Class
GCPProjectSchema
cartography/models/gcp/crm/projects.py:89
↓ 4 callers
Class
GCPServiceAccountSchema
cartography/models/gcp/iam.py:47
↓ 4 callers
Class
GitHubDependabotAlertRelProperties
cartography/models/github/dependabot_alerts.py:72
↓ 4 callers
Class
GitHubPersonalAccessTokenRelProperties
cartography/models/github/personal_access_tokens.py:35
↓ 4 callers
Class
InterestingAssetToHelloAssetRel
Define an additional relationship (:InterestingAsset)-[:ASSOCIATED_WITH]->(:HelloAsset)
tests/data/graph/querybuilder/sample_models/interesting_asset.py:56
↓ 4 callers
Class
KeycloakUserSchema
cartography/models/keycloak/user.py:49
↓ 4 callers
Class
KubernetesGroupSchema
cartography/models/kubernetes/groups.py:96
↓ 4 callers
Class
KubernetesUserSchema
cartography/models/kubernetes/users.py:114
↓ 4 callers
Class
LambdaSubResourceTransientFailure
cartography/intel/aws/lambda_function.py:42
↓ 4 callers
Class
LoadBalancerV2ToTargetRelProperties
cartography/models/aws/ec2/loadbalancerv2.py:220
↓ 4 callers
Class
SimpleNodeProperties
tests/data/graph/querybuilder/sample_models/simple_node.py:15
↓ 4 callers
Class
SimpleNodeSchema
tests/data/graph/querybuilder/sample_models/simple_node.py:23
next →
1–100 of 4,660, ranked by callers