security: REST listener binds all interfaces without TLS; default to loopback or warn, and decide the TLS source separately
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
The plain-HTTP listener is the http.ListenAndServe(addr, httpMux) call at internal/gateway/gateway.go:1066; start there and check how addr is built and whether the bind host is available at that point. The task is a startup warning for a non-loopback bind with no declared terminator, plus the explicit setting that declares one, which the issue leaves unnamed. Done means the warning shows for the default non-loopback bind, stays silent for loopback or a declared terminator, has a test, and is documented with a changelog note.
Written by the indexing model from the issue text.
Description
Problem
return http.ListenAndServe(addr, httpMux) (internal/gateway/gateway.go:1066) serves REST on :<port> (all interfaces) with no TLS. --mtls covers only the external gRPC listener. TLS for REST relies on an external terminator, which not every install has; the sentinel-to-backend hops in the /certs issue hit this same port.
Proposal (per Q2, non-breaking first)
Warn at startup when the REST listener is non-loopback and not behind a declared terminator, and add an explicit setting that declares one. Whether the daemon should terminate TLS itself (cert source, flag, install flow) is a separate design question and is not part of this issue; open it as its own issue if wanted.
Acceptance
- The warning appears for a non-loopback bind with no declared terminator and not for loopback or a declared terminator; tested.
- Documented, with the changelog note.
Verify on dev: start the daemon with the default bind and confirm the warning; declare a terminator and confirm it is silent.
Part of #3513. Split from #3340 after a re-verification against main at v0.128.0 (the scan behind the original issue was never reproduced). Decisions Q1 and Q2 on #3513 applies.
- Dominant language
- Go
- Stars
- 296
- Forks
- 38
- Avg merge
- 6h 57m
- Merged PRs (30d)
- 637
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FootprintAI/Containarium
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
FootprintAI/Containarium#2491 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
FootprintAI/Containarium#3582 ·
Maintainers usually reply within 1 day
-
chore
Difficulty 5/5 Over a week Newbie friendliness 32/100
FootprintAI/Containarium#3581 ·
Maintainers usually reply within 1 day
-
chore
Difficulty 3/5 1-2 days Newbie friendliness 48/100
FootprintAI/Containarium#3580 ·
Maintainers usually reply within 1 day
-
security
Difficulty 4/5 3-5 days Newbie friendliness 48/100
FootprintAI/Containarium#3579 ·
Maintainers usually reply within 1 day
All issues in FootprintAI/Containarium
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
eugenioenko/ttt#1461 ·
Maintainers usually reply within 1 day
-
[Studio feedback] 对话内容向下滚动时执行过程吸顶时,由于背景色是透明的,导致执行过程标题与下面的具体执行内容重叠,导致了两行信息重叠显示;建议执行过程的背景色设置为会话界面的背景Openbug from-studio
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
esengine/DeepSeek-Reasonix#15044 ·
Maintainers usually reply within 1 day
-
area: cli enhancement good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
TMHSDigital/subenum#199 ·
Maintainers usually reply within 1 day
-
type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
redhat-cop/vault-config-operator#419 ·
Maintainers usually reply within 1 day