13 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 3994f0939b refac 2026-10-25 12:39:40 +09:00
Timothy Jaeryang Baek 6f0b75076b refac 2026-10-24 05:14:56 +09:00
Timothy Jaeryang Baek 004ee891e6 security: harden API key handling and add startup warnings
- Increase auto-generated API key entropy from 192-bit to 384-bit
- Use hmac.compare_digest() for constant-time key comparison (HTTP + WS)
- Refuse to start without OPEN_TERMINAL_API_KEY configured
- Add prominent CORS wildcard warning at startup
- Bump version to 0.11.30
2026-03-25 17:15:15 -05:00
Timothy Jaeryang Baek 4e6e2739ce feat: redesign startup output with URLs, bind warning
- Display Local and Network URLs at startup (Vite-style)
- Auto-detect LAN IP when binding to 0.0.0.0
- Show generated API key inline with bold label
- Print yellow warning when listening on all interfaces
- Bump to 0.11.15
2026-03-13 17:43:16 -05:00
Timothy Jaeryang Baek 500525fde5 feat: make uvicorn event loop configurable via OPEN_TERMINAL_UVICORN_LOOP
Defaults to 'auto' (uvicorn's default). Users hitting segfaults on
Python 3.12 can set OPEN_TERMINAL_UVICORN_LOOP=asyncio to bypass uvloop.

Refs #37
2026-03-09 16:37:09 -05:00
Timothy Jaeryang Baek 736a94778f fix: use asyncio event loop to avoid uvloop segfault on Python 3.12 (#37) 2026-03-09 16:06:17 -05:00
Timothy Jaeryang Baek f94fa3cec6 feat: add TOML configuration file support
Load settings from /etc/open-terminal/config.toml (system) and
$XDG_CONFIG_HOME/open-terminal/config.toml (user). Supports host, port,
api_key, cors_allowed_origins, log_dir, and binary_mime_prefixes.

CLI flags and environment variables still take precedence. A --config
flag allows pointing to a custom config file.

Closes #11
2026-03-02 12:52:33 -06:00
Timothy Jaeryang Baek 26090678d4 feat: add Docker secrets support for OPEN_TERMINAL_API_KEY_FILE
Allow loading the API key from a file via OPEN_TERMINAL_API_KEY_FILE,
following the convention used by the official PostgreSQL Docker image.

- Add _resolve_file_env() helper in env.py
- Add file_env shell function in entrypoint.sh
- Add _FILE fallback in cli.py run command
- Update README with Docker Compose example
- Bump version to 0.4.3

Closes #14
2026-03-02 12:17:54 -06:00
Timothy Jaeryang Baek 19543ee983 refac 2026-02-25 19:56:20 -06:00
Timothy Jaeryang Baek eced3e04c7 refac 2026-02-24 22:10:12 -06:00
Timothy Jaeryang Baek edbaf27df7 v0.2.3: optional MCP server mode via open-terminal mcp 2026-02-15 17:02:52 -06:00
Timothy Jaeryang Baek 3103f34ee7 refac 2026-02-12 13:45:59 -06:00
Timothy Jaeryang Baek 3f7c544835 init 2026-02-12 13:10:52 -06:00