Commit f0df05a
fix: accept any unix socket in checkDockerHost
The checkDockerHost function used a Set of two hardcoded socket paths
(/var/run/docker.sock, /run/docker.sock) to validate DOCKER_HOST. Any
other unix socket path (e.g. /tmp/custom-docker.sock) was incorrectly
rejected as an external daemon.
All unix:// sockets are local by definition — only TCP endpoints
(tcp://host:port) indicate an external Docker daemon incompatible
with AWF's network isolation model.
Replace the Set lookup with a unix:// prefix check.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7cc3412 commit f0df05a
1 file changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | 894 | | |
904 | 895 | | |
905 | 896 | | |
| |||
912 | 903 | | |
913 | 904 | | |
914 | 905 | | |
| 906 | + | |
| 907 | + | |
915 | 908 | | |
916 | | - | |
917 | | - | |
| 909 | + | |
| 910 | + | |
918 | 911 | | |
919 | 912 | | |
920 | 913 | | |
| |||
925 | 918 | | |
926 | 919 | | |
927 | 920 | | |
928 | | - | |
| 921 | + | |
929 | 922 | | |
930 | 923 | | |
931 | 924 | | |
| |||
0 commit comments