cartography 0.104.0rc2__py3-none-any.whl → 0.105.0__py3-none-any.whl
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.
Potentially problematic release.
This version of cartography might be problematic. Click here for more details.
- cartography/_version.py +2 -2
- cartography/cli.py +26 -1
- cartography/client/aws/__init__.py +19 -0
- cartography/client/aws/ecr.py +51 -0
- cartography/config.py +8 -0
- cartography/data/indexes.cypher +0 -3
- cartography/data/jobs/cleanup/aws_import_lambda_cleanup.json +1 -1
- cartography/graph/cleanupbuilder.py +151 -41
- cartography/intel/aws/acm.py +124 -0
- cartography/intel/aws/cloudtrail.py +3 -38
- cartography/intel/aws/ecr.py +8 -2
- cartography/intel/aws/iam.py +1 -1
- cartography/intel/aws/lambda_function.py +1 -1
- cartography/intel/aws/resources.py +2 -2
- cartography/intel/aws/s3.py +195 -4
- cartography/intel/aws/secretsmanager.py +19 -5
- cartography/intel/aws/sqs.py +36 -90
- cartography/intel/entra/__init__.py +11 -0
- cartography/intel/entra/groups.py +151 -0
- cartography/intel/entra/ou.py +21 -5
- cartography/intel/trivy/__init__.py +161 -0
- cartography/intel/trivy/scanner.py +363 -0
- cartography/models/aws/acm/certificate.py +75 -0
- cartography/models/aws/cloudtrail/trail.py +24 -0
- cartography/models/aws/s3/notification.py +24 -0
- cartography/models/aws/secretsmanager/secret_version.py +0 -2
- cartography/models/aws/sqs/__init__.py +0 -0
- cartography/models/aws/sqs/queue.py +89 -0
- cartography/models/core/nodes.py +15 -2
- cartography/models/entra/group.py +91 -0
- cartography/models/trivy/__init__.py +0 -0
- cartography/models/trivy/findings.py +66 -0
- cartography/models/trivy/fix.py +66 -0
- cartography/models/trivy/package.py +71 -0
- cartography/sync.py +2 -0
- {cartography-0.104.0rc2.dist-info → cartography-0.105.0.dist-info}/METADATA +3 -2
- {cartography-0.104.0rc2.dist-info → cartography-0.105.0.dist-info}/RECORD +42 -30
- cartography/intel/aws/efs.py +0 -93
- cartography/models/aws/efs/mount_target.py +0 -52
- /cartography/models/aws/{efs → acm}/__init__.py +0 -0
- {cartography-0.104.0rc2.dist-info → cartography-0.105.0.dist-info}/WHEEL +0 -0
- {cartography-0.104.0rc2.dist-info → cartography-0.105.0.dist-info}/entry_points.txt +0 -0
- {cartography-0.104.0rc2.dist-info → cartography-0.105.0.dist-info}/licenses/LICENSE +0 -0
- {cartography-0.104.0rc2.dist-info → cartography-0.105.0.dist-info}/top_level.txt +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
from dataclasses import dataclass
|
|
2
|
-
|
|
3
|
-
from cartography.models.core.common import PropertyRef
|
|
4
|
-
from cartography.models.core.nodes import CartographyNodeProperties
|
|
5
|
-
from cartography.models.core.nodes import CartographyNodeSchema
|
|
6
|
-
from cartography.models.core.relationships import CartographyRelProperties
|
|
7
|
-
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
|
-
from cartography.models.core.relationships import LinkDirection
|
|
9
|
-
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
-
from cartography.models.core.relationships import TargetNodeMatcher
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@dataclass(frozen=True)
|
|
14
|
-
class EfsMountTargetNodeProperties(CartographyNodeProperties):
|
|
15
|
-
id: PropertyRef = PropertyRef("MountTargetId")
|
|
16
|
-
arn: PropertyRef = PropertyRef("MountTargetId", extra_index=True)
|
|
17
|
-
fileSystem_id: PropertyRef = PropertyRef("FileSystemId")
|
|
18
|
-
lifecycle_state: PropertyRef = PropertyRef("LifeCycleState")
|
|
19
|
-
mount_target_id: PropertyRef = PropertyRef("MountTargetId")
|
|
20
|
-
subnet_id: PropertyRef = PropertyRef("SubnetId")
|
|
21
|
-
availability_zone_id: PropertyRef = PropertyRef("AvailabilityZoneId")
|
|
22
|
-
availability_zone_name: PropertyRef = PropertyRef("AvailabilityZoneName")
|
|
23
|
-
ip_address: PropertyRef = PropertyRef("IpAddress")
|
|
24
|
-
network_interface_id: PropertyRef = PropertyRef("NetworkInterfaceId")
|
|
25
|
-
owner_id: PropertyRef = PropertyRef("OwnerId")
|
|
26
|
-
vpc_id: PropertyRef = PropertyRef("VpcId")
|
|
27
|
-
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@dataclass(frozen=True)
|
|
31
|
-
class EfsMountTargetToAwsAccountRelProperties(CartographyRelProperties):
|
|
32
|
-
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
@dataclass(frozen=True)
|
|
36
|
-
class EfsToAWSAccountRel(CartographyRelSchema):
|
|
37
|
-
target_node_label: str = "AWSAccount"
|
|
38
|
-
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
39
|
-
{"id": PropertyRef("AWS_ID", set_in_kwargs=True)},
|
|
40
|
-
)
|
|
41
|
-
direction: LinkDirection = LinkDirection.INWARD
|
|
42
|
-
rel_label: str = "RESOURCE"
|
|
43
|
-
properties: EfsMountTargetToAwsAccountRelProperties = (
|
|
44
|
-
EfsMountTargetToAwsAccountRelProperties()
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
@dataclass(frozen=True)
|
|
49
|
-
class EfsMountTargetSchema(CartographyNodeSchema):
|
|
50
|
-
label: str = "EfsMountTarget"
|
|
51
|
-
properties: EfsMountTargetNodeProperties = EfsMountTargetNodeProperties()
|
|
52
|
-
sub_resource_relationship: EfsToAWSAccountRel = EfsToAWSAccountRel()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|