Skip to content

feat: add interactive TUI for Loki flows#24

Merged
noexecstack merged 2 commits intomainfrom
feat/loki-watch-mode-v2
Mar 29, 2026
Merged

feat: add interactive TUI for Loki flows#24
noexecstack merged 2 commits intomainfrom
feat/loki-watch-mode-v2

Conversation

@noexecstack
Copy link
Copy Markdown
Owner

Summary

  • Adds --watch --from loki mode that fetches historical flows from Loki and presents them in the same interactive curses TUI as live watch mode
  • Users can scroll, enter selection mode (s), toggle workload flows (Space), and generate CiliumNetworkPolicy from selected flows (Enter)
  • Includes a Loki-specific TUI header showing URL, query, time range, and flow count
  • Bumps version to 0.9.0 (syncs pyproject.toml and version which were out of sync)

Re-submission of #22 with ruff formatting fix included.

Test plan

  • Verify CI pipeline passes (lint, typecheck, tests)
  • Run hubble-audit2policy --from loki --loki-url --since 2h --watch
  • Verify selection mode (s, Space toggle, Enter to generate policies)

noexecstack and others added 2 commits March 29, 2026 20:53
When --watch is combined with --from loki, flows are fetched from the
Loki instance and presented in the same curses TUI as live watch mode.
Users can scroll, enter selection mode, toggle individual workload
flows, and generate CiliumNetworkPolicy from the selection.

Also bumps version to 0.9.0 (syncs pyproject.toml and __version__).
@noexecstack noexecstack merged commit 39f03e5 into main Mar 29, 2026
5 checks passed
@noexecstack noexecstack deleted the feat/loki-watch-mode-v2 branch March 29, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant