Skip to content

docs: say what debug.allow_public costs (#64 item 3) - #73

Merged
jason-shen merged 1 commit into
streamcoreai:mainfrom
vsolano9:docs/64-allow-public-cost
Sep 2, 2026
Merged

docs: say what debug.allow_public costs (#64 item 3)#73
jason-shen merged 1 commit into
streamcoreai:mainfrom
vsolano9:docs/64-allow-public-cost

Conversation

@vsolano9

@vsolano9 vsolano9 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Item 3 of #64. Docs only; not a token gate.

What the docs undersold

debug.allow_public = true binds the pprof listener to a non-loopback address.
That listener has no authentication. docs/configuration.md described this as
acknowledging that "profiles expose process data and CPU profiles consume
resources" — true of any Go process, and not the actual cost on a voice server.

On a reachable interface:

  • /debug/pprof/profile?seconds=3600 is an anonymous CPU-pinning DoS.
  • A heap dump from this server can contain provider API keys, caller audio
    buffers and transcripts.

Change

State that allow_public is only for network-isolated deployments, and name
those two costs. The TOML comment in the same file now matches. The bind bullet
still says keep it on loopback over an SSH tunnel; the public mux still never
serves /debug/pprof/.

config.toml.example and docs/configuration.zh-CN.md are left for their own
items (10 and 9).

Verification

Docs-only diff (docs/configuration.md). No Go change. The repo has no test
that asserts this file's wording.

allow_public is only for network-isolated deployments. The listener
has no authentication: a reachable pprof profile endpoint is an
anonymous CPU-pinning DoS, and a heap dump can contain provider
API keys, caller audio, and transcripts.

Item 3 of streamcoreai#64. Docs only; not a token gate.
@jason-shen

Copy link
Copy Markdown
Member

nice catch! thanx @vsolano9

@jason-shen
jason-shen merged commit 3d2717f into streamcoreai:main Sep 2, 2026
1 check passed
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