Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

F TD2000 DATASTRUCTURES 05 / kubernetes132 networkpolicy dual direction flow isolation

Reconstruct complete finite Pod ingress/egress eligibility under additive NetworkPolicy selectors, IPBlocks and ports.

POST https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-05/kubernetes132-networkpolicy-dual-direction-flow-isolation

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "artifact"
  ],
  "properties": {
    "artifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "k8sNetwork"
      ],
      "properties": {
        "k8sNetwork": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "data",
            "claim"
          ],
          "properties": {
            "data": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "flows",
                "namespaces",
                "pods",
                "policies"
              ],
              "properties": {
                "flows": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "destination",
                      "port",
                      "protocol",
                      "source"
                    ],
                    "properties": {
                      "destination": {
                        "type": "number"
                      },
                      "port": {
                        "type": "number"
                      },
                      "protocol": {
                        "type": "string",
                        "maxLength": 20000
                      },
                      "source": {
                        "type": "number"
                      }
                    }
                  },
                  "maxItems": 512
                },
                "namespaces": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "labels"
                    ],
                    "properties": {
                      "labels": {
                        "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
                      }
                    }
                  },
                  "maxItems": 512
                },
                "pods": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "ip",
                      "labels",
                      "named_ports",
                      "namespace"
                    ],
                    "properties": {
                      "ip": {
                        "type": "string",
                        "maxLength": 20000
                      },
                      "labels": {
                        "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
                      },
                      "named_ports": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "name",
                            "port",
                            "protocol"
                          ],
                          "properties": {
                            "name": {
                              "type": "string",
                              "maxLength": 20000
                            },
                            "port": {
                              "type": "number"
                            },
                            "protocol": {
                              "type": "string",
                              "maxLength": 20000
                            }
                          }
                        },
                        "maxItems": 512
                      },
                      "namespace": {
                        "type": "number"
                      }
                    }
                  },
                  "maxItems": 512
                },
                "policies": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "egress",
                      "ingress",
                      "namespace",
                      "pod_selector",
                      "policy_types"
                    ],
                    "properties": {
                      "egress": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "peers",
                            "ports"
                          ],
                          "properties": {
                            "peers": {
                              "type": "null"
                            },
                            "ports": {
                              "type": "null"
                            }
                          }
                        },
                        "maxItems": 512
                      },
                      "ingress": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "peers",
                            "ports"
                          ],
                          "properties": {
                            "peers": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "ip_block",
                                      "namespace_selector",
                                      "pod_selector"
                                    ],
                                    "properties": {
                                      "ip_block": {
                                        "anyOf": [
                                          {
                                            "type": "null"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "cidr",
                                              "except"
                                            ],
                                            "properties": {
                                              "cidr": {
                                                "type": "string",
                                                "maxLength": 20000
                                              },
                                              "except": {
                                                "$ref": "#/properties/artifact/%24defs/s_8a1c90f566e8"
                                              }
                                            }
                                          }
                                        ]
                                      },
                                      "namespace_selector": {
                                        "$ref": "#/properties/artifact/%24defs/s_648d679c4674"
                                      },
                                      "pod_selector": {
                                        "$ref": "#/properties/artifact/%24defs/s_648d679c4674"
                                      }
                                    }
                                  },
                                  "maxItems": 512
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "ports": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "end_port",
                                      "port",
                                      "protocol"
                                    ],
                                    "properties": {
                                      "end_port": {
                                        "type": "null"
                                      },
                                      "port": {
                                        "type": "string",
                                        "maxLength": 20000
                                      },
                                      "protocol": {
                                        "type": "string",
                                        "maxLength": 20000
                                      }
                                    }
                                  },
                                  "maxItems": 512
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        "maxItems": 512
                      },
                      "namespace": {
                        "type": "number"
                      },
                      "pod_selector": {
                        "$ref": "#/properties/artifact/%24defs/s_f4d6d192fae1"
                      },
                      "policy_types": {
                        "$ref": "#/properties/artifact/%24defs/s_8a1c90f566e8"
                      }
                    }
                  },
                  "maxItems": 512
                }
              }
            },
            "claim": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "flows"
                  ],
                  "properties": {
                    "flows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "allowed",
                          "egress",
                          "ingress"
                        ],
                        "properties": {
                          "allowed": {
                            "type": "boolean"
                          },
                          "egress": {
                            "$ref": "#/properties/artifact/%24defs/s_6dcccef79558"
                          },
                          "ingress": {
                            "$ref": "#/properties/artifact/%24defs/s_6dcccef79558"
                          }
                        }
                      },
                      "maxItems": 512
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "$defs": {
        "s_22c3a6fa1039": {
          "type": "array",
          "items": {
            "$ref": "#/properties/artifact/%24defs/s_af2cf5f3b1a7"
          },
          "maxItems": 512
        },
        "s_4dbca1a6673f": {
          "type": "object",
          "maxProperties": 32,
          "additionalProperties": {
            "type": "string",
            "maxLength": 256
          }
        },
        "s_648d679c4674": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/properties/artifact/%24defs/s_f4d6d192fae1"
            }
          ]
        },
        "s_666ccb10bb36": {
          "type": "array",
          "items": {
            "$ref": "#/properties/artifact/%24defs/s_8546eebe2da6"
          },
          "maxItems": 512
        },
        "s_6dcccef79558": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "allowed",
            "isolated",
            "matches"
          ],
          "properties": {
            "allowed": {
              "type": "boolean"
            },
            "isolated": {
              "type": "boolean"
            },
            "matches": {
              "$ref": "#/properties/artifact/%24defs/s_666ccb10bb36"
            }
          }
        },
        "s_8546eebe2da6": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "policy",
            "rule"
          ],
          "properties": {
            "policy": {
              "type": "number"
            },
            "rule": {
              "type": "number"
            }
          }
        },
        "s_8a1c90f566e8": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 20000
          },
          "maxItems": 512
        },
        "s_af2cf5f3b1a7": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "type": "string",
              "maxLength": 20000
            }
          ]
        },
        "s_f4d6d192fae1": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "expressions",
            "match_labels"
          ],
          "properties": {
            "expressions": {
              "$ref": "#/properties/artifact/%24defs/s_22c3a6fa1039"
            },
            "match_labels": {
              "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
            }
          }
        }
      }
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →