moby--moby/contrib
Sebastiaan van Stijn 31fb92c609
linting: gosec: fix or suppress G112, G114 in test code
Updating test-code only; set ReadHeaderTimeout for some, or suppress the linter
error for others.

     contrib/httpserver/server.go:11:12: G114: Use of net/http serve function that has no support for setting timeouts (gosec)
        log.Panic(http.ListenAndServe(":80", nil))
                  ^
     integration/plugin/logging/cmd/close_on_start/main.go:42:12: G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
        server := http.Server{
            Addr:    l.Addr().String(),
            Handler: mux,
        }
     integration/plugin/logging/cmd/discard/main.go:17:12: G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
        server := http.Server{
            Addr:    l.Addr().String(),
            Handler: mux,
        }
     integration/plugin/logging/cmd/dummy/main.go:14:12: G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
        server := http.Server{
            Addr:    l.Addr().String(),
            Handler: http.NewServeMux(),
        }
     integration/plugin/volumes/cmd/dummy/main.go:14:12: G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
        server := http.Server{
            Addr:    l.Addr().String(),
            Handler: http.NewServeMux(),
        }
     testutil/fixtures/plugin/basic/basic.go:25:12: G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
        server := http.Server{
            Addr:    l.Addr().String(),
            Handler: http.NewServeMux(),
        }
     volume/testutils/testutils.go:170:5: G114: Use of net/http serve function that has no support for setting timeouts (gosec)
        go http.Serve(l, mux)
           ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-09-04 15:36:51 +02:00
..
apparmor
busybox ci(windows): move windows-2019 to another workflow 2022-08-26 14:25:09 +02:00
docker-device-tool Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00
gitdm
httpserver linting: gosec: fix or suppress G112, G114 in test code 2022-09-04 15:36:51 +02:00
init Openrc: Depend on containerd init script 2022-06-01 15:09:52 +02:00
nnp-test
syntax
syscall-test
udev
README.md
check-config.sh fix(check-config.sh): Check for existence of /etc/os-release before sourcing 2022-02-11 11:40:32 -07:00
dockerd-rootless-setuptool.sh docker-rootless-setuptools.sh: use context after install 2021-12-06 17:28:34 +11:00
dockerd-rootless.sh Improved readability of the run hack script 2022-05-10 11:57:39 +02:00
dockerize-disk.sh
download-frozen-image-v2.sh all: fix typos 2022-03-01 14:26:35 +08:00
editorconfig
mac-install-bundle.sh
mkimage-alpine.sh
mkimage-arch-pacman.conf
mkimage-arch.sh
mkimage-archarm-pacman.conf
mkimage-crux.sh
mkimage-pld.sh
mkimage-yum.sh all: fix typos 2022-03-01 14:26:35 +08:00
nuke-graph-directory.sh

README.md

The contrib directory contains scripts, images, and other helpful things which are not part of the core docker distribution. Please note that they could be out of date, since they do not receive the same attention as the rest of the repository.