diff --git a/Dockerfile b/Dockerfile index 73b38e6..9078f89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ COPY . /build/ RUN apk add git && \ go get -d -RUN go mod vendor; CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -installsuffix cgo -ldflags "-X main.MinVersion=`date -u +%Y%m%d%.H%M%S` -extldflags \"-static\"" -o main app.go init.go +RUN go mod vendor; CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -installsuffix cgo -ldflags "-X main.MinVersion=`date -u +%Y%m%d%.H%M%S` -extldflags \"-static\"" -o main . FROM alpine @@ -30,4 +30,4 @@ EXPOSE 10777 WORKDIR "/app" -CMD ["./main"] \ No newline at end of file +CMD ["./main"] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..22ef47f --- /dev/null +++ b/Makefile @@ -0,0 +1,58 @@ +#Dockerfile vars + +#vars +IMAGENAME=go-proxy +TAG= +BUILDDATE=${shell date -u +%Y-%m-%dT%H:%M:%SZ} +IMAGEFULLNAME=avhost/${IMAGENAME} +BRANCH=${shell git symbolic-ref --short HEAD} + +.PHONY: help build bootstrap all docs publish push version + +help: + @echo "Makefile arguments:" + @echo "" + @echo "Makefile commands:" + @echo "push" + @echo "build" + @echo "build-bin" + @echo "all" + @echo "docs" + @echo "publish" + @echo "version" + @echo ${TAG} + +.DEFAULT_GOAL := all + +build: + @echo ">>>> Build docker image" + @docker buildx build --build-arg TAG=${TAG} --build-arg BUILDDATE=${BUILDDATE} -t ${IMAGEFULLNAME}:${BRANCH} . + +push: + @echo ">>>> Push into private repo" + @docker push localhost:5000/mesos-m3s:dev + +build-bin: + @echo ">>>> Build binary" + @CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags "-X main.BuildVersion=${BUILDDATE} -X main.GitVersion=${TAG} -X main.VersionURL=${VERSION_URL} -extldflags \"-static\"" . + +publish-latest: + @echo ">>>> Publish docker image" + docker tag ${IMAGEFULLNAME}:${BRANCH} ${IMAGEFULLNAME}:latest + docker push ${IMAGEFULLNAME}:latest + +publish-tag: + @echo ">>>> Publish docker image" + @docker push ${IMAGEFULLNAME}:${BRANCH} + +update-gomod: + go get -u + +seccheck: + gosec --exclude G104 --exclude-dir ./vendor ./... + +sboom: + syft dir:. > sbom.txt + syft dir:. -o json > sbom.json + +all: build seccheck sboom publish-latest diff --git a/app.go b/app.go index 65eaebf..fe0f691 100644 --- a/app.go +++ b/app.go @@ -4,7 +4,6 @@ import ( "crypto/tls" "net/http" "net/http/httputil" - _ "net/http/pprof" "net/url" "regexp" @@ -70,6 +69,7 @@ func (this *handle) ServeHTTP(w http.ResponseWriter, r *http.Request) { if SkipSSL == "true" { proxy.Transport = &http.Transport{ + // #nosec G402 TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, } } diff --git a/go.mod b/go.mod index ffd85f8..58d34f2 100644 --- a/go.mod +++ b/go.mod @@ -3,20 +3,20 @@ module github.com/AVENTER-UG/go-proxy go 1.17 require ( - github.com/AVENTER-UG/util v0.1.1 - github.com/sirupsen/logrus v1.8.1 + github.com/AVENTER-UG/util v0.3.0 + github.com/sirupsen/logrus v1.9.0 ) require ( - github.com/AVENTER-UG/go-logrus-formatter v0.0.0-20181204170756-e4bb1d931585 // indirect - github.com/mattn/go-colorable v0.1.8 // indirect - github.com/mattn/go-isatty v0.0.12 // indirect + github.com/AVENTER-UG/go-logrus-formatter v0.5.4 // indirect + github.com/mattn/go-colorable v0.1.12 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect github.com/onsi/ginkgo v1.16.4 // indirect github.com/onsi/gomega v1.16.0 // indirect github.com/russross/blackfriday v1.6.0 // indirect - github.com/stretchr/testify v1.5.1 // indirect - golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect - golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect - golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect + github.com/stretchr/testify v1.7.0 // indirect + golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect + golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect + golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 // indirect ) diff --git a/go.sum b/go.sum index 3cbb2f4..a6bcb19 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,11 @@ github.com/AVENTER-UG/go-logrus-formatter v0.0.0-20181204170756-e4bb1d931585 h1:sVEvCjo1XwxvV3R0gkOdXEIQBRkeKmHZGAB44vbVyY4= github.com/AVENTER-UG/go-logrus-formatter v0.0.0-20181204170756-e4bb1d931585/go.mod h1:EXN8FPKx567UIA2L4jewW7pg48hc3i4fPZ+uBmHXxZI= +github.com/AVENTER-UG/go-logrus-formatter v0.5.4 h1:pT//3WIdLWQYfUGuNdbz3cXQovUh6DDHoUCESxoG5uM= +github.com/AVENTER-UG/go-logrus-formatter v0.5.4/go.mod h1:EXN8FPKx567UIA2L4jewW7pg48hc3i4fPZ+uBmHXxZI= github.com/AVENTER-UG/util v0.1.1 h1:yNf4JsCAp0tH2N1F+GWWXuM5x+wg3Wi07LsNhlbx5dg= github.com/AVENTER-UG/util v0.1.1/go.mod h1:8mh50Bes+U3D6ZP3psP4K8LSPNwpeuM5vRNb/vU/sS0= +github.com/AVENTER-UG/util v0.3.0 h1:wtUC7e6LMx37BRGBKKBZ4BUM8q4lkLjgBinS09luv6A= +github.com/AVENTER-UG/util v0.3.0/go.mod h1:8mh50Bes+U3D6ZP3psP4K8LSPNwpeuM5vRNb/vU/sS0= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -25,8 +29,12 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= @@ -46,16 +54,21 @@ github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3V github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa h1:zuSxTR4o9y82ebqCUJYNGJbGPo6sKVl54f/TVDObg1c= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -84,8 +97,15 @@ golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7VEz+7w9tdXTPOZ7+l4= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab h1:2QkjZIsXupsJbJIdSjjUOgWK3aEtzyuh2mPt3l/CkeU= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 h1:Q5284mrmYTpACcm+eAKjKJH48BBwSyfJqmmGDTtT8Vc= +golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= @@ -114,3 +134,4 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sbom.json b/sbom.json new file mode 100644 index 0000000..f1da06a --- /dev/null +++ b/sbom.json @@ -0,0 +1,602 @@ +{ + "artifacts": [ + { + "id": "22943ba1b57b5505", + "name": "git.aventer.biz/AVENTER/go-logrus-formatter", + "version": "v0.5.2", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:AVENTER:go-logrus-formatter:v0.5.2:*:*:*:*:*:*:*", + "cpe:2.3:a:AVENTER:go_logrus_formatter:v0.5.2:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/git.aventer.biz/AVENTER/go-logrus-formatter@v0.5.2", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "h1Digest": "h1:Wv2NHAtae9kDNLwQgYmWNPXC4pgHdhao3UqHzOGgenY=", + "mainModule": "go-proxy" + } + }, + { + "id": "16232353c5f185b5", + "name": "git.aventer.biz/AVENTER/util", + "version": "v0.0.0-20200619090833-b02d1129737c", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:AVENTER:util:v0.0.0-20200619090833-b02d1129737c:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/git.aventer.biz/AVENTER/util@v0.0.0-20200619090833-b02d1129737c", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "h1Digest": "h1:iIeqVUHH5DyYNXmwmYkfaIRsOhgxYWTHmAMzR7YGbe8=", + "mainModule": "go-proxy" + } + }, + { + "id": "bbb857abcd8f49d3", + "name": "github.com/AVENTER-UG/go-logrus-formatter", + "version": "v0.5.4", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:AVENTER-UG:go-logrus-formatter:v0.5.4:*:*:*:*:*:*:*", + "cpe:2.3:a:AVENTER-UG:go_logrus_formatter:v0.5.4:*:*:*:*:*:*:*", + "cpe:2.3:a:AVENTER_UG:go-logrus-formatter:v0.5.4:*:*:*:*:*:*:*", + "cpe:2.3:a:AVENTER_UG:go_logrus_formatter:v0.5.4:*:*:*:*:*:*:*", + "cpe:2.3:a:AVENTER:go-logrus-formatter:v0.5.4:*:*:*:*:*:*:*", + "cpe:2.3:a:AVENTER:go_logrus_formatter:v0.5.4:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/AVENTER-UG/go-logrus-formatter@v0.5.4" + }, + { + "id": "c839380d502a5d80", + "name": "github.com/AVENTER-UG/util", + "version": "v0.3.0", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:AVENTER-UG:util:v0.3.0:*:*:*:*:*:*:*", + "cpe:2.3:a:AVENTER_UG:util:v0.3.0:*:*:*:*:*:*:*", + "cpe:2.3:a:AVENTER:util:v0.3.0:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/AVENTER-UG/util@v0.3.0" + }, + { + "id": "d7de58c7a0d78c69", + "name": "github.com/mattn/go-colorable", + "version": "v0.1.12", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:mattn:go-colorable:v0.1.12:*:*:*:*:*:*:*", + "cpe:2.3:a:mattn:go_colorable:v0.1.12:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/mattn/go-colorable@v0.1.12" + }, + { + "id": "2ab6da634b50d596", + "name": "github.com/mattn/go-colorable", + "version": "v0.1.7", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:mattn:go-colorable:v0.1.7:*:*:*:*:*:*:*", + "cpe:2.3:a:mattn:go_colorable:v0.1.7:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/mattn/go-colorable@v0.1.7", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "h1Digest": "h1:bQGKb3vps/j0E9GfJQ03JyhRuxsvdAanXlT9BTw3mdw=", + "mainModule": "go-proxy" + } + }, + { + "id": "dfb307547877cc5a", + "name": "github.com/mattn/go-isatty", + "version": "v0.0.12", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:mattn:go-isatty:v0.0.12:*:*:*:*:*:*:*", + "cpe:2.3:a:mattn:go_isatty:v0.0.12:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/mattn/go-isatty@v0.0.12", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "h1Digest": "h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=", + "mainModule": "go-proxy" + } + }, + { + "id": "ef0335a86671ee50", + "name": "github.com/mattn/go-isatty", + "version": "v0.0.14", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:mattn:go-isatty:v0.0.14:*:*:*:*:*:*:*", + "cpe:2.3:a:mattn:go_isatty:v0.0.14:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/mattn/go-isatty@v0.0.14" + }, + { + "id": "bae8419ae4c9c0d0", + "name": "github.com/mgutz/ansi", + "version": "v0.0.0-20200706080929-d51e80ef957d", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:mgutz:ansi:v0.0.0-20200706080929-d51e80ef957d:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/mgutz/ansi@v0.0.0-20200706080929-d51e80ef957d" + }, + { + "id": "bfc9bf425f8665cb", + "name": "github.com/mgutz/ansi", + "version": "v0.0.0-20200706080929-d51e80ef957d", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:mgutz:ansi:v0.0.0-20200706080929-d51e80ef957d:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/mgutz/ansi@v0.0.0-20200706080929-d51e80ef957d", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "h1Digest": "h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=", + "mainModule": "go-proxy" + } + }, + { + "id": "fef8bdad5e5aa4b8", + "name": "github.com/onsi/ginkgo", + "version": "v1.16.4", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:onsi:ginkgo:v1.16.4:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/onsi/ginkgo@v1.16.4" + }, + { + "id": "b6fccdd366bf1725", + "name": "github.com/onsi/gomega", + "version": "v1.16.0", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:onsi:gomega:v1.16.0:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/onsi/gomega@v1.16.0" + }, + { + "id": "6d22376dd300fd7d", + "name": "github.com/russross/blackfriday", + "version": "v1.5.2", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:russross:blackfriday:v1.5.2:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/russross/blackfriday@v1.5.2", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "h1Digest": "h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=", + "mainModule": "go-proxy" + } + }, + { + "id": "831196cb8f04dd1b", + "name": "github.com/russross/blackfriday", + "version": "v1.6.0", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:russross:blackfriday:v1.6.0:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/russross/blackfriday@v1.6.0" + }, + { + "id": "42c0eda84a091486", + "name": "github.com/sirupsen/logrus", + "version": "v1.6.0", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:sirupsen:logrus:v1.6.0:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/sirupsen/logrus@v1.6.0", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "h1Digest": "h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I=", + "mainModule": "go-proxy" + } + }, + { + "id": "9a0c7256bfe255d2", + "name": "github.com/sirupsen/logrus", + "version": "v1.9.0", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:sirupsen:logrus:v1.9.0:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/sirupsen/logrus@v1.9.0" + }, + { + "id": "da2c18bb16e71ab6", + "name": "github.com/stretchr/testify", + "version": "v1.7.0", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:stretchr:testify:v1.7.0:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/github.com/stretchr/testify@v1.7.0" + }, + { + "id": "138722bbab578471", + "name": "go-proxy", + "version": "(devel)", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [], + "purl": "pkg:golang/go-proxy/go-proxy@(devel)", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "mainModule": "go-proxy" + } + }, + { + "id": "8088e963dd3202f4", + "name": "golang.org/x/crypto", + "version": "v0.0.0-20200728195943-123391ffb6de", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:golang:x\\/crypto:v0.0.0-20200728195943-123391ffb6de:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/golang.org/x/crypto@v0.0.0-20200728195943-123391ffb6de", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "h1Digest": "h1:ikNHVSjEfnvz6sxdSPCaPt572qowuyMDMJLLm3Db3ig=", + "mainModule": "go-proxy" + } + }, + { + "id": "1fb31a4dedff1f80", + "name": "golang.org/x/crypto", + "version": "v0.0.0-20220722155217-630584e8d5aa", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:golang:x\\/crypto:v0.0.0-20220722155217-630584e8d5aa:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/golang.org/x/crypto@v0.0.0-20220722155217-630584e8d5aa" + }, + { + "id": "688e15846c6eaa94", + "name": "golang.org/x/sys", + "version": "v0.0.0-20200223170610-d5e6a3e2c0ae", + "type": "go-module", + "foundBy": "go-module-binary-cataloger", + "locations": [ + { + "path": "main" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:golang:x\\/sys:v0.0.0-20200223170610-d5e6a3e2c0ae:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae", + "metadataType": "GolangBinMetadata", + "metadata": { + "goCompiledVersion": "go1.14.5", + "architecture": "x86_64", + "h1Digest": "h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8=", + "mainModule": "go-proxy" + } + }, + { + "id": "f92b8bf1e59d233b", + "name": "golang.org/x/sys", + "version": "v0.0.0-20220811171246-fbc7d0a398ab", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:golang:x\\/sys:v0.0.0-20220811171246-fbc7d0a398ab:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/golang.org/x/sys@v0.0.0-20220811171246-fbc7d0a398ab" + }, + { + "id": "d4a10d3b70fced84", + "name": "golang.org/x/term", + "version": "v0.0.0-20220722155259-a9ba230a4035", + "type": "go-module", + "foundBy": "go-mod-file-cataloger", + "locations": [ + { + "path": "go.mod" + } + ], + "licenses": [], + "language": "go", + "cpes": [ + "cpe:2.3:a:golang:x\\/term:v0.0.0-20220722155259-a9ba230a4035:*:*:*:*:*:*:*" + ], + "purl": "pkg:golang/golang.org/x/term@v0.0.0-20220722155259-a9ba230a4035" + } + ], + "artifactRelationships": [], + "source": { + "type": "directory", + "target": "." + }, + "distro": {}, + "descriptor": { + "name": "syft", + "version": "[not provided]", + "configuration": { + "configPath": "", + "verbosity": 0, + "quiet": false, + "output": [ + "json" + ], + "output-template-path": "", + "file": "", + "check-for-app-update": true, + "anchore": { + "host": "", + "path": "", + "dockerfile": "", + "overwrite-existing-image": false, + "import-timeout": 30 + }, + "dev": { + "profile-cpu": false, + "profile-mem": false + }, + "log": { + "structured": false, + "level": "warning", + "file-location": "" + }, + "catalogers": null, + "package": { + "cataloger": { + "enabled": true, + "scope": "Squashed" + }, + "search-unindexed-archives": false, + "search-indexed-archives": true + }, + "file-metadata": { + "cataloger": { + "enabled": false, + "scope": "Squashed" + }, + "digests": [ + "sha256" + ] + }, + "file-classification": { + "cataloger": { + "enabled": false, + "scope": "Squashed" + } + }, + "file-contents": { + "cataloger": { + "enabled": false, + "scope": "Squashed" + }, + "skip-files-above-size": 1048576, + "globs": [] + }, + "secrets": { + "cataloger": { + "enabled": false, + "scope": "AllLayers" + }, + "additional-patterns": {}, + "exclude-pattern-names": [], + "reveal-values": false, + "skip-files-above-size": 1048576 + }, + "registry": { + "insecure-skip-tls-verify": false, + "insecure-use-http": false, + "auth": [] + }, + "exclude": [], + "attest": { + "key": "", + "cert": "", + "noUpload": false, + "force": false, + "recursive": false, + "replace": false, + "fulcioUrl": "https://fulcio.sigstore.dev", + "fulcio_identity_token": "", + "insecure_skip_verify": false, + "rekorUrl": "https://rekor.sigstore.dev", + "oidcIssuer": "https://oauth2.sigstore.dev/auth", + "oidcClientId": "sigstore", + "OIDCRedirectURL": "" + }, + "platform": "" + } + }, + "schema": { + "version": "3.3.0", + "url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-3.3.0.json" + } +} diff --git a/sbom.txt b/sbom.txt new file mode 100644 index 0000000..f10b32c --- /dev/null +++ b/sbom.txt @@ -0,0 +1,23 @@ +NAME VERSION TYPE +git.aventer.biz/AVENTER/go-logrus-formatter v0.5.2 go-module +git.aventer.biz/AVENTER/util v0.0.0-20200619090833-b02d1129737c go-module +github.com/AVENTER-UG/go-logrus-formatter v0.5.4 go-module +github.com/AVENTER-UG/util v0.3.0 go-module +github.com/mattn/go-colorable v0.1.12 go-module +github.com/mattn/go-colorable v0.1.7 go-module +github.com/mattn/go-isatty v0.0.12 go-module +github.com/mattn/go-isatty v0.0.14 go-module +github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d go-module +github.com/onsi/ginkgo v1.16.4 go-module +github.com/onsi/gomega v1.16.0 go-module +github.com/russross/blackfriday v1.5.2 go-module +github.com/russross/blackfriday v1.6.0 go-module +github.com/sirupsen/logrus v1.6.0 go-module +github.com/sirupsen/logrus v1.9.0 go-module +github.com/stretchr/testify v1.7.0 go-module +go-proxy (devel) go-module +golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de go-module +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa go-module +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae go-module +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab go-module +golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 go-module