Skip to content

Add configurable BFF listen address - #32

Merged
Gkrumbach07 merged 1 commit into
Gkrumbach07:mainfrom
sallyom:add-listen-address
Aug 9, 2026
Merged

Add configurable BFF listen address#32
Gkrumbach07 merged 1 commit into
Gkrumbach07:mainfrom
sallyom:add-listen-address

Conversation

@sallyom

@sallyom sallyom commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a --listen-address CLI option to the dashboard BFF
  • support the equivalent LISTEN_ADDRESS environment variable
  • use net.JoinHostPort to construct the server address safely

Why

The BFF currently always listens on all interfaces because it constructs its address as :<port>. Local single-user deployments need to bind explicitly to loopback so an unauthenticated development dashboard is not exposed to the LAN.

The default remains unchanged: an unset listen address still binds on all interfaces. Existing deployments therefore keep their current behavior, while local deployments can use --listen-address 127.0.0.1 or LISTEN_ADDRESS=127.0.0.1.

Validation

  • gofmt -d cmd/server/main.go
  • go test ./...

…can bind the BFF to loopback instead of all interfaces

Signed-off-by: sallyom <somalley@redhat.com>
@sallyom
sallyom marked this pull request as ready for review August 8, 2026 23:14
@sallyom
sallyom requested a review from Gkrumbach07 as a code owner August 8, 2026 23:14
@Gkrumbach07
Gkrumbach07 merged commit 1bc95b3 into Gkrumbach07:main Aug 9, 2026
7 checks 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