moby/contrib
Sebastiaan van Stijn 2ad43faba5 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>
(cherry picked from commit 31fb92c609)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 2609d4e252)
Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-02-24 17:05:42 -05:00
..
apparmor AppArmor: add missing rules for running in userns 2019-09-30 16:17:13 +02:00
busybox integration: download busybox-w32 from GitHub Release 2022-10-24 17:06:12 -04:00
docker-device-tool Update to Go 1.17.0, and gofmt with Go 1.17 2022-04-07 23:27:50 +02:00
gitdm run shfmt 2020-03-03 12:27:49 +09:00
httpserver linting: gosec: fix or suppress G112, G114 in test code 2023-02-24 17:05:42 -05:00
init Revert "Add multi-user.target to After=" 2020-12-10 15:04:00 +01:00
nnp-test Dockerfile: Update Dockerfile syntax, switch to bullseye, add missing libseccomp-dev, remove build pack 2022-09-20 16:18:21 +05:30
syntax Remove vim syntax files 2020-01-14 13:01:18 -04:00
syscall-test Dockerfile: Update Dockerfile syntax, switch to bullseye, add missing libseccomp-dev, remove build pack 2022-09-20 16:18:21 +05:30
udev Add udev rules files for hiding the docker loopback devices from udisks 2013-12-02 09:11:06 -07:00
check-config.sh check-config.sh: add NETFILTER_XT_MARK 2021-02-23 19:25:47 +01:00
dockerd-rootless-setuptool.sh contrib: make dockerd-rootless-setuptool.sh more robust 2022-09-29 10:05:56 +02:00
dockerd-rootless.sh dockerd-rootless.sh: Fix variable not double quotes cause unexpected behavior 2021-10-21 19:51:55 +02:00
dockerize-disk.sh run shfmt 2020-03-03 12:27:49 +09:00
download-frozen-image-v2.sh Allow download-frozen-images to work without go 2020-09-28 19:10:16 +00:00
editorconfig added editorconfig 2016-10-20 22:18:16 -02:00
mac-install-bundle.sh run shfmt 2020-03-03 12:27:49 +09:00
mkimage-alpine.sh run shfmt 2020-03-03 12:27:49 +09:00
mkimage-arch-pacman.conf mkimage-arch: provide and use own pacman.conf 2014-01-21 14:22:56 +01:00
mkimage-arch.sh run shfmt 2020-03-03 12:27:49 +09:00
mkimage-archarm-pacman.conf Fixed arm arch image maker to support arm versions other than 7 2016-07-10 18:46:35 -07:00
mkimage-crux.sh run shfmt 2020-03-03 12:27:49 +09:00
mkimage-pld.sh add script to make base image for PLD Linux 2016-05-31 09:20:51 +03:00
mkimage-yum.sh run shfmt 2020-03-03 12:27:49 +09:00
nuke-graph-directory.sh run shfmt 2020-03-03 12:27:49 +09:00
README.md Add .md extension to readme for markdown rendering 2016-02-24 20:39:46 +00:00
report-issue.sh run shfmt 2020-03-03 12:27:49 +09:00

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.