Skip to content

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 19, 2026

Why\nRunning vgrep serve on a non-loopback interface can expose search results (including code snippets) over cleartext HTTP.\n\n## What\n- Add optional TLS support for the server via axum-server using VGREP_TLS_CERT/VGREP_TLS_KEY (or --tls-cert/--tls-key).\n- Refuse to bind to non-loopback addresses without TLS unless explicitly overridden with VGREP_ALLOW_INSECURE_HTTP=true (or --allow-insecure-http).\n- Update server banner to show https:// when TLS is enabled.\n\n## Tests\n- Integration tests cover refusal on VGREP_HOST=0.0.0.0 without TLS and the insecure override path.

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.

2 participants