Source: golang-github-prometheus-exporter-toolkit
Version: 0.7.1-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220326 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=golang --builddirectory=_build
>    dh_update_autotools_config -O--buildsystem=golang -O--builddirectory=_build
>    dh_autoreconf -O--buildsystem=golang -O--builddirectory=_build
>    dh_auto_configure -O--buildsystem=golang -O--builddirectory=_build
>    dh_auto_build -O--buildsystem=golang -O--builddirectory=_build
>       cd _build && go install -trimpath -v -p 8 
> github.com/prometheus/exporter-toolkit/web 
> github.com/prometheus/exporter-toolkit/web/kingpinflag
> internal/race
> internal/unsafeheader
> internal/goos
> internal/goexperiment
> internal/goarch
> internal/cpu
> runtime/internal/syscall
> runtime/internal/atomic
> sync/atomic
> runtime/internal/math
> internal/abi
> runtime/internal/sys
> unicode
> unicode/utf8
> container/list
> internal/itoa
> math/bits
> crypto/internal/subtle
> crypto/subtle
> unicode/utf16
> vendor/golang.org/x/crypto/cryptobyte/asn1
> internal/nettrace
> internal/bytealg
> vendor/golang.org/x/crypto/internal/subtle
> encoding
> golang.org/x/sys/internal/unsafeheader
> math
> runtime
> internal/reflectlite
> sync
> internal/testlog
> internal/singleflight
> math/rand
> runtime/cgo
> errors
> sort
> internal/oserror
> io
> path
> strconv
> vendor/golang.org/x/net/dns/dnsmessage
> crypto/elliptic/internal/fiat
> syscall
> github.com/beorn7/perks/quantile
> hash
> bytes
> strings
> crypto/internal/randutil
> crypto/hmac
> crypto
> reflect
> crypto/rc4
> vendor/golang.org/x/crypto/hkdf
> hash/crc32
> vendor/golang.org/x/text/transform
> text/tabwriter
> bufio
> regexp/syntax
> net/http/internal/ascii
> github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
> html
> golang.org/x/text/transform
> golang.org/x/crypto/blowfish
> crypto/elliptic/internal/nistec
> time
> internal/syscall/unix
> internal/syscall/execenv
> regexp
> context
> io/fs
> internal/poll
> github.com/jpillora/backoff
> embed
> internal/fmtsort
> encoding/binary
> os
> crypto/cipher
> crypto/sha512
> crypto/ed25519/internal/edwards25519/field
> crypto/md5
> crypto/sha1
> crypto/sha256
> encoding/base64
> encoding/pem
> vendor/golang.org/x/crypto/internal/poly1305
> vendor/golang.org/x/crypto/curve25519/internal/field
> github.com/cespare/xxhash
> crypto/ed25519/internal/edwards25519
> crypto/aes
> crypto/des
> vendor/golang.org/x/crypto/chacha20
> golang.org/x/sys/unix
> internal/godebug
> fmt
> path/filepath
> io/ioutil
> internal/intern
> vendor/golang.org/x/sys/cpu
> net/netip
> github.com/prometheus/procfs/internal/util
> internal/lazyregexp
> vendor/golang.org/x/crypto/chacha20poly1305
> net
> encoding/hex
> vendor/golang.org/x/crypto/curve25519
> net/url
> github.com/go-logfmt/logfmt
> encoding/json
> math/big
> log
> github.com/pkg/errors
> compress/flate
> vendor/golang.org/x/text/unicode/bidi
> vendor/golang.org/x/text/unicode/norm
> vendor/golang.org/x/net/http2/hpack
> mime
> compress/gzip
> vendor/golang.org/x/text/secure/bidirule
> github.com/go-kit/log
> mime/quotedprintable
> net/http/internal
> github.com/golang/protobuf/proto
> github.com/prometheus/procfs/internal/fs
> github.com/prometheus/common/model
> github.com/go-kit/log/level
> runtime/debug
> golang.org/x/net/internal/timeseries
> text/template/parse
> vendor/golang.org/x/net/idna
> golang.org/x/text/unicode/bidi
> golang.org/x/text/unicode/norm
> golang.org/x/net/http2/hpack
> crypto/rand
> encoding/asn1
> crypto/elliptic
> crypto/ed25519
> crypto/rsa
> crypto/dsa
> text/template
> golang.org/x/text/secure/bidirule
> vendor/golang.org/x/crypto/cryptobyte
> crypto/x509/pkix
> gopkg.in/yaml.v2
> golang.org/x/crypto/bcrypt
> golang.org/x/net/idna
> github.com/alecthomas/units
> go/token
> crypto/ecdsa
> go/scanner
> html/template
> go/ast
> github.com/golang/protobuf/ptypes/duration
> github.com/golang/protobuf/ptypes/timestamp
> github.com/matttproud/golang_protobuf_extensions/pbutil
> github.com/golang/protobuf/ptypes/any
> github.com/golang/protobuf/ptypes
> github.com/prometheus/client_model/go
> github.com/prometheus/client_golang/prometheus/internal
> go/doc
> vendor/golang.org/x/net/http/httpproxy
> net/textproto
> crypto/x509
> github.com/prometheus/procfs
> mime/multipart
> golang.org/x/net/http/httpguts
> vendor/golang.org/x/net/http/httpguts
> gopkg.in/alecthomas/kingpin.v2
> crypto/tls
> github.com/prometheus/exporter-toolkit/web/kingpinflag
> net/http/httptrace
> net/http
> golang.org/x/net/trace
> github.com/prometheus/common/expfmt
> expvar
> golang.org/x/net/context/ctxhttp
> golang.org/x/net/http2
> golang.org/x/oauth2/internal
> golang.org/x/oauth2
> golang.org/x/oauth2/clientcredentials
> github.com/prometheus/client_golang/prometheus
> github.com/mwitkow/go-conntrack
> github.com/prometheus/common/config
> github.com/prometheus/exporter-toolkit/web
>    dh_auto_test -O--buildsystem=golang -O--builddirectory=_build
>       cd _build && go test -vet=off -v -p 8 
> github.com/prometheus/exporter-toolkit/web 
> github.com/prometheus/exporter-toolkit/web/kingpinflag
> === RUN   TestCacheSize
> --- PASS: TestCacheSize (0.00s)
> === RUN   TestBasicAuthCache
> --- PASS: TestBasicAuthCache (0.65s)
> === RUN   TestBasicAuthWithFakepassword
> --- PASS: TestBasicAuthWithFakepassword (0.07s)
> === RUN   TestHTTPHeaders
> --- PASS: TestHTTPHeaders (0.00s)
> === RUN   TestYAMLFiles
> === RUN   TestYAMLFiles/run/path_to_config_yml_invalid
> === RUN   TestYAMLFiles/validate/path_to_config_yml_invalid
> === RUN   TestYAMLFiles/run/empty_config_yml
> === RUN   TestYAMLFiles/validate/empty_config_yml
> === RUN   TestYAMLFiles/run/invalid_config_yml_(invalid_structure)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(invalid_structure)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(invalid_key)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(invalid_key)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(cert_path_empty)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(cert_path_empty)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(key_path_empty)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(key_path_empty)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(cert_path_and_key_path_empty)
> === RUN   
> TestYAMLFiles/validate/invalid_config_yml_(cert_path_and_key_path_empty)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(cert_path_invalid)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(cert_path_invalid)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(key_path_invalid)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(key_path_invalid)
> === RUN   
> TestYAMLFiles/run/invalid_config_yml_(cert_path_and_key_path_invalid)
> === RUN   
> TestYAMLFiles/validate/invalid_config_yml_(cert_path_and_key_path_invalid)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(invalid_ClientAuth)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(invalid_ClientAuth)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(invalid_ClientCAs_filepath)
> === RUN   
> TestYAMLFiles/validate/invalid_config_yml_(invalid_ClientCAs_filepath)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(invalid_user_list)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(invalid_user_list)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(bad_cipher)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(bad_cipher)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(bad_curves)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(bad_curves)
> === RUN   TestYAMLFiles/run/invalid_config_yml_(bad_TLS_version)
> === RUN   TestYAMLFiles/validate/invalid_config_yml_(bad_TLS_version)
> --- PASS: TestYAMLFiles (0.26s)
>     --- PASS: TestYAMLFiles/run/path_to_config_yml_invalid (0.00s)
>     --- PASS: TestYAMLFiles/validate/path_to_config_yml_invalid (0.00s)
>     --- PASS: TestYAMLFiles/run/empty_config_yml (0.25s)
>     --- PASS: TestYAMLFiles/validate/empty_config_yml (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(invalid_structure) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(invalid_structure) 
> (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(invalid_key) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(invalid_key) (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(cert_path_empty) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(cert_path_empty) 
> (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(key_path_empty) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(key_path_empty) 
> (0.00s)
>     --- PASS: 
> TestYAMLFiles/run/invalid_config_yml_(cert_path_and_key_path_empty) (0.00s)
>     --- PASS: 
> TestYAMLFiles/validate/invalid_config_yml_(cert_path_and_key_path_empty) 
> (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(cert_path_invalid) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(cert_path_invalid) 
> (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(key_path_invalid) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(key_path_invalid) 
> (0.00s)
>     --- PASS: 
> TestYAMLFiles/run/invalid_config_yml_(cert_path_and_key_path_invalid) (0.00s)
>     --- PASS: 
> TestYAMLFiles/validate/invalid_config_yml_(cert_path_and_key_path_invalid) 
> (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(invalid_ClientAuth) 
> (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(invalid_ClientAuth) 
> (0.00s)
>     --- PASS: 
> TestYAMLFiles/run/invalid_config_yml_(invalid_ClientCAs_filepath) (0.00s)
>     --- PASS: 
> TestYAMLFiles/validate/invalid_config_yml_(invalid_ClientCAs_filepath) (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(invalid_user_list) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(invalid_user_list) 
> (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(bad_cipher) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(bad_cipher) (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(bad_curves) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(bad_curves) (0.00s)
>     --- PASS: TestYAMLFiles/run/invalid_config_yml_(bad_TLS_version) (0.00s)
>     --- PASS: TestYAMLFiles/validate/invalid_config_yml_(bad_TLS_version) 
> (0.00s)
> === RUN   TestServerBehaviour
> === RUN   TestServerBehaviour/empty_string_YAMLConfigPath_and_default_client
> === RUN   TestServerBehaviour/empty_string_YAMLConfigPath_and_TLS_client
> === RUN   TestServerBehaviour/valid_tls_config_yml_and_default_client
> === RUN   TestServerBehaviour/valid_tls_config_yml_and_tls_client
> 2022/03/26 18:48:04 http: TLS handshake error from [::1]:58214: remote error: 
> tls: bad certificate
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> === RUN   TestServerBehaviour/valid_tls_config_yml_with_TLS_1.1_client
>     tls_config_test.go:486: Expected error matching regular expression: 
> protocol version not supported
>     tls_config_test.go:487: Got: Get "https://localhost:34345": tls: no 
> supported versions satisfy MinVersion and MaxVersion
> 2022/03/26 18:48:05 http: TLS handshake error from [::1]:58216: read tcp 
> [::1]:34345->[::1]:58216: use of closed network connection
> === RUN   TestServerBehaviour/valid_tls_config_yml_with_all_ciphers
> 2022/03/26 18:48:05 http: TLS handshake error from [::1]:58218: remote error: 
> tls: bad certificate
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> === RUN   TestServerBehaviour/valid_tls_config_yml_with_some_ciphers
> 2022/03/26 18:48:05 http: TLS handshake error from [::1]:58220: remote error: 
> tls: bad certificate
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> === RUN   TestServerBehaviour/valid_tls_config_yml_with_no_common_cipher
> 2022/03/26 18:48:05 http: TLS handshake error from [::1]:58222: tls: no 
> cipher suite supported by both client and server
> === RUN   
> TestServerBehaviour/valid_tls_config_yml_with_multiple_client_ciphers
> 2022/03/26 18:48:06 http: TLS handshake error from [::1]:58224: remote error: 
> tls: bad certificate
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> === RUN   
> TestServerBehaviour/valid_tls_config_yml_with_multiple_client_ciphers,_client_chooses_cipher
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> 2022/03/26 18:48:06 http: TLS handshake error from [::1]:58226: remote error: 
> tls: bad certificate
> === RUN   TestServerBehaviour/valid_tls_config_yml_with_all_curves
> 2022/03/26 18:48:06 http: TLS handshake error from [::1]:58228: remote error: 
> tls: bad certificate
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> === RUN   TestServerBehaviour/valid_tls_config_yml_with_some_curves
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> 2022/03/26 18:48:06 http: TLS handshake error from [::1]:58230: remote error: 
> tls: bad certificate
> === RUN   TestServerBehaviour/valid_tls_config_yml_with_no_common_curves
> 2022/03/26 18:48:07 http: TLS handshake error from [::1]:58232: tls: no ECDHE 
> curve supported by both client and server
> === RUN   TestServerBehaviour/valid_tls_config_yml_with_non-http2_ciphers
> 2022/03/26 18:48:07 http: TLS handshake error from [::1]:58234: remote error: 
> tls: bad certificate
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> === RUN   
> TestServerBehaviour/valid_tls_config_yml_with_non-http2_ciphers_but_http2_enabled
> === RUN   
> TestServerBehaviour/valid_tls_config_yml_and_tls_client_with_RequireAnyClientCert
> 2022/03/26 18:48:07 http: TLS handshake error from [::1]:58236: remote error: 
> tls: bad certificate
>     tls_config_test.go:486: Expected error matching regular expression: bad 
> certificate
> 2022/03/26 18:48:07 http: TLS handshake error from [::1]:58238: remote error: 
> tls: bad certificate
>     tls_config_test.go:487: Got: Get "https://localhost:34345": x509: 
> certificate signed by unknown authority (possibly because of "x509: cannot 
> verify signature: insecure algorithm SHA1-RSA (temporarily override with 
> GODEBUG=x509sha1=1)" while trying to verify candidate authority certificate 
> "Prometheus TLS CA")
> === RUN   TestServerBehaviour/valid_headers_config
> === RUN   TestServerBehaviour/invalid_X-Content-Type-Options_headers_config
> === RUN   TestServerBehaviour/invalid_X-Frame-Options_headers_config
> === RUN   TestServerBehaviour/HTTP_header_that_can_not_be_overriden
> --- FAIL: TestServerBehaviour (4.06s)
>     --- PASS: 
> TestServerBehaviour/empty_string_YAMLConfigPath_and_default_client (0.25s)
>     --- PASS: TestServerBehaviour/empty_string_YAMLConfigPath_and_TLS_client 
> (0.25s)
>     --- PASS: TestServerBehaviour/valid_tls_config_yml_and_default_client 
> (0.25s)
>     --- FAIL: TestServerBehaviour/valid_tls_config_yml_and_tls_client (0.25s)
>     --- FAIL: TestServerBehaviour/valid_tls_config_yml_with_TLS_1.1_client 
> (0.25s)
>     --- FAIL: TestServerBehaviour/valid_tls_config_yml_with_all_ciphers 
> (0.25s)
>     --- FAIL: TestServerBehaviour/valid_tls_config_yml_with_some_ciphers 
> (0.25s)
>     --- PASS: TestServerBehaviour/valid_tls_config_yml_with_no_common_cipher 
> (0.25s)
>     --- FAIL: 
> TestServerBehaviour/valid_tls_config_yml_with_multiple_client_ciphers (0.25s)
>     --- FAIL: 
> TestServerBehaviour/valid_tls_config_yml_with_multiple_client_ciphers,_client_chooses_cipher
>  (0.25s)
>     --- FAIL: TestServerBehaviour/valid_tls_config_yml_with_all_curves (0.25s)
>     --- FAIL: TestServerBehaviour/valid_tls_config_yml_with_some_curves 
> (0.27s)
>     --- PASS: TestServerBehaviour/valid_tls_config_yml_with_no_common_curves 
> (0.25s)
>     --- FAIL: TestServerBehaviour/valid_tls_config_yml_with_non-http2_ciphers 
> (0.25s)
>     --- PASS: 
> TestServerBehaviour/valid_tls_config_yml_with_non-http2_ciphers_but_http2_enabled
>  (0.00s)
>     --- FAIL: 
> TestServerBehaviour/valid_tls_config_yml_and_tls_client_with_RequireAnyClientCert
>  (0.25s)
>     --- PASS: TestServerBehaviour/valid_headers_config (0.25s)
>     --- PASS: 
> TestServerBehaviour/invalid_X-Content-Type-Options_headers_config (0.00s)
>     --- PASS: TestServerBehaviour/invalid_X-Frame-Options_headers_config 
> (0.00s)
>     --- PASS: TestServerBehaviour/HTTP_header_that_can_not_be_overriden 
> (0.00s)
> === RUN   TestConfigReloading
> 2022/03/26 18:48:08 http: TLS handshake error from [::1]:58242: remote error: 
> tls: bad certificate
>     tls_config_test.go:389:  *** Failed test: TestConfigReloading *** 
> Returned error: connection failed but should have been accepted
> 2022/03/26 18:48:08 http: TLS handshake error from [::1]:58250: remote error: 
> tls: bad certificate
> --- FAIL: TestConfigReloading (0.51s)
> === RUN   TestUsers
> === RUN   TestUsers/without_basic_auth
> === RUN   TestUsers/with_correct_basic_auth
> === RUN   TestUsers/without_basic_auth_and_TLS
>     tls_config_test.go:486: Expected error matching regular expression: 
> Unauthorized
> 2022/03/26 18:48:09 http: TLS handshake error from [::1]:58256: remote error: 
> tls: bad certificate
>     tls_config_test.go:487: Got: Get "https://localhost:34345": x509: 
> certificate signed by unknown authority (possibly because of "x509: cannot 
> verify signature: insecure algorithm SHA1-RSA (temporarily override with 
> GODEBUG=x509sha1=1)" while trying to verify candidate authority certificate 
> "Prometheus TLS CA")
> === RUN   TestUsers/with_correct_basic_auth_and_TLS
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> 2022/03/26 18:48:09 http: TLS handshake error from [::1]:58258: remote error: 
> tls: bad certificate
> === RUN   TestUsers/with_another_correct_basic_auth_and_TLS
> 2022/03/26 18:48:09 http: TLS handshake error from [::1]:58260: remote error: 
> tls: bad certificate
>     tls_config_test.go:484: Expected no error, got error: Get 
> "https://localhost:34345": x509: certificate signed by unknown authority 
> (possibly because of "x509: cannot verify signature: insecure algorithm 
> SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to 
> verify candidate authority certificate "Prometheus TLS CA")
> === RUN   TestUsers/with_bad_password_and_TLS
> 2022/03/26 18:48:09 http: TLS handshake error from [::1]:58262: remote error: 
> tls: bad certificate
>     tls_config_test.go:486: Expected error matching regular expression: 
> Unauthorized
>     tls_config_test.go:487: Got: Get "https://localhost:34345": x509: 
> certificate signed by unknown authority (possibly because of "x509: cannot 
> verify signature: insecure algorithm SHA1-RSA (temporarily override with 
> GODEBUG=x509sha1=1)" while trying to verify candidate authority certificate 
> "Prometheus TLS CA")
> === RUN   TestUsers/with_bad_username_and_TLS
>     tls_config_test.go:486: Expected error matching regular expression: 
> Unauthorized
>     tls_config_test.go:487: Got: Get "https://localhost:34345": x509: 
> certificate signed by unknown authority (possibly because of "x509: cannot 
> verify signature: insecure algorithm SHA1-RSA (temporarily override with 
> GODEBUG=x509sha1=1)" while trying to verify candidate authority certificate 
> "Prometheus TLS CA")
> 2022/03/26 18:48:10 http: TLS handshake error from [::1]:58264: read tcp 
> [::1]:34345->[::1]:58264: use of closed network connection
> --- FAIL: TestUsers (1.84s)
>     --- PASS: TestUsers/without_basic_auth (0.25s)
>     --- PASS: TestUsers/with_correct_basic_auth (0.32s)
>     --- FAIL: TestUsers/without_basic_auth_and_TLS (0.25s)
>     --- FAIL: TestUsers/with_correct_basic_auth_and_TLS (0.25s)
>     --- FAIL: TestUsers/with_another_correct_basic_auth_and_TLS (0.25s)
>     --- FAIL: TestUsers/with_bad_password_and_TLS (0.25s)
>     --- FAIL: TestUsers/with_bad_username_and_TLS (0.25s)
> FAIL
> FAIL  github.com/prometheus/exporter-toolkit/web      7.391s
> ?     github.com/prometheus/exporter-toolkit/web/kingpinflag  [no test files]
> FAIL
> dh_auto_test: error: cd _build && go test -vet=off -v -p 8 
> github.com/prometheus/exporter-toolkit/web 
> github.com/prometheus/exporter-toolkit/web/kingpinflag returned exit code 1


The full build log is available from:
http://qa-logs.debian.net/2022/03/26/golang-github-prometheus-exporter-toolkit_0.7.1-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to