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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.3] - 2026-03-28

### Fixed

- Add missing Loki auth flags (`--loki-user`, `--loki-password`, `--loki-token`, `--loki-tls-ca`) to README usage signature and flag reference table.
- Declare `py.typed` in `pyproject.toml` `[tool.setuptools.package-data]` so the marker is included in built distributions.

## [0.7.2] - 2026-03-28

### Changed
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ hubble-audit2policy [-h] [-o OUTPUT_DIR] [-n NAMESPACE]
[--from {file,loki}] [--loki-url URL]
[--loki-query LOGQL] [--since DURATION]
[--until DURATION] [--loki-limit N]
[--loki-user USER] [--loki-password PASSWORD]
[--loki-token TOKEN] [--loki-tls-ca PATH]
[-v] [-V]
[flows_file]
```
Expand All @@ -181,6 +183,10 @@ hubble-audit2policy [-h] [-o OUTPUT_DIR] [-n NAMESPACE]
| `--since DURATION` | How far back to query, e.g. `30m`, `2h`, `1d` (default: `1h`) |
| `--until DURATION` | End of query window as duration before now (default: `0s` = now) |
| `--loki-limit N` | Max entries per Loki request batch (default: `5000`) |
| `--loki-user USER` | Username for Loki HTTP Basic authentication |
| `--loki-password PASSWORD` | Password for Loki HTTP Basic authentication (used with `--loki-user`) |
| `--loki-token TOKEN` | Bearer token for Loki (`Authorization: Bearer ...`) header |
| `--loki-tls-ca PATH` | Path to a PEM CA certificate for verifying the Loki server (self-signed certs) |
| `-v, --verbose` | Enable verbose logging |
| `-V, --version` | Show version and exit |

Expand Down
2 changes: 1 addition & 1 deletion 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.2"
__version__ = "0.7.3"
__author__ = "noexecstack"
__license__ = "Apache-2.0"

Expand Down
5 changes: 4 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.2"
version = "0.7.3"
description = "Generate least-privilege CiliumNetworkPolicy YAML from Hubble flow logs."
readme = "README.md"
license = "Apache-2.0"
Expand Down Expand Up @@ -35,6 +35,9 @@ hubble-audit2policy = "hubble_audit2policy:main"
Homepage = "https://github.com/noexecstack/hubble-audit2policy"
Issues = "https://github.com/noexecstack/hubble-audit2policy/issues"

[tool.setuptools.package-data]
hubble_audit2policy = ["py.typed"]

[tool.ruff]
target-version = "py310"
line-length = 100
Expand Down
Loading