Skip to content

dev: listen on 127.0.0.1 in dev (INSECURE_DEV=true)

Warren Gifford requested to merge docker-host into main

Created by: bobheadxi

This PR sets INSECURE_DEV (maybe rename in a followup?) in sg.config.yaml by default, which has most services listening on 127.0.0.1 instead of all interfaces. Any services not yet configured on INSECURE_DEV has been updated to listen on 127.0.0.1 if the envvar is set.

Also removes all the MacOS firewall stuff in sg

It better close https://github.com/sourcegraph/sourcegraph/issues/29908 or I'm going to go nuts 😄

Test plan

git co docker-host
go run ./dev/sg start

Merge request reports

Loading