1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
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 Dockerfile: frozen images: update to bullseye, remove buildpack-dep 2021-08-20 18:23:06 +02:00
syntax Remove vim syntax files 2020-01-14 13:01:18 -04:00
syscall-test
udev
check-config.sh
dockerd-rootless-setuptool.sh
dockerd-rootless.sh Improved readability of the run hack script 2022-05-10 11:57:39 +02:00
dockerize-disk.sh run shfmt 2020-03-03 12:27:49 +09:00
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 add script to make base image for PLD Linux 2016-05-31 09:20:51 +03:00
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.