Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hubble_audit2policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from __future__ import annotations

__version__ = "0.7.3"
__version__ = "0.7.4"
__author__ = "noexecstack"
__license__ = "Apache-2.0"

Expand Down Expand Up @@ -224,7 +224,7 @@ def _cilium_endpoint_get(cilium_pod: str, endpoint_id: int) -> dict[str, Any] |
data: Any = json.loads(raw)
ep: dict[str, Any] = cast(dict[str, Any], data[0] if isinstance(data, list) else data)
return ep
except (RuntimeError, json.JSONDecodeError) as exc:
except (RuntimeError, json.JSONDecodeError, IndexError, KeyError) as exc:
LOG.warning("cilium endpoint get %d failed on %s: %s", endpoint_id, cilium_pod, exc)
return None

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "hubble-audit2policy"
version = "0.7.3"
version = "0.7.4"
description = "Generate least-privilege CiliumNetworkPolicy YAML from Hubble flow logs."
readme = "README.md"
license = "Apache-2.0"
Expand Down Expand Up @@ -33,6 +33,7 @@ hubble-audit2policy = "hubble_audit2policy:main"

[project.urls]
Homepage = "https://github.com/noexecstack/hubble-audit2policy"
Repository = "https://github.com/noexecstack/hubble-audit2policy"
Issues = "https://github.com/noexecstack/hubble-audit2policy/issues"

[tool.setuptools.package-data]
Expand Down
Loading