cartography 0.105.0__py3-none-any.whl → 0.106.0rc1__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/data/indexes.cypher +0 -34
- cartography/intel/aws/ecs.py +228 -380
- cartography/intel/aws/efs.py +181 -0
- cartography/intel/aws/identitycenter.py +14 -3
- cartography/intel/aws/inspector.py +106 -53
- cartography/intel/aws/rds.py +2 -1
- cartography/intel/aws/resources.py +2 -0
- cartography/intel/entra/__init__.py +11 -0
- cartography/intel/entra/applications.py +366 -0
- cartography/intel/kubernetes/__init__.py +30 -14
- cartography/intel/kubernetes/clusters.py +86 -0
- cartography/intel/kubernetes/namespaces.py +59 -57
- cartography/intel/kubernetes/pods.py +140 -77
- cartography/intel/kubernetes/secrets.py +95 -45
- cartography/intel/kubernetes/services.py +131 -67
- cartography/intel/kubernetes/util.py +125 -14
- cartography/models/aws/ecs/__init__.py +0 -0
- cartography/models/aws/ecs/clusters.py +64 -0
- cartography/models/aws/ecs/container_definitions.py +93 -0
- cartography/models/aws/ecs/container_instances.py +84 -0
- cartography/models/aws/ecs/containers.py +80 -0
- cartography/models/aws/ecs/services.py +117 -0
- cartography/models/aws/ecs/task_definitions.py +97 -0
- cartography/models/aws/ecs/tasks.py +110 -0
- cartography/models/aws/efs/__init__.py +0 -0
- cartography/models/aws/efs/file_system.py +60 -0
- cartography/models/aws/efs/mount_target.py +79 -0
- cartography/models/entra/app_role_assignment.py +115 -0
- cartography/models/entra/application.py +47 -0
- cartography/models/kubernetes/__init__.py +0 -0
- cartography/models/kubernetes/clusters.py +26 -0
- cartography/models/kubernetes/containers.py +108 -0
- cartography/models/kubernetes/namespaces.py +51 -0
- cartography/models/kubernetes/pods.py +80 -0
- cartography/models/kubernetes/secrets.py +79 -0
- cartography/models/kubernetes/services.py +108 -0
- cartography/util.py +15 -10
- {cartography-0.105.0.dist-info → cartography-0.106.0rc1.dist-info}/METADATA +1 -1
- {cartography-0.105.0.dist-info → cartography-0.106.0rc1.dist-info}/RECORD +44 -22
- cartography/data/jobs/cleanup/kubernetes_import_cleanup.json +0 -70
- {cartography-0.105.0.dist-info → cartography-0.106.0rc1.dist-info}/WHEEL +0 -0
- {cartography-0.105.0.dist-info → cartography-0.106.0rc1.dist-info}/entry_points.txt +0 -0
- {cartography-0.105.0.dist-info → cartography-0.106.0rc1.dist-info}/licenses/LICENSE +0 -0
- {cartography-0.105.0.dist-info → cartography-0.106.0rc1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
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 KubernetesNamespaceNodeProperties(CartographyNodeProperties):
|
|
15
|
+
id: PropertyRef = PropertyRef("uid")
|
|
16
|
+
name: PropertyRef = PropertyRef("name", extra_index=True)
|
|
17
|
+
creation_timestamp: PropertyRef = PropertyRef("creation_timestamp")
|
|
18
|
+
deletion_timestamp: PropertyRef = PropertyRef("deletion_timestamp")
|
|
19
|
+
status_phase: PropertyRef = PropertyRef("status_phase")
|
|
20
|
+
cluster_name: PropertyRef = PropertyRef(
|
|
21
|
+
"cluster_name", set_in_kwargs=True, extra_index=True
|
|
22
|
+
)
|
|
23
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@dataclass(frozen=True)
|
|
27
|
+
class KubernetesNamespaceToKubernetesClusterRelProperties(CartographyRelProperties):
|
|
28
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@dataclass(frozen=True)
|
|
32
|
+
# (:KubernetesNamespace)<-[:RESOURCE]-(:KubernetesCluster)
|
|
33
|
+
class KubernetesNamespaceToKubernetesClusterRel(CartographyRelSchema):
|
|
34
|
+
target_node_label: str = "KubernetesCluster"
|
|
35
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
36
|
+
{"id": PropertyRef("CLUSTER_ID", set_in_kwargs=True)},
|
|
37
|
+
)
|
|
38
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
39
|
+
rel_label: str = "RESOURCE"
|
|
40
|
+
properties: KubernetesNamespaceToKubernetesClusterRelProperties = (
|
|
41
|
+
KubernetesNamespaceToKubernetesClusterRelProperties()
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@dataclass(frozen=True)
|
|
46
|
+
class KubernetesNamespaceSchema(CartographyNodeSchema):
|
|
47
|
+
label: str = "KubernetesNamespace"
|
|
48
|
+
properties: KubernetesNamespaceNodeProperties = KubernetesNamespaceNodeProperties()
|
|
49
|
+
sub_resource_relationship: KubernetesNamespaceToKubernetesClusterRel = (
|
|
50
|
+
KubernetesNamespaceToKubernetesClusterRel()
|
|
51
|
+
)
|
|
@@ -0,0 +1,80 @@
|
|
|
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 OtherRelationships
|
|
11
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class KubernetesPodNodeProperties(CartographyNodeProperties):
|
|
16
|
+
id: PropertyRef = PropertyRef("uid")
|
|
17
|
+
name: PropertyRef = PropertyRef("name", extra_index=True)
|
|
18
|
+
status_phase: PropertyRef = PropertyRef("status_phase")
|
|
19
|
+
creation_timestamp: PropertyRef = PropertyRef("creation_timestamp")
|
|
20
|
+
deletion_timestamp: PropertyRef = PropertyRef("deletion_timestamp")
|
|
21
|
+
namespace: PropertyRef = PropertyRef("namespace", extra_index=True)
|
|
22
|
+
labels: PropertyRef = PropertyRef("labels")
|
|
23
|
+
cluster_name: PropertyRef = PropertyRef(
|
|
24
|
+
"CLUSTER_NAME", set_in_kwargs=True, extra_index=True
|
|
25
|
+
)
|
|
26
|
+
node: PropertyRef = PropertyRef("node")
|
|
27
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@dataclass(frozen=True)
|
|
31
|
+
class KubernetesPodToKubernetesNamespaceRelProperties(CartographyRelProperties):
|
|
32
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@dataclass(frozen=True)
|
|
36
|
+
# (:KubernetesPod)<-[:CONTAINS]-(:KubernetesNamespace)
|
|
37
|
+
class KubernetesPodToKubernetesNamespaceRel(CartographyRelSchema):
|
|
38
|
+
target_node_label: str = "KubernetesNamespace"
|
|
39
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
40
|
+
{
|
|
41
|
+
"cluster_name": PropertyRef("CLUSTER_NAME", set_in_kwargs=True),
|
|
42
|
+
"name": PropertyRef("namespace"),
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
46
|
+
rel_label: str = "CONTAINS"
|
|
47
|
+
properties: KubernetesPodToKubernetesNamespaceRelProperties = (
|
|
48
|
+
KubernetesPodToKubernetesNamespaceRelProperties()
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@dataclass(frozen=True)
|
|
53
|
+
class KubernetesPodToKubernetesClusterRelProperties(CartographyRelProperties):
|
|
54
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@dataclass(frozen=True)
|
|
58
|
+
# (:KubernetesPod)<-[:RESOURCE]-(:KubernetesCluster)
|
|
59
|
+
class KubernetesPodToKubernetesClusterRel(CartographyRelSchema):
|
|
60
|
+
target_node_label: str = "KubernetesCluster"
|
|
61
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
62
|
+
{"id": PropertyRef("CLUSTER_ID", set_in_kwargs=True)}
|
|
63
|
+
)
|
|
64
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
65
|
+
rel_label: str = "RESOURCE"
|
|
66
|
+
properties: KubernetesPodToKubernetesClusterRelProperties = (
|
|
67
|
+
KubernetesPodToKubernetesClusterRelProperties()
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
@dataclass(frozen=True)
|
|
72
|
+
class KubernetesPodSchema(CartographyNodeSchema):
|
|
73
|
+
label: str = "KubernetesPod"
|
|
74
|
+
properties: KubernetesPodNodeProperties = KubernetesPodNodeProperties()
|
|
75
|
+
sub_resource_relationship: KubernetesPodToKubernetesClusterRel = (
|
|
76
|
+
KubernetesPodToKubernetesClusterRel()
|
|
77
|
+
)
|
|
78
|
+
other_relationships: OtherRelationships = OtherRelationships(
|
|
79
|
+
[KubernetesPodToKubernetesNamespaceRel()]
|
|
80
|
+
)
|
|
@@ -0,0 +1,79 @@
|
|
|
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 OtherRelationships
|
|
11
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class KubernetesSecretNodeProperties(CartographyNodeProperties):
|
|
16
|
+
id: PropertyRef = PropertyRef("uid")
|
|
17
|
+
name: PropertyRef = PropertyRef("name", extra_index=True)
|
|
18
|
+
creation_timestamp: PropertyRef = PropertyRef("creation_timestamp")
|
|
19
|
+
deletion_timestamp: PropertyRef = PropertyRef("deletion_timestamp")
|
|
20
|
+
namespace: PropertyRef = PropertyRef("namespace", extra_index=True)
|
|
21
|
+
owner_references: PropertyRef = PropertyRef("owner_references")
|
|
22
|
+
type: PropertyRef = PropertyRef("type")
|
|
23
|
+
cluster_name: PropertyRef = PropertyRef(
|
|
24
|
+
"CLUSTER_NAME", set_in_kwargs=True, extra_index=True
|
|
25
|
+
)
|
|
26
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@dataclass(frozen=True)
|
|
30
|
+
class KubernetesSecretToKubernetesNamespaceRelProperties(CartographyRelProperties):
|
|
31
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@dataclass(frozen=True)
|
|
35
|
+
# (:KubernetesSecret)<-[:CONTAINS]-(:KubernetesNamespace)
|
|
36
|
+
class KubernetesSecretToKubernetesNamespaceRel(CartographyRelSchema):
|
|
37
|
+
target_node_label: str = "KubernetesNamespace"
|
|
38
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
39
|
+
{
|
|
40
|
+
"cluster_name": PropertyRef("CLUSTER_NAME", set_in_kwargs=True),
|
|
41
|
+
"name": PropertyRef("namespace"),
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
45
|
+
rel_label: str = "CONTAINS"
|
|
46
|
+
properties: KubernetesSecretToKubernetesNamespaceRelProperties = (
|
|
47
|
+
KubernetesSecretToKubernetesNamespaceRelProperties()
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@dataclass(frozen=True)
|
|
52
|
+
class KubernetesSecretToKubernetesClusterRelProperties(CartographyRelProperties):
|
|
53
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@dataclass(frozen=True)
|
|
57
|
+
# (:KubernetesSecret)<-[:RESOURCE]-(:KubernetesCluster)
|
|
58
|
+
class KubernetesSecretToKubernetesClusterRel(CartographyRelSchema):
|
|
59
|
+
target_node_label: str = "KubernetesCluster"
|
|
60
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
61
|
+
{"id": PropertyRef("CLUSTER_ID", set_in_kwargs=True)}
|
|
62
|
+
)
|
|
63
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
64
|
+
rel_label: str = "RESOURCE"
|
|
65
|
+
properties: KubernetesSecretToKubernetesClusterRelProperties = (
|
|
66
|
+
KubernetesSecretToKubernetesClusterRelProperties()
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
@dataclass(frozen=True)
|
|
71
|
+
class KubernetesSecretSchema(CartographyNodeSchema):
|
|
72
|
+
label: str = "KubernetesSecret"
|
|
73
|
+
properties: KubernetesSecretNodeProperties = KubernetesSecretNodeProperties()
|
|
74
|
+
sub_resource_relationship: KubernetesSecretToKubernetesClusterRel = (
|
|
75
|
+
KubernetesSecretToKubernetesClusterRel()
|
|
76
|
+
)
|
|
77
|
+
other_relationships: OtherRelationships = OtherRelationships(
|
|
78
|
+
[KubernetesSecretToKubernetesNamespaceRel()]
|
|
79
|
+
)
|
|
@@ -0,0 +1,108 @@
|
|
|
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 OtherRelationships
|
|
11
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class KubernetesServiceNodeProperties(CartographyNodeProperties):
|
|
16
|
+
id: PropertyRef = PropertyRef("uid")
|
|
17
|
+
name: PropertyRef = PropertyRef("name", extra_index=True)
|
|
18
|
+
creation_timestamp: PropertyRef = PropertyRef("creation_timestamp")
|
|
19
|
+
deletion_timestamp: PropertyRef = PropertyRef("deletion_timestamp")
|
|
20
|
+
namespace: PropertyRef = PropertyRef("namespace", extra_index=True)
|
|
21
|
+
selector: PropertyRef = PropertyRef("selector")
|
|
22
|
+
type: PropertyRef = PropertyRef("type")
|
|
23
|
+
cluster_ip: PropertyRef = PropertyRef("cluster_ip")
|
|
24
|
+
load_balancer_ip: PropertyRef = PropertyRef("load_balancer_ip")
|
|
25
|
+
load_balancer_ingress: PropertyRef = PropertyRef("load_balancer_ingress")
|
|
26
|
+
cluster_name: PropertyRef = PropertyRef(
|
|
27
|
+
"CLUSTER_NAME", set_in_kwargs=True, extra_index=True
|
|
28
|
+
)
|
|
29
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@dataclass(frozen=True)
|
|
33
|
+
class KubernetesServiceToKubernetesClusterRelProperties(CartographyRelProperties):
|
|
34
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@dataclass(frozen=True)
|
|
38
|
+
# (:KubernetesService)<-[:RESOURCE]-(:KubernetesCluster)
|
|
39
|
+
class KubernetesServiceToKubernetesClusterRel(CartographyRelSchema):
|
|
40
|
+
target_node_label: str = "KubernetesCluster"
|
|
41
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
42
|
+
{"id": PropertyRef("CLUSTER_ID", set_in_kwargs=True)}
|
|
43
|
+
)
|
|
44
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
45
|
+
rel_label: str = "RESOURCE"
|
|
46
|
+
properties: KubernetesServiceToKubernetesClusterRelProperties = (
|
|
47
|
+
KubernetesServiceToKubernetesClusterRelProperties()
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@dataclass(frozen=True)
|
|
52
|
+
class KubernetesServiceToKubernetesNamespaceRelProperties(CartographyRelProperties):
|
|
53
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@dataclass(frozen=True)
|
|
57
|
+
# (:KubernetesService)<-[:CONTAINS]-(:KubernetesNamespace)
|
|
58
|
+
class KubernetesServiceToKubernetesNamespaceRel(CartographyRelSchema):
|
|
59
|
+
target_node_label: str = "KubernetesNamespace"
|
|
60
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
61
|
+
{
|
|
62
|
+
"cluster_name": PropertyRef("CLUSTER_NAME", set_in_kwargs=True),
|
|
63
|
+
"name": PropertyRef("namespace"),
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
67
|
+
rel_label: str = "CONTAINS"
|
|
68
|
+
properties: KubernetesServiceToKubernetesNamespaceRelProperties = (
|
|
69
|
+
KubernetesServiceToKubernetesNamespaceRelProperties()
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@dataclass(frozen=True)
|
|
74
|
+
class KubernetesServiceToKubernetesPodRelProperties(CartographyRelProperties):
|
|
75
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
@dataclass(frozen=True)
|
|
79
|
+
# (:KubernetesService)-[:TARGET]->(:KubernetesPod)
|
|
80
|
+
class KubernetesServiceToKubernetesPodRel(CartographyRelSchema):
|
|
81
|
+
target_node_label: str = "KubernetesPod"
|
|
82
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
83
|
+
{
|
|
84
|
+
"cluster_name": PropertyRef("CLUSTER_NAME", set_in_kwargs=True),
|
|
85
|
+
"namespace": PropertyRef("namespace"),
|
|
86
|
+
"id": PropertyRef("pod_ids", one_to_many=True),
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
direction: LinkDirection = LinkDirection.OUTWARD
|
|
90
|
+
rel_label: str = "TARGETS"
|
|
91
|
+
properties: KubernetesServiceToKubernetesPodRelProperties = (
|
|
92
|
+
KubernetesServiceToKubernetesPodRelProperties()
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
@dataclass(frozen=True)
|
|
97
|
+
class KubernetesServiceSchema(CartographyNodeSchema):
|
|
98
|
+
label: str = "KubernetesService"
|
|
99
|
+
properties: KubernetesServiceNodeProperties = KubernetesServiceNodeProperties()
|
|
100
|
+
sub_resource_relationship: KubernetesServiceToKubernetesClusterRel = (
|
|
101
|
+
KubernetesServiceToKubernetesClusterRel()
|
|
102
|
+
)
|
|
103
|
+
other_relationships: OtherRelationships = OtherRelationships(
|
|
104
|
+
[
|
|
105
|
+
KubernetesServiceToKubernetesNamespaceRel(),
|
|
106
|
+
KubernetesServiceToKubernetesPodRel(),
|
|
107
|
+
]
|
|
108
|
+
)
|
cartography/util.py
CHANGED
|
@@ -5,6 +5,7 @@ from functools import partial
|
|
|
5
5
|
from functools import wraps
|
|
6
6
|
from importlib.resources import open_binary
|
|
7
7
|
from importlib.resources import read_text
|
|
8
|
+
from itertools import islice
|
|
8
9
|
from string import Template
|
|
9
10
|
from typing import Any
|
|
10
11
|
from typing import Awaitable
|
|
@@ -37,6 +38,7 @@ STATUS_SUCCESS = 0
|
|
|
37
38
|
STATUS_FAILURE = 1
|
|
38
39
|
STATUS_KEYBOARD_INTERRUPT = 130
|
|
39
40
|
DEFAULT_BATCH_SIZE = 1000
|
|
41
|
+
DEFAULT_MAX_PAGES = 10000
|
|
40
42
|
|
|
41
43
|
|
|
42
44
|
def run_analysis_job(
|
|
@@ -208,26 +210,28 @@ def aws_paginate(
|
|
|
208
210
|
client: boto3.client,
|
|
209
211
|
method_name: str,
|
|
210
212
|
object_name: str,
|
|
213
|
+
max_pages: int | None = DEFAULT_MAX_PAGES,
|
|
211
214
|
**kwargs: Any,
|
|
212
|
-
) ->
|
|
215
|
+
) -> Iterable[Dict]:
|
|
213
216
|
"""
|
|
214
217
|
Helper method for boilerplate boto3 pagination
|
|
215
218
|
The **kwargs will be forwarded to the paginator
|
|
216
219
|
"""
|
|
217
220
|
paginator = client.get_paginator(method_name)
|
|
218
|
-
items = []
|
|
219
|
-
i = 0
|
|
220
221
|
for i, page in enumerate(paginator.paginate(**kwargs), start=1):
|
|
221
222
|
if i % 100 == 0:
|
|
222
223
|
logger.info(f"fetching page number {i}")
|
|
223
224
|
if object_name in page:
|
|
224
|
-
items
|
|
225
|
+
items = page[object_name]
|
|
226
|
+
yield from items
|
|
225
227
|
else:
|
|
226
228
|
logger.warning(
|
|
227
229
|
f"""aws_paginate: Key "{object_name}" is not present, check if this is a typo.
|
|
228
230
|
If not, then the AWS datatype somehow does not have this key.""",
|
|
229
231
|
)
|
|
230
|
-
|
|
232
|
+
if max_pages is not None and i >= max_pages:
|
|
233
|
+
logger.warning(f"Reached max batch size of {max_pages} pages")
|
|
234
|
+
break
|
|
231
235
|
|
|
232
236
|
|
|
233
237
|
AWSGetFunc = TypeVar("AWSGetFunc", bound=Callable[..., Iterable])
|
|
@@ -353,17 +357,18 @@ def camel_to_snake(name: str) -> str:
|
|
|
353
357
|
return re.sub(r"(?<!^)(?=[A-Z])", "_", name).lower()
|
|
354
358
|
|
|
355
359
|
|
|
356
|
-
def batch(items: Iterable, size: int = DEFAULT_BATCH_SIZE) -> List[
|
|
360
|
+
def batch(items: Iterable, size: int = DEFAULT_BATCH_SIZE) -> Iterable[List[Any]]:
|
|
357
361
|
"""
|
|
358
|
-
Takes an Iterable of items and returns a
|
|
362
|
+
Takes an Iterable of items and returns a Generator of lists of the same items,
|
|
359
363
|
batched into chunks of the provided `size`.
|
|
360
364
|
|
|
361
365
|
Use:
|
|
362
366
|
x = [1,2,3,4,5,6,7,8]
|
|
363
|
-
batch(x, size=3) -> [
|
|
367
|
+
batch(x, size=3) -> Iterator yielding [1, 2, 3], [4, 5, 6], [7, 8]
|
|
364
368
|
"""
|
|
365
|
-
|
|
366
|
-
|
|
369
|
+
it = iter(items)
|
|
370
|
+
while chunk := list(islice(it, size)):
|
|
371
|
+
yield chunk
|
|
367
372
|
|
|
368
373
|
|
|
369
374
|
def is_throttling_exception(exc: Exception) -> bool:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
cartography/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
cartography/__main__.py,sha256=y5iqUrj4BmqZfjeDT-9balzpXeMARgHeIedRMRI1gr8,100
|
|
3
|
-
cartography/_version.py,sha256=
|
|
3
|
+
cartography/_version.py,sha256=GMZa5N9JcxUAslbJ9f4PNbMORn40Ng2KlST6Ofx9W7I,525
|
|
4
4
|
cartography/cli.py,sha256=LIH9uY6LyctL8VDsrllxFvU17f1vAAhXQVsQ83wGvRI,41072
|
|
5
5
|
cartography/config.py,sha256=Magq4iNynKdIl3hYjrxlikXfVLxryf73t41L2bAyUPI,14298
|
|
6
6
|
cartography/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
cartography/stats.py,sha256=N95prYlSzY8U52VFgKIDgOWOawu5Mig4N7GcVp3binQ,4420
|
|
8
8
|
cartography/sync.py,sha256=y9ByjTesFr7VY4EsAO4C9nZ9uXdWK3H_zmg4Au9e9EQ,13401
|
|
9
|
-
cartography/util.py,sha256=
|
|
9
|
+
cartography/util.py,sha256=YYynw4hblAf7xglGzS7vuHTJXxf7u4WjAiLVM4MiOLU,15535
|
|
10
10
|
cartography/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
cartography/client/aws/__init__.py,sha256=Zj7nX21QQELwPLZlpldm_22IiXZ1VFsEFQbWX_e4okU,558
|
|
12
12
|
cartography/client/aws/ecr.py,sha256=04IXnuEAauyO5Mx9Wmt79WdUnYDhYsk2QSOnwE5_BeM,1664
|
|
@@ -14,7 +14,7 @@ cartography/client/aws/iam.py,sha256=dYsGikc36DEsSeR2XVOVFFUDwuU9yWj_EVkpgVYCFgM
|
|
|
14
14
|
cartography/client/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
cartography/client/core/tx.py,sha256=1kvITtFseyG4C8h5xUxYEvhatejMs71oE0gCjjbDHkQ,10950
|
|
16
16
|
cartography/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
cartography/data/indexes.cypher,sha256=
|
|
17
|
+
cartography/data/indexes.cypher,sha256=vbKOyt87_MAxrDnKU8cbZBuiLnMyrbadSZq6aIaT6Zo,24112
|
|
18
18
|
cartography/data/permission_relationships.yaml,sha256=RuKGGc_3ZUQ7ag0MssB8k_zaonCkVM5E8I_svBWTmGc,969
|
|
19
19
|
cartography/data/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
cartography/data/jobs/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -104,7 +104,6 @@ cartography/data/jobs/cleanup/github_repos_cleanup.json,sha256=Ko6zya72yLjLt_m-w
|
|
|
104
104
|
cartography/data/jobs/cleanup/gsuite_ingest_groups_cleanup.json,sha256=ddXAUi6aVi2htf5R1bNn6YrC3SjshjLBgWtlzBgZ9Do,961
|
|
105
105
|
cartography/data/jobs/cleanup/gsuite_ingest_users_cleanup.json,sha256=0qMLbVSTyq5F9vt4-TvVa3YAAvZCpPtzF9EwblaTxWg,353
|
|
106
106
|
cartography/data/jobs/cleanup/jamf_import_computers_cleanup.json,sha256=sEF6VSkOcFO210y3VHFO45PDYi5ZePS6xRm3GL9lW7A,248
|
|
107
|
-
cartography/data/jobs/cleanup/kubernetes_import_cleanup.json,sha256=9B9RzX3cW6NKLJMyUID5k5TfnMDJgNcG8jSkCN9d9jY,3110
|
|
108
107
|
cartography/data/jobs/cleanup/oci_import_compartments_cleanup.json,sha256=6Dqhx-yWkhWHcvsIPNAucgIj1zYlEsqr-U6Wz_ubTv8,346
|
|
109
108
|
cartography/data/jobs/cleanup/oci_import_groups_cleanup.json,sha256=4pnTRz5cRp6a5XP5eA2kvCEpll9igcCZHI7WiNPXung,547
|
|
110
109
|
cartography/data/jobs/cleanup/oci_import_groups_membership_cleanup.json,sha256=5y0X6_jFcwbPzmlh-47YP9zHd6KczuHYpzvc_RxuReU,372
|
|
@@ -153,23 +152,24 @@ cartography/intel/aws/cloudwatch.py,sha256=k9A8h__dE8N2LeF0o8lpJcNqNAaTCG1Ip3PgA
|
|
|
153
152
|
cartography/intel/aws/config.py,sha256=IIICicLQ0OTT3H3o8LDakIkA1BPUMwSyzpKonet-PaY,7658
|
|
154
153
|
cartography/intel/aws/dynamodb.py,sha256=VvvjeUgi1ZrqY9flXIQnfhhaSVSEqXXHW6T9917VLBk,5728
|
|
155
154
|
cartography/intel/aws/ecr.py,sha256=7a9EHZru6AUIGE_6MJ4h4_ZmrvBxsXaerCHtGr59lJ0,8393
|
|
156
|
-
cartography/intel/aws/ecs.py,sha256
|
|
155
|
+
cartography/intel/aws/ecs.py,sha256=-RPYdc6KC5fbaosaGsgWRkuLoHnE71euud4ZC1wGJI8,13464
|
|
156
|
+
cartography/intel/aws/efs.py,sha256=gzxss1hUXs6C6omxCaFwI3QBu5JXX8G3CTduijrN7vk,5549
|
|
157
157
|
cartography/intel/aws/eks.py,sha256=bPItyEj5q0nSDltJrr0S5MIrTPV0fK3xkqF6EV8fcqA,3759
|
|
158
158
|
cartography/intel/aws/elasticache.py,sha256=dpRJCYxgUW2ImgGMt4L54xFil8apUoJxZq6hpewXxAE,4590
|
|
159
159
|
cartography/intel/aws/elasticsearch.py,sha256=8X_Rp1zejkvXho0Zz_Cr4g-w9IpompdYRc-YS595Aso,8645
|
|
160
160
|
cartography/intel/aws/emr.py,sha256=EJoKjHQP7-F_A1trUNU05Sb42yNR1i0C9VIpGcCfAXw,3662
|
|
161
161
|
cartography/intel/aws/iam.py,sha256=bkyIzWw2OC4MHxuoCvTiZ5eEGEQhz2asiUgY_tkX2GY,34322
|
|
162
162
|
cartography/intel/aws/iam_instance_profiles.py,sha256=QUyu30xid60BFaemp-q0y9FgNsHaIQyQnQ8gHUzWC4k,2211
|
|
163
|
-
cartography/intel/aws/identitycenter.py,sha256=
|
|
164
|
-
cartography/intel/aws/inspector.py,sha256=
|
|
163
|
+
cartography/intel/aws/identitycenter.py,sha256=C2EOfwQO1zBjePAXtreUcJIy7RU__ior3liRT4SpGO8,9544
|
|
164
|
+
cartography/intel/aws/inspector.py,sha256=aqxNjnv4CJN-ZyQ16djpoQ6FmIK47vj6eAAQiwjQQv4,11436
|
|
165
165
|
cartography/intel/aws/kms.py,sha256=RtCxNG-Den-f4Il-NO3YL_-BFUmg1qFt4lNucue9SQM,12130
|
|
166
166
|
cartography/intel/aws/lambda_function.py,sha256=cutCsMnvyJB8vKUP0fHORrhijw944cXSoLKOHYdi6SM,10389
|
|
167
167
|
cartography/intel/aws/organizations.py,sha256=m5qk60N6pe7iKLN-Rtfg9aYv7OozoloSkcsuePd-RGs,4680
|
|
168
168
|
cartography/intel/aws/permission_relationships.py,sha256=LTmnHS6zk9hcdL548V5ka3Ey-6NsFjy1JYZTfRyB9Ys,15647
|
|
169
|
-
cartography/intel/aws/rds.py,sha256=
|
|
169
|
+
cartography/intel/aws/rds.py,sha256=9TQsoUQAJXj3x7laqJp06N9TQIN9ARyRiImBW9lQKOI,26574
|
|
170
170
|
cartography/intel/aws/redshift.py,sha256=FGcCzcnm1OOrbJvLqtR1DwWVn1pt4Y6_eKkTUERT7Ws,7108
|
|
171
171
|
cartography/intel/aws/resourcegroupstaggingapi.py,sha256=CebHaVLh8cr4CDYz54p5MGANPuE5Ni-_nFC78Znh4uU,10807
|
|
172
|
-
cartography/intel/aws/resources.py,sha256=
|
|
172
|
+
cartography/intel/aws/resources.py,sha256=PPXh-rSCDxP-R-9-35R8m0RCzLQvaywzld3k0rU5AmE,4010
|
|
173
173
|
cartography/intel/aws/route53.py,sha256=-AZDD4zVR5pQ_c1bx87UZuzbC0mDiI-YS_8llFMZkwI,14424
|
|
174
174
|
cartography/intel/aws/s3.py,sha256=Da_5NYvQ7MN1AIN7CK9XXlVZo0fPdNHkqBZY1JWnHH4,33598
|
|
175
175
|
cartography/intel/aws/s3accountpublicaccessblock.py,sha256=XkqHnbj9ODRcc7Rbl4swi03qvw_T-7Bnx3BHpTmlxio,4688
|
|
@@ -238,7 +238,8 @@ cartography/intel/duo/phones.py,sha256=3_MPXmR4ub4Jra0ISr6cKzC5z_Pvx7YhHojWeJJku
|
|
|
238
238
|
cartography/intel/duo/tokens.py,sha256=lVe0ByS3ncLA3FZXoqN8eLj_HMsl5s4uDT-uWlLJhSs,2407
|
|
239
239
|
cartography/intel/duo/users.py,sha256=e2eK716wVlO71O9Q9KrWZot2cHjHZ7KgC9ZW27pCDaI,4143
|
|
240
240
|
cartography/intel/duo/web_authn_credentials.py,sha256=mLWXdBe4V6fHCFotmtJmwhTSoOY6Hx87D3zI3hlL2nc,2656
|
|
241
|
-
cartography/intel/entra/__init__.py,sha256=
|
|
241
|
+
cartography/intel/entra/__init__.py,sha256=c4zkMFKRem8aRDUqjAvcNw8UwBvAv24Xq8yednlhAjU,2331
|
|
242
|
+
cartography/intel/entra/applications.py,sha256=RAvUxk_hwsKbf64ohhg3f-QuTzsT7zb8q13d9nQuyqg,13625
|
|
242
243
|
cartography/intel/entra/groups.py,sha256=PiXW28jWv1zoAYsTy_6ntAUDdQWdO2-AZvH5BfGytvg,5026
|
|
243
244
|
cartography/intel/entra/ou.py,sha256=iv5UgRcPIaUZ8DdveKTmMkz0thEPYichpL9XntbHiPo,3803
|
|
244
245
|
cartography/intel/entra/users.py,sha256=Zk9k8A3XeE-ZgUhY9fwN7GYhzbguGE-nHNOm6kvOCpo,7557
|
|
@@ -261,12 +262,13 @@ cartography/intel/jamf/computers.py,sha256=z0aw1Kb0ojE5ppnqH-Ykm5QhyiZdKwr7ELBMw
|
|
|
261
262
|
cartography/intel/jamf/util.py,sha256=ZBOkFZGS_xMgaEAtH1JpBoRYbjg9PpPih6W7bKN9g7k,1036
|
|
262
263
|
cartography/intel/kandji/__init__.py,sha256=Xy41zkcRWWs5NjCc7lydjc_C_ylcTKHwqPLY0fecUyM,1096
|
|
263
264
|
cartography/intel/kandji/devices.py,sha256=9CbxEHTC-0bDyLH-cR0Gn-s17irMr8ir35PRavBVSsU,2844
|
|
264
|
-
cartography/intel/kubernetes/__init__.py,sha256=
|
|
265
|
-
cartography/intel/kubernetes/
|
|
266
|
-
cartography/intel/kubernetes/
|
|
267
|
-
cartography/intel/kubernetes/
|
|
268
|
-
cartography/intel/kubernetes/
|
|
269
|
-
cartography/intel/kubernetes/
|
|
265
|
+
cartography/intel/kubernetes/__init__.py,sha256=f8NwsEqYRN3nszSRyvkbt67dHJVF1vcMR5EYxS2cCAU,1964
|
|
266
|
+
cartography/intel/kubernetes/clusters.py,sha256=GgtsHRMUnNFd55QEyvq-PuHR4HC388yhQbL44W_iJPo,2515
|
|
267
|
+
cartography/intel/kubernetes/namespaces.py,sha256=i2OER_NIPb9h9MVy1GIqQKKTd18-k7Apz6ReHJpWuzI,2497
|
|
268
|
+
cartography/intel/kubernetes/pods.py,sha256=7RqqqDC1V3UJJDXg1XyCI-LhkhIpl09TytBPL1EAOUE,5420
|
|
269
|
+
cartography/intel/kubernetes/secrets.py,sha256=sGqyep28-WD0EhbMKY5iWqfRJt0SrLBkyvf5vxr7pjE,3256
|
|
270
|
+
cartography/intel/kubernetes/services.py,sha256=iFWVWBE0W7Vs6j09rd042Jxv4YIcqrQDZZMHHMRNhnQ,4927
|
|
271
|
+
cartography/intel/kubernetes/util.py,sha256=2A6HHXxubrrwrg13QhGmjDUZS-iZzj4XmQU4jiMRsNo,4853
|
|
270
272
|
cartography/intel/lastpass/__init__.py,sha256=Cerm63CukrYdjYhnjU9HDUglmj3OLdmDDIMGREfVxWg,1055
|
|
271
273
|
cartography/intel/lastpass/users.py,sha256=ehBEdC8OP0hG9Zxe0LQ15gphFf37UezWrdaKySGy9kg,2485
|
|
272
274
|
cartography/intel/oci/__init__.py,sha256=0zP8ORYZptBY35o1c-4gqNz6wXP5KY-fZRDuwyKOAFM,8200
|
|
@@ -362,6 +364,17 @@ cartography/models/aws/ec2/securitygroup_networkinterface.py,sha256=2MBxYXxuq_L0
|
|
|
362
364
|
cartography/models/aws/ec2/subnet_instance.py,sha256=gAw2TJIlBnBNWn83l60N_Pi5Ni4oNe2lbZpg-u39BU8,2818
|
|
363
365
|
cartography/models/aws/ec2/subnet_networkinterface.py,sha256=YCfribtM4gEIb2Jan3xoBZke_IeNnejB95unfnIrX3Y,3739
|
|
364
366
|
cartography/models/aws/ec2/volumes.py,sha256=ITSJ_1HgrU5wTF1zZV8sYRZsI0QzktoHkvTgpnfM1hI,4547
|
|
367
|
+
cartography/models/aws/ecs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
368
|
+
cartography/models/aws/ecs/clusters.py,sha256=uu-UzkSbpLu4UG5I6NsFMaThrPYl6jYe71EX8baMy1Q,2845
|
|
369
|
+
cartography/models/aws/ecs/container_definitions.py,sha256=ocJMyl6wfxbW3aPrR6xwzqP9VMpkanKA3ghqcM5BWL0,4169
|
|
370
|
+
cartography/models/aws/ecs/container_instances.py,sha256=LhBkyEWfOSejD57AERoQYVECJxwUMF09zPhrGYvnqwk,3632
|
|
371
|
+
cartography/models/aws/ecs/containers.py,sha256=9_aeKnd5ozHYTREIvfztCC_idUk7MFRRCQq2bUir724,3302
|
|
372
|
+
cartography/models/aws/ecs/services.py,sha256=YPVTS0BB3X6tFCqIX3V1AZXcnHQEADusQkErd88oH7o,4964
|
|
373
|
+
cartography/models/aws/ecs/task_definitions.py,sha256=zZh2SHXEAimp9YgYf1wRU-wNs_4LWNk7uNzDoms8Sy8,4182
|
|
374
|
+
cartography/models/aws/ecs/tasks.py,sha256=6r2WZDc26LGR2j-U5s5v4d4PbMIvEDSkLAbTtpFdrUM,5013
|
|
375
|
+
cartography/models/aws/efs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
376
|
+
cartography/models/aws/efs/file_system.py,sha256=6BNzjQJKZ-rYlDLw1UvDBhVRKre07-9EkcW9xvR3Wh0,2842
|
|
377
|
+
cartography/models/aws/efs/mount_target.py,sha256=Bdd2zgWp9HtsK9EmEAgoIYpT9AOTs5wzH3sgCq4HLMU,3347
|
|
365
378
|
cartography/models/aws/eks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
366
379
|
cartography/models/aws/eks/clusters.py,sha256=OthI554MrYNSl-p6ArMJsSH43xKPRDSnEmvJEmXwLeU,2327
|
|
367
380
|
cartography/models/aws/iam/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -417,6 +430,8 @@ cartography/models/duo/token.py,sha256=WTV7Lv-_X1HH_tmyiK0dC0zfwkaHyXcHWH6XDPThv
|
|
|
417
430
|
cartography/models/duo/user.py,sha256=Yqc4BUZ8DlFrYtJwHYn-QtID_T5Plc7TkQvJ3Wq8PsI,6570
|
|
418
431
|
cartography/models/duo/web_authn_credential.py,sha256=nCdonZFyShuE5-CnI2Vxiu5BZ07TWJ5dZ7wx2Oe-0QE,2993
|
|
419
432
|
cartography/models/entra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
433
|
+
cartography/models/entra/app_role_assignment.py,sha256=BvZBWq3jd1Fw448dmIXQpHT-mBOqevNY_my-iQHpZp8,4618
|
|
434
|
+
cartography/models/entra/application.py,sha256=ZNVY0a0T2nmdoVj2i5Xri0J8oIR5d9HVcLAl0yLG6s8,1968
|
|
420
435
|
cartography/models/entra/group.py,sha256=d8QLBzqje4MkdN2uC4LXSxjUQ8_2T_cv4YbrPGfZ994,3809
|
|
421
436
|
cartography/models/entra/ou.py,sha256=YmtW1Cp_XX29uzbunhEGl073AzV6PZsQtLs_MR-ACNU,2056
|
|
422
437
|
cartography/models/entra/tenant.py,sha256=abpNTvOtXHgdrU-y7q6jt--odcq1eRsT2j5nMdVy_Gw,1793
|
|
@@ -429,6 +444,13 @@ cartography/models/github/users.py,sha256=ltCiOCuK6luBXVV47LSoaPgAPdZyYMUz2nJXjL
|
|
|
429
444
|
cartography/models/kandji/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
430
445
|
cartography/models/kandji/device.py,sha256=8K1nDL7Zi86zWFHGuik7FoD6qRqWU1r9p_eWcTFydBU,2262
|
|
431
446
|
cartography/models/kandji/tenant.py,sha256=-tevAOjURLgBm0QS4kRv9iGJaTjJMzOyX36lMtYeCDU,690
|
|
447
|
+
cartography/models/kubernetes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
448
|
+
cartography/models/kubernetes/clusters.py,sha256=mg1LcSQvd-dHa4dKZeoMZq4M9gh1rI-9fqf8MpHhR6M,1181
|
|
449
|
+
cartography/models/kubernetes/containers.py,sha256=xRys7sm0uI5ZFEd8_6nSZRRLZEysHJow9B0bkWSeJik,4570
|
|
450
|
+
cartography/models/kubernetes/namespaces.py,sha256=2RSjIeyPU_-ouG-rbvZhC5c5D-jMuKxjfBt5-UN_VOY,2268
|
|
451
|
+
cartography/models/kubernetes/pods.py,sha256=z2FXYomtXLoaqMwq0FqJFOcu1yX_PpbqfE_QW_Tigdg,3370
|
|
452
|
+
cartography/models/kubernetes/secrets.py,sha256=D18RvHWB6HQ2iyqXyX2PxGVToJlOf4werCDU7aPs69w,3384
|
|
453
|
+
cartography/models/kubernetes/services.py,sha256=OIIYH45HKbAeEQVMMCJXdzemnGWnyfq-mYqk4Te1qE8,4529
|
|
432
454
|
cartography/models/lastpass/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
433
455
|
cartography/models/lastpass/tenant.py,sha256=qZX0Me1WezBpWpSYhjlVp4N4x3z7p2wmwe0fUNl-s7M,618
|
|
434
456
|
cartography/models/lastpass/user.py,sha256=Uky6fNhjHBD3GhnTijiaBgaKtofY1B7Assgtq-_dk8M,3518
|
|
@@ -459,9 +481,9 @@ cartography/models/trivy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
459
481
|
cartography/models/trivy/findings.py,sha256=SgI_h1aRyR20uAHvuXIZ1T6r4IZJt6SVhxRaF2bTsm0,3085
|
|
460
482
|
cartography/models/trivy/fix.py,sha256=ho9ENVl9HSXqyggyCwR6ilkOBKDxpQ7rGibo_j21NA4,2587
|
|
461
483
|
cartography/models/trivy/package.py,sha256=IwO1RZZ-MFRtNbt8Cq6YFl6fdNJMFmULnJkkK8Q4rL4,2809
|
|
462
|
-
cartography-0.
|
|
463
|
-
cartography-0.
|
|
464
|
-
cartography-0.
|
|
465
|
-
cartography-0.
|
|
466
|
-
cartography-0.
|
|
467
|
-
cartography-0.
|
|
484
|
+
cartography-0.106.0rc1.dist-info/licenses/LICENSE,sha256=kvLEBRYaQ1RvUni6y7Ti9uHeooqnjPoo6n_-0JO1ETc,11351
|
|
485
|
+
cartography-0.106.0rc1.dist-info/METADATA,sha256=9XcrmhSHjFUjYenD-w_9n7_q-vZTVf5XLlvVVfh6zYE,12409
|
|
486
|
+
cartography-0.106.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
487
|
+
cartography-0.106.0rc1.dist-info/entry_points.txt,sha256=GVIAWD0o0_K077qMA_k1oZU4v-M0a8GLKGJR8tZ-qH8,112
|
|
488
|
+
cartography-0.106.0rc1.dist-info/top_level.txt,sha256=BHqsNJQiI6Q72DeypC1IINQJE59SLhU4nllbQjgJi9g,12
|
|
489
|
+
cartography-0.106.0rc1.dist-info/RECORD,,
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"statements": [
|
|
3
|
-
{
|
|
4
|
-
"query": "MATCH (c:KubernetesContainer) WHERE c.lastupdated <> $UPDATE_TAG WITH c LIMIT $LIMIT_SIZE DETACH DELETE (c)",
|
|
5
|
-
"iterative": true,
|
|
6
|
-
"iterationsize": 100
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"query": "MATCH (p:KubernetesPod) WHERE p.lastupdated <> $UPDATE_TAG WITH p LIMIT $LIMIT_SIZE DETACH DELETE (p)",
|
|
10
|
-
"iterative": true,
|
|
11
|
-
"iterationsize": 100
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"query": "MATCH (s:KubernetesNamespace) WHERE s.lastupdated <> $UPDATE_TAG WITH s LIMIT $LIMIT_SIZE DETACH DELETE (s)",
|
|
15
|
-
"iterative": true,
|
|
16
|
-
"iterationsize": 100
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"query": "MATCH (c:KubernetesCluster) WHERE c.lastupdated <> $UPDATE_TAG WITH c LIMIT $LIMIT_SIZE DETACH DELETE (c)",
|
|
20
|
-
"iterative": true,
|
|
21
|
-
"iterationsize": 100
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"query": "MATCH (s:KubernetesSecret) WHERE s.lastupdated <> $UPDATE_TAG WITH s LIMIT $LIMIT_SIZE DETACH DELETE (s)",
|
|
25
|
-
"iterative": true,
|
|
26
|
-
"iterationsize": 100
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"query": "MATCH (s:KubernetesService) WHERE s.lastupdated <> $UPDATE_TAG WITH s LIMIT $LIMIT_SIZE DETACH DELETE (s)",
|
|
30
|
-
"iterative": true,
|
|
31
|
-
"iterationsize": 100
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"query": "MATCH (:KubernetesPod)-[rel:HAS_CONTAINER]->(:KubernetesContainer) WHERE rel.lastupdated <> $UPDATE_TAG WITH rel LIMIT $LIMIT_SIZE DELETE (rel)",
|
|
35
|
-
"iterative": true,
|
|
36
|
-
"iterationsize": 100
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"query": "MATCH (:KubernetesNamespace)-[rel:HAS_POD]->(:KubernetesPod) WHERE rel.lastupdated <> $UPDATE_TAG WITH rel LIMIT $LIMIT_SIZE DELETE (rel)",
|
|
40
|
-
"iterative": true,
|
|
41
|
-
"iterationsize": 100
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"query": "MATCH (:KubernetesCluster)-[rel:HAS_POD]->(:KubernetesPod) WHERE rel.lastupdated <> $UPDATE_TAG WITH rel LIMIT $LIMIT_SIZE DELETE (rel)",
|
|
45
|
-
"iterative": true,
|
|
46
|
-
"iterationsize": 100
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"query": "MATCH (:KubernetesNamespace)-[rel:HAS_SECRET]->(:KubernetesSecret) WHERE rel.lastupdated <> $UPDATE_TAG WITH rel LIMIT $LIMIT_SIZE DELETE (rel)",
|
|
50
|
-
"iterative": true,
|
|
51
|
-
"iterationsize": 100
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"query": "MATCH (:KubernetesNamespace)-[rel:HAS_SERVICE]->(:KubernetesService) WHERE rel.lastupdated <> $UPDATE_TAG WITH rel LIMIT $LIMIT_SIZE DELETE (rel)",
|
|
55
|
-
"iterative": true,
|
|
56
|
-
"iterationsize": 100
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"query": "MATCH (:KubernetesCluster)-[rel:HAS_NAMESPACE]->(:KubernetesNamespace) WHERE rel.lastupdated <> $UPDATE_TAG WITH rel LIMIT $LIMIT_SIZE DELETE (rel)",
|
|
60
|
-
"iterative": true,
|
|
61
|
-
"iterationsize": 100
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"query": "MATCH (:KubernetesService)-[rel:SERVES_POD]->(:KubernetesPod) WHERE rel.lastupdated <> $UPDATE_TAG WITH rel LIMIT $LIMIT_SIZE DELETE (rel)",
|
|
65
|
-
"iterative": true,
|
|
66
|
-
"iterationsize": 100
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"name": "cleanup kubernetes"
|
|
70
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|