@opensoha/contracts 0.1.26 → 0.1.29
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.
- package/COMPATIBILITY.md +14 -3
- package/README.md +8 -9
- package/auth/catalog_generated.go +2 -2
- package/auth/permission-catalog.json +481 -1
- package/compat/consumer-revisions.json +1 -1
- package/compat/json-schema-ecosystem-0.1.0.json +1 -1
- package/compat/openapi-loose-boundaries-0.1.0.json +1 -1
- package/endpointcontrol/decode.go +64 -0
- package/endpointcontrol/models.go +138 -0
- package/endpointcontrol/models_test.go +51 -0
- package/endpointcontrol/protocol.schema.json +397 -0
- package/fixtures/json-schema/endpoint-controls/invalid/controls.json +16 -0
- package/fixtures/json-schema/endpoint-controls/invalid/missing-channel-decision.json +15 -0
- package/fixtures/json-schema/endpoint-controls/invalid/receipt-content.json +36 -0
- package/fixtures/json-schema/endpoint-controls/valid/controls.json +16 -0
- package/fixtures/json-schema/endpoint-controls/valid/receipt.json +35 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/eap-activate-bad-fingerprint.json +14 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/eap-gateway-request.json +14 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/eap-private-key-request.json +15 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/eap-profile-without-eap-credential.json +22 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/endpoint-dns-observation.json +25 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/gateway-presence.json +22 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/mihomo-protection-zero-version.json +45 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/presence-raw-key.json +23 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/presence-zero-sequence.json +22 -0
- package/fixtures/json-schema/network-runtime-protocol/invalid/workload-wide-vpn.json +17 -0
- package/fixtures/json-schema/network-runtime-protocol/valid/eap-certificate-activate.json +14 -0
- package/fixtures/json-schema/network-runtime-protocol/valid/eap-certificate-request.json +14 -0
- package/fixtures/json-schema/network-runtime-protocol/valid/eap-profile-enrollment.json +24 -0
- package/fixtures/json-schema/network-runtime-protocol/valid/endpoint-presence.json +22 -0
- package/fixtures/json-schema/network-runtime-protocol/valid/ipv6-configuration.json +102 -0
- package/fixtures/json-schema/network-runtime-protocol/valid/mihomo-protected-policy.json +45 -0
- package/fixtures/json-schema/network-runtime-protocol/valid/site-dns-ipv6.json +25 -0
- package/fixtures/json-schema/network-runtime-protocol/valid/workload-direct-ztna.json +20 -0
- package/fixtures/openapi/DLPShadowDecision/invalid/step-up-type.json +14 -0
- package/fixtures/openapi/DLPShadowDecision/valid/archive-v2.json +14 -0
- package/fixtures/openapi/DLPShadowDecision/valid/step-up.json +14 -0
- package/fixtures/openapi/DLPShadowInput/invalid/self-reported-result.json +7 -0
- package/fixtures/openapi/DLPShadowInput/invalid/too-many-samples.json +14 -0
- package/fixtures/openapi/DLPShadowInput/valid/bounded.json +7 -0
- package/fixtures/openapi/DockerVolumeDLPAppealInput/invalid/p4-response.json +3 -0
- package/fixtures/openapi/DockerVolumeDLPAppealInput/valid/p4-response.json +3 -0
- package/fixtures/openapi/DockerVolumeDLPAppealReviewInput/invalid/p4-response.json +5 -0
- package/fixtures/openapi/DockerVolumeDLPAppealReviewInput/valid/p4-response.json +5 -0
- package/fixtures/openapi/DockerVolumeDLPAuthorizationInput/invalid/p4-response.json +3 -0
- package/fixtures/openapi/DockerVolumeDLPAuthorizationInput/valid/p4-response.json +3 -0
- package/fixtures/openapi/DockerVolumeDLPContent/invalid/archive-unsupported-channel.json +9 -0
- package/fixtures/openapi/DockerVolumeDLPContent/invalid/p4.json +6 -0
- package/fixtures/openapi/DockerVolumeDLPContent/invalid/step-up-audit.json +9 -0
- package/fixtures/openapi/DockerVolumeDLPContent/invalid/unavailable-engine.json +9 -0
- package/fixtures/openapi/DockerVolumeDLPContent/invalid/unknown-data-level.json +12 -0
- package/fixtures/openapi/DockerVolumeDLPContent/valid/classified-rule.json +16 -0
- package/fixtures/openapi/DockerVolumeDLPContent/valid/p4.json +8 -0
- package/fixtures/openapi/DockerVolumeDLPContent/valid/step-up.json +9 -0
- package/fixtures/openapi/DockerVolumeDLPDecision/invalid/p4.json +9 -0
- package/fixtures/openapi/DockerVolumeDLPDecision/invalid/step-up-type.json +12 -0
- package/fixtures/openapi/DockerVolumeDLPDecision/valid/archive-v2.json +12 -0
- package/fixtures/openapi/DockerVolumeDLPDecision/valid/p4.json +11 -0
- package/fixtures/openapi/DockerVolumeDLPDecision/valid/step-up.json +12 -0
- package/fixtures/openapi/DockerVolumeDLPSaveInput/invalid/p4.json +11 -0
- package/fixtures/openapi/DockerVolumeDLPSaveInput/valid/p4.json +11 -0
- package/fixtures/openapi/DockerVolumeFileReadInput/invalid/p4-response.json +5 -0
- package/fixtures/openapi/DockerVolumeFileReadInput/valid/p4-response.json +4 -0
- package/fixtures/openapi/EndpointDeviceInput/invalid/reported-management.json +5 -0
- package/fixtures/openapi/EndpointDeviceInput/valid/management-state.json +5 -0
- package/fixtures/openapi/EndpointDeviceRegistrationInput/invalid/self-promote-management.json +5 -0
- package/fixtures/openapi/KubernetesClusterRegistrationRequest/invalid/metric-cluster-value-length.json +3 -0
- package/fixtures/openapi/KubernetesClusterRegistrationRequest/invalid/metric-cluster-value-type.json +3 -0
- package/fixtures/openapi/KubernetesClusterRegistrationRequest/valid/metric-cluster-alias.json +5 -0
- package/fixtures/openapi/KubernetesClusterRegistrationRequest/valid/metric-cluster-reset.json +3 -0
- package/fixtures/openapi/KubernetesHelmReleaseValuesUpdateInput/invalid/revision-overflow.json +4 -0
- package/fixtures/openapi/KubernetesHelmReleaseValuesUpdateInput/valid/legacy.json +3 -0
- package/fixtures/openapi/KubernetesHelmReleaseValuesUpdateInput/valid/observed-revision.json +4 -0
- package/fixtures/openapi/KubernetesJobDetail/invalid/execution-observation.json +23 -0
- package/fixtures/openapi/KubernetesJobDetail/valid/execution-observation.json +23 -0
- package/fixtures/openapi/KubernetesNode/invalid/labels.json +10 -0
- package/fixtures/openapi/KubernetesNode/valid/labels.json +11 -0
- package/fixtures/openapi/KubernetesPodListEnvelope/invalid/empty-uid.json +13 -0
- package/fixtures/openapi/KubernetesPodListEnvelope/invalid/invalid-container-state.json +20 -0
- package/fixtures/openapi/KubernetesPodListEnvelope/invalid/missing-container-ready.json +19 -0
- package/fixtures/openapi/KubernetesPodListEnvelope/valid/container-statuses.json +67 -0
- package/fixtures/openapi/KubernetesPodListEnvelope/valid/running-pod.json +1 -0
- package/fixtures/openapi/KubernetesPrometheusDetail/invalid/metric-cluster-value-type.json +4 -0
- package/fixtures/openapi/KubernetesPrometheusDetail/valid/metric-cluster-alias.json +5 -0
- package/fixtures/openapi/KubernetesResourceGraphEnvelope/invalid/network-edge-source-payload.json +73 -0
- package/fixtures/openapi/KubernetesResourceGraphEnvelope/valid/network-edge-facts.json +67 -0
- package/fixtures/openapi/KubernetesSecretCertificate/invalid/secret-data.json +1 -0
- package/fixtures/openapi/KubernetesSecretCertificate/invalid/status.json +1 -0
- package/fixtures/openapi/KubernetesSecretCertificate/valid/available.json +1 -0
- package/fixtures/openapi/KubernetesSecretCertificate/valid/missing.json +1 -0
- package/fixtures/openapi/ManagedContentPasteInput/invalid/boundary.json +5 -0
- package/fixtures/openapi/ManagedContentPasteInput/valid/boundary.json +6 -0
- package/fixtures/openapi/ManagedContentPolicy/invalid/self-reported-allow.json +8 -0
- package/fixtures/openapi/ManagedContentPolicy/invalid/step-up-audit.json +8 -0
- package/fixtures/openapi/ManagedContentPolicy/invalid/unknown-extractor.json +8 -0
- package/fixtures/openapi/ManagedContentPolicy/valid/archive-v2.json +8 -0
- package/fixtures/openapi/ManagedContentPolicy/valid/network-and-level.json +10 -0
- package/fixtures/openapi/ManagedContentPolicy/valid/step-up.json +8 -0
- package/fixtures/openapi/ManagedContentReviewInput/invalid/boundary.json +5 -0
- package/fixtures/openapi/ManagedContentReviewInput/valid/boundary.json +5 -0
- package/fixtures/openapi/ManagedContentSaveInput/invalid/boundary.json +14 -0
- package/fixtures/openapi/ManagedContentSaveInput/valid/boundary.json +16 -0
- package/fixtures/openapi/ManagedContentUploadInput/invalid/boundary.json +7 -0
- package/fixtures/openapi/ManagedContentUploadInput/valid/boundary.json +6 -0
- package/fixtures/openapi/NetworkAccessPolicyInput/invalid/unknown-management-state.json +35 -0
- package/fixtures/openapi/NetworkAccessPolicyInput/valid/managed-device.json +35 -0
- package/fixtures/openapi/NetworkAdmissionPreviewRequest/invalid/deviceId-characters.json +4 -0
- package/fixtures/openapi/NetworkAdmissionPreviewRequest/invalid/nasBindingId-characters.json +4 -0
- package/fixtures/openapi/NetworkAdmissionPreviewRequest/invalid/subject-override.json +1 -0
- package/fixtures/openapi/NetworkAdmissionPreviewRequest/valid/device-nas.json +1 -0
- package/fixtures/openapi/NetworkAdmissionPreviewResult/invalid/missing-attributeVersion.json +13 -0
- package/fixtures/openapi/NetworkAdmissionPreviewResult/invalid/missing-evaluatedAt.json +13 -0
- package/fixtures/openapi/NetworkAdmissionPreviewResult/valid/versioned.json +14 -0
- package/fixtures/openapi/NetworkConflictAnalysisRequest/invalid/missing-runtime-ranges.json +1 -0
- package/fixtures/openapi/NetworkConflictAnalysisRequest/invalid/unknown-source-type.json +9 -0
- package/fixtures/openapi/NetworkConflictAnalysisRequest/valid/empty-runtime-ranges.json +3 -0
- package/fixtures/openapi/NetworkConflictAnalysisRequest/{invalid → valid}/ipv6-range.json +1 -1
- package/fixtures/openapi/NetworkEAPServerTrust/invalid/no-server-validation.json +5 -0
- package/fixtures/openapi/NetworkEAPServerTrust/valid/named-server.json +9 -0
- package/fixtures/openapi/NetworkEndpointResponsePolicyInput/invalid/all-sites-implicit.json +45 -0
- package/fixtures/openapi/NetworkEndpointResponsePolicyInput/invalid/unbounded-stages.json +54 -0
- package/fixtures/openapi/NetworkEndpointResponsePolicyInput/invalid/zero-heartbeat.json +47 -0
- package/fixtures/openapi/NetworkEndpointResponsePolicyInput/valid/staged-protection.json +47 -0
- package/fixtures/openapi/NetworkEndpointResponseRestoreInput/invalid/missing-reason.json +3 -0
- package/fixtures/openapi/NetworkEndpointResponseRestoreInput/valid/expected-current.json +4 -0
- package/fixtures/openapi/NetworkPolicyPreviewResult/invalid/attribute-version.json +1 -0
- package/fixtures/openapi/NetworkPolicyPreviewResult/valid/admission-version.json +1 -0
- package/fixtures/openapi/NetworkPolicySubjects/invalid/duplicate-role.json +1 -0
- package/fixtures/openapi/NetworkPolicySubjects/invalid/role-characters.json +5 -0
- package/fixtures/openapi/NetworkPolicySubjects/valid/role-bound.json +1 -0
- package/fixtures/openapi/NetworkProxyConfigurationInput/invalid/missing-content.json +1 -0
- package/fixtures/openapi/NetworkProxyConfigurationPatchInput/invalid/bad-binding-id.json +9 -0
- package/fixtures/openapi/NetworkProxyConfigurationPatchInput/invalid/empty-content.json +1 -0
- package/fixtures/openapi/NetworkProxyConfigurationPatchInput/valid/binding-only.json +11 -0
- package/fixtures/openapi/NetworkProxyConfigurationPatchInput/valid/clear-binding-disabled.json +5 -0
- package/fixtures/openapi/NetworkProxyConfigurationPatchInput/valid/enabled.json +1 -0
- package/fixtures/openapi/NetworkSiteInput/invalid/unknown-governance.json +6 -0
- package/fixtures/openapi/NetworkSiteInput/valid/restricted-unmanaged.json +6 -0
- package/gen/go/sohaapi/client.go +1 -1
- package/gen/go/sohaapi/client_test.go +13 -0
- package/gen/go/sohaapi/kubernetes_workload_optional_test.go +40 -0
- package/gen/go/sohaapi/pod_status_compat_test.go +36 -0
- package/gen/go/sohaapi/proxy_configuration_test.go +38 -0
- package/gen/go/sohaapi/types.go +3222 -260
- package/gen/ts/sohaapi/index.ts +15506 -10104
- package/helmrelease/runtime/values_upgrade.go +78 -0
- package/helmrelease/runtime/values_upgrade_test.go +123 -0
- package/helmrelease/values_update.go +31 -0
- package/network/README.md +34 -0
- package/network/network-radius-accounting.schema.json +4 -1
- package/network/network-runtime-protocol.schema.json +2166 -317
- package/network/proxy-runtime.schema.json +482 -67
- package/openapi/network_control_test.go +64 -0
- package/openapi/soha-api.json +50412 -41310
- package/openapi/soha-api.yaml +16859 -10699
- package/openapi/spec_generated.go +3 -3
- package/package.json +6 -3
- package/proxytransport/handler.go +271 -0
- package/proxytransport/probe.go +30 -0
- package/proxytransport/scope.go +89 -0
- package/proxytransport/transport_test.go +60 -0
- package/resource/agent_profiles.go +9 -15
- package/resource/agent_profiles_test.go +9 -3
- package/resource/custom_graph_page.go +18 -0
- package/resource/models.go +102 -57
- package/resource/network_topology.go +22 -0
- package/resource/network_topology_projection.go +36 -22
- package/resource/network_topology_projection_test.go +4 -0
- package/resource/network_topology_test.go +20 -0
- package/resource/network_topology_validation.go +5 -0
- package/resource/observed_workload.go +18 -0
- package/resource/pod_status_test.go +22 -0
- package/resource/rbac_graph.go +4 -0
- package/resource/rollout_optional_test.go +33 -0
- package/resource/runtime/network_relationship_primitives.go +66 -0
- package/resource/runtime/network_relationship_primitives_test.go +147 -0
- package/resource/runtime/network_topology.go +17 -5
- package/resource/runtime/network_topology_builder.go +405 -0
- package/resource/runtime/network_topology_builder_backends.go +195 -0
- package/resource/runtime/network_topology_builder_gateway_l4_test.go +86 -0
- package/resource/runtime/network_topology_builder_ingress.go +302 -0
- package/resource/runtime/network_topology_builder_legacy.go +66 -0
- package/resource/runtime/network_topology_builder_providers.go +242 -0
- package/resource/runtime/network_topology_builder_test.go +186 -0
- package/resource/runtime/network_topology_declarations.go +329 -0
- package/resource/runtime/resource_edit.go +22 -0
- package/resource/runtime/resource_edit_test.go +32 -0
- package/resource/runtime/resource_graph_collect.go +325 -0
- package/resource/runtime/resource_graph_configuration.go +59 -0
- package/resource/runtime/resource_graph_configuration_collect.go +198 -0
- package/resource/runtime/resource_graph_configuration_test.go +470 -0
- package/resource/runtime/resource_graph_custom_page.go +159 -0
- package/resource/runtime/resource_graph_custom_root.go +132 -0
- package/resource/runtime/resource_graph_custom_root_test.go +197 -0
- package/resource/runtime/resource_graph_enrichment.go +417 -0
- package/resource/runtime/resource_graph_enrichment_hpa_test.go +117 -0
- package/resource/runtime/resource_graph_enrichment_test.go +201 -0
- package/resource/runtime/resource_graph_metadata.go +125 -0
- package/resource/runtime/resource_graph_metadata_test.go +204 -0
- package/resource/runtime/resource_graph_network.go +224 -0
- package/resource/runtime/resource_graph_network_collect.go +174 -0
- package/resource/runtime/resource_graph_network_collect_test.go +147 -0
- package/resource/runtime/resource_graph_network_test.go +342 -0
- package/resource/runtime/resource_graph_rbac.go +278 -0
- package/resource/runtime/resource_graph_rbac_test.go +372 -0
- package/resource/runtime/resource_graph_rules.go +834 -0
- package/resource/runtime/resource_graph_storage.go +144 -0
- package/resource/runtime/resource_graph_storage_collect.go +163 -0
- package/resource/runtime/resource_graph_storage_test.go +397 -0
- package/resource/runtime/resource_graph_test.go +627 -0
- package/resource/runtime/secret_certificate.go +44 -0
- package/resource/runtime/secret_certificate_test.go +87 -0
- package/resource/storage_graph.go +4 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"enabled": true,
|
|
3
|
+
"mode": "block",
|
|
4
|
+
"detectors": [
|
|
5
|
+
"private_key"
|
|
6
|
+
],
|
|
7
|
+
"rules": [
|
|
8
|
+
{
|
|
9
|
+
"id": "internal",
|
|
10
|
+
"expression": "INTERNAL",
|
|
11
|
+
"dataLevel": "internal"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"minimumDataLevel": "confidential",
|
|
15
|
+
"detectorVersion": "content-dlp-text-v1"
|
|
16
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{
|
|
2
|
+
"prometheusClusterLabelValue": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
3
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "task117-demo-failed",
|
|
3
|
+
"namespace": "task117-jobs-demo",
|
|
4
|
+
"completions": 1,
|
|
5
|
+
"completionTarget": 1,
|
|
6
|
+
"parallelism": 1,
|
|
7
|
+
"succeeded": 0,
|
|
8
|
+
"failed": 1,
|
|
9
|
+
"active": 0,
|
|
10
|
+
"suspend": false,
|
|
11
|
+
"backoffLimit": -1,
|
|
12
|
+
"activeDeadlineSeconds": 3600,
|
|
13
|
+
"ttlSecondsAfterFinished": 604800,
|
|
14
|
+
"startTime": "2026-11-01T02:00:00Z",
|
|
15
|
+
"conditions": [
|
|
16
|
+
{
|
|
17
|
+
"type": "Failed",
|
|
18
|
+
"status": "True",
|
|
19
|
+
"reason": "BackoffLimitExceeded",
|
|
20
|
+
"lastTransitionTime": "2026-11-01T02:00:20Z"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "task117-demo-failed",
|
|
3
|
+
"namespace": "task117-jobs-demo",
|
|
4
|
+
"completions": 1,
|
|
5
|
+
"completionTarget": 1,
|
|
6
|
+
"parallelism": 1,
|
|
7
|
+
"succeeded": 0,
|
|
8
|
+
"failed": 1,
|
|
9
|
+
"active": 0,
|
|
10
|
+
"suspend": false,
|
|
11
|
+
"backoffLimit": 0,
|
|
12
|
+
"activeDeadlineSeconds": 3600,
|
|
13
|
+
"ttlSecondsAfterFinished": 604800,
|
|
14
|
+
"startTime": "2026-11-01T02:00:00Z",
|
|
15
|
+
"conditions": [
|
|
16
|
+
{
|
|
17
|
+
"type": "Failed",
|
|
18
|
+
"status": "True",
|
|
19
|
+
"reason": "BackoffLimitExceeded",
|
|
20
|
+
"lastTransitionTime": "2026-11-01T02:00:20Z"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": [
|
|
3
|
+
{
|
|
4
|
+
"name": "api",
|
|
5
|
+
"namespace": "apps",
|
|
6
|
+
"phase": "Running",
|
|
7
|
+
"readyContainers": "1/1",
|
|
8
|
+
"restarts": 0,
|
|
9
|
+
"ageSeconds": 60,
|
|
10
|
+
"containerStatuses": [
|
|
11
|
+
{
|
|
12
|
+
"name": "api",
|
|
13
|
+
"ready": true,
|
|
14
|
+
"state": "healthy",
|
|
15
|
+
"kind": "container"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": [
|
|
3
|
+
{
|
|
4
|
+
"name": "api",
|
|
5
|
+
"namespace": "apps",
|
|
6
|
+
"phase": "Pending",
|
|
7
|
+
"readyContainers": "0/1",
|
|
8
|
+
"restarts": 0,
|
|
9
|
+
"ageSeconds": 60,
|
|
10
|
+
"containerStatuses": [
|
|
11
|
+
{
|
|
12
|
+
"name": "api",
|
|
13
|
+
"state": "unknown",
|
|
14
|
+
"kind": "container"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": [
|
|
3
|
+
{
|
|
4
|
+
"name": "api",
|
|
5
|
+
"namespace": "apps",
|
|
6
|
+
"phase": "Running",
|
|
7
|
+
"readyContainers": "1/3",
|
|
8
|
+
"restarts": 2,
|
|
9
|
+
"ageSeconds": 60,
|
|
10
|
+
"qosClass": "Burstable",
|
|
11
|
+
"containerStatuses": [
|
|
12
|
+
{
|
|
13
|
+
"name": "migrate",
|
|
14
|
+
"kind": "init",
|
|
15
|
+
"ready": false,
|
|
16
|
+
"state": "terminated",
|
|
17
|
+
"reason": "Completed",
|
|
18
|
+
"exitCode": 0
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "proxy-init",
|
|
22
|
+
"kind": "sidecar",
|
|
23
|
+
"ready": true,
|
|
24
|
+
"state": "running"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "api",
|
|
28
|
+
"ready": true,
|
|
29
|
+
"state": "running",
|
|
30
|
+
"kind": "container"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "proxy",
|
|
34
|
+
"ready": false,
|
|
35
|
+
"state": "waiting",
|
|
36
|
+
"reason": "CrashLoopBackOff",
|
|
37
|
+
"kind": "container"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "worker",
|
|
41
|
+
"ready": false,
|
|
42
|
+
"state": "unknown",
|
|
43
|
+
"kind": "container"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "job",
|
|
49
|
+
"namespace": "apps",
|
|
50
|
+
"phase": "Succeeded",
|
|
51
|
+
"readyContainers": "0/1",
|
|
52
|
+
"restarts": 0,
|
|
53
|
+
"ageSeconds": 30,
|
|
54
|
+
"qosClass": "BestEffort",
|
|
55
|
+
"containerStatuses": [
|
|
56
|
+
{
|
|
57
|
+
"name": "job",
|
|
58
|
+
"ready": false,
|
|
59
|
+
"state": "terminated",
|
|
60
|
+
"reason": "Completed",
|
|
61
|
+
"exitCode": 0,
|
|
62
|
+
"kind": "container"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
package/fixtures/openapi/KubernetesResourceGraphEnvelope/invalid/network-edge-source-payload.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"clusterId": "cluster-a",
|
|
4
|
+
"namespace": "team-a",
|
|
5
|
+
"generatedAt": "2026-08-23T08:00:00Z",
|
|
6
|
+
"rootId": "apps/v1:Deployment:team-a/api",
|
|
7
|
+
"nodes": [
|
|
8
|
+
{
|
|
9
|
+
"id": "apps/v1:Deployment:team-a/api",
|
|
10
|
+
"resource": {
|
|
11
|
+
"clusterId": "cluster-a",
|
|
12
|
+
"apiVersion": "apps/v1",
|
|
13
|
+
"kind": "Deployment",
|
|
14
|
+
"name": "api",
|
|
15
|
+
"namespace": "team-a",
|
|
16
|
+
"scopeMode": "namespace",
|
|
17
|
+
"data": {
|
|
18
|
+
"privateKey": "forbidden"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"status": "healthy"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "v1:Pod:team-a/api-1",
|
|
25
|
+
"resource": {
|
|
26
|
+
"clusterId": "cluster-a",
|
|
27
|
+
"apiVersion": "v1",
|
|
28
|
+
"kind": "Pod",
|
|
29
|
+
"name": "api-1",
|
|
30
|
+
"namespace": "team-a",
|
|
31
|
+
"scopeMode": "namespace"
|
|
32
|
+
},
|
|
33
|
+
"status": "Running"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"edges": [
|
|
37
|
+
{
|
|
38
|
+
"id": "owns:deployment-api:pod-api-1",
|
|
39
|
+
"sourceId": "apps/v1:Deployment:team-a/api",
|
|
40
|
+
"targetId": "v1:Pod:team-a/api-1",
|
|
41
|
+
"relation": "owns",
|
|
42
|
+
"resolutionState": "resolved",
|
|
43
|
+
"protocol": "HTTPS",
|
|
44
|
+
"port": "443",
|
|
45
|
+
"sectionName": "https",
|
|
46
|
+
"fieldPath": "spec.parentRefs[0]",
|
|
47
|
+
"note": "Declared listener attachment; controller execution unverified",
|
|
48
|
+
"sourceRef": {
|
|
49
|
+
"clusterId": "cluster-a",
|
|
50
|
+
"apiVersion": "apps/v1",
|
|
51
|
+
"kind": "Deployment",
|
|
52
|
+
"name": "api",
|
|
53
|
+
"namespace": "team-a",
|
|
54
|
+
"scopeMode": "namespace",
|
|
55
|
+
"data": {
|
|
56
|
+
"privateKey": "forbidden"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"evidence": [
|
|
62
|
+
{
|
|
63
|
+
"id": "event/team-a/api-1-scheduled",
|
|
64
|
+
"type": "kubernetes-event",
|
|
65
|
+
"severity": "info",
|
|
66
|
+
"summary": "Pod scheduled",
|
|
67
|
+
"observedAt": "2026-08-23T07:59:58Z",
|
|
68
|
+
"resourceId": "v1:Pod:team-a/api-1"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"warnings": []
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"clusterId": "cluster-a",
|
|
4
|
+
"namespace": "team-a",
|
|
5
|
+
"generatedAt": "2026-08-23T08:00:00Z",
|
|
6
|
+
"rootId": "apps/v1:Deployment:team-a/api",
|
|
7
|
+
"nodes": [
|
|
8
|
+
{
|
|
9
|
+
"id": "apps/v1:Deployment:team-a/api",
|
|
10
|
+
"resource": {
|
|
11
|
+
"clusterId": "cluster-a",
|
|
12
|
+
"apiVersion": "apps/v1",
|
|
13
|
+
"kind": "Deployment",
|
|
14
|
+
"name": "api",
|
|
15
|
+
"namespace": "team-a",
|
|
16
|
+
"scopeMode": "namespace"
|
|
17
|
+
},
|
|
18
|
+
"status": "healthy"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "v1:Pod:team-a/api-1",
|
|
22
|
+
"resource": {
|
|
23
|
+
"clusterId": "cluster-a",
|
|
24
|
+
"apiVersion": "v1",
|
|
25
|
+
"kind": "Pod",
|
|
26
|
+
"name": "api-1",
|
|
27
|
+
"namespace": "team-a",
|
|
28
|
+
"scopeMode": "namespace"
|
|
29
|
+
},
|
|
30
|
+
"status": "Running"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"edges": [
|
|
34
|
+
{
|
|
35
|
+
"id": "owns:deployment-api:pod-api-1",
|
|
36
|
+
"sourceId": "apps/v1:Deployment:team-a/api",
|
|
37
|
+
"targetId": "v1:Pod:team-a/api-1",
|
|
38
|
+
"relation": "owns",
|
|
39
|
+
"resolutionState": "resolved",
|
|
40
|
+
"protocol": "HTTPS",
|
|
41
|
+
"port": "443",
|
|
42
|
+
"sectionName": "https",
|
|
43
|
+
"fieldPath": "spec.parentRefs[0]",
|
|
44
|
+
"note": "Declared listener attachment; controller execution unverified",
|
|
45
|
+
"sourceRef": {
|
|
46
|
+
"clusterId": "cluster-a",
|
|
47
|
+
"apiVersion": "apps/v1",
|
|
48
|
+
"kind": "Deployment",
|
|
49
|
+
"name": "api",
|
|
50
|
+
"namespace": "team-a",
|
|
51
|
+
"scopeMode": "namespace"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"evidence": [
|
|
56
|
+
{
|
|
57
|
+
"id": "event/team-a/api-1-scheduled",
|
|
58
|
+
"type": "kubernetes-event",
|
|
59
|
+
"severity": "info",
|
|
60
|
+
"summary": "Pod scheduled",
|
|
61
|
+
"observedAt": "2026-08-23T07:59:58Z",
|
|
62
|
+
"resourceId": "v1:Pod:team-a/api-1"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"warnings": []
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"demo-tls","namespace":"demo","status":"available","data":{"tls.key":"forbidden"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"demo-tls","namespace":"demo","status":"healthy"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"demo-tls","namespace":"demo","status":"available","notBefore":"2026-11-02T08:00:00Z","notAfter":"2026-12-02T08:00:00Z","selfSigned":true}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"demo-tls","namespace":"demo","status":"missing"}
|