Skip to content

terminal_clearance

terminal_clearance

Plain-terminal interactive clearance tool.

Subscribes to every per-container clearance hub socket via MultiSocketSubscriber and presents blocked connections in a simple numbered-prompt format. The operator types a <N> (allow) or d <N> (deny) to send verdicts.

No Textual or curses dependency — works over any terminal, SSH, or serial console.

run_clearance() async

Entry point coroutine for the terminal clearance tool.

Source code in src/terok_clearance/cli/terminal_clearance.py
async def run_clearance() -> None:
    """Entry point coroutine for the terminal clearance tool."""
    configure(identifier="terok-clearance")
    app = _TerminalClearance()
    await app.run()