Diff of the two buildlogs: -- --- b1/build.log 2025-10-29 00:49:17.250852848 +0000 +++ b2/build.log 2025-10-29 00:54:22.207095897 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Nov 30 19:07:33 -12 2026 -I: pbuilder-time-stamp: 1796108853 +I: Current time: Wed Oct 29 14:49:18 +14 2025 +I: pbuilder-time-stamp: 1761698958 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -24,53 +24,85 @@ dpkg-source: info: applying fix-32bit.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1398785/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/335131/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Oct 29 00:49 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/335131/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/335131/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="3" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.3.3(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=40 ' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='df8737bdc5624a6d9471a4586e79641d' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='1398785' - PS1='# ' - PS2='> ' + INVOCATION_ID=b9ec85b5199d46f59a7490b2155fb767 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=335131 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.6wH23a22/pbuilderrc_UJXY --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.6wH23a22/b1 --logfile b1/build.log opkssh_0.8.0-2.dsc' - SUDO_GID='110' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.6wH23a22/pbuilderrc_7vs7 --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.6wH23a22/b2 --logfile b2/build.log opkssh_0.8.0-2.dsc' + SUDO_GID=111 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos5-amd64 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1398785/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/335131/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -312,7 +344,7 @@ Get: 178 http://deb.debian.org/debian forky/main amd64 golang-gopkg-ini.v1-dev all 1.67.0-1 [39.9 kB] Get: 179 http://deb.debian.org/debian forky/main amd64 golang-github-spf13-viper-dev all 1.21.0-2 [40.3 kB] Get: 180 http://deb.debian.org/debian forky/main amd64 golang-github-spf13-cobra-dev all 1.10.1-1 [80.3 kB] -Fetched 144 MB in 20s (7024 kB/s) +Fetched 144 MB in 16s (9159 kB/s) Preconfiguring packages ... Selecting previously unselected package golang-golang-x-sys-dev. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19902 files and directories currently installed.) @@ -902,8 +934,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Dec 1 07:11:11 UTC 2026. -Universal Time is now: Tue Dec 1 07:11:11 UTC 2026. +Local time is now: Wed Oct 29 00:51:51 UTC 2025. +Universal Time is now: Wed Oct 29 00:51:51 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up golang-github-cespare-xxhash-dev (2.3.0-1) ... @@ -1053,7 +1085,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/opkssh-0.8.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../opkssh_0.8.0-2_source.changes +I: user script /srv/workspace/pbuilder/335131/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/335131/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/opkssh-0.8.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../opkssh_0.8.0-2_source.changes dpkg-buildpackage: info: source package opkssh dpkg-buildpackage: info: source version 0.8.0-2 dpkg-buildpackage: info: source distribution unstable @@ -1071,42 +1107,42 @@ dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang - cd _build && go install -trimpath -v -p 42 github.com/openpubkey/opkssh github.com/openpubkey/opkssh/commands github.com/openpubkey/opkssh/commands/config github.com/openpubkey/opkssh/internal/projectpath github.com/openpubkey/opkssh/policy github.com/openpubkey/opkssh/policy/files github.com/openpubkey/opkssh/policy/plugins github.com/openpubkey/opkssh/sshcert -internal/itoa -internal/unsafeheader -log/internal + cd _build && go install -trimpath -v -p 40 github.com/openpubkey/opkssh github.com/openpubkey/opkssh/commands github.com/openpubkey/opkssh/commands/config github.com/openpubkey/opkssh/internal/projectpath github.com/openpubkey/opkssh/policy github.com/openpubkey/opkssh/policy/files github.com/openpubkey/opkssh/policy/plugins github.com/openpubkey/opkssh/sshcert golang.org/x/crypto/internal/alias -internal/asan -go.opentelemetry.io/otel/metric/embedded -github.com/openpubkey/openpubkey/cosigner/msgs -github.com/zitadel/oidc/pkg/oidc/grants/tokenexchange -unicode/utf8 cmp -internal/profilerecord -log/slog/internal -internal/goos +encoding +unicode/utf8 vendor/golang.org/x/crypto/cryptobyte/asn1 -go.opentelemetry.io/otel/trace/embedded -internal/coverage/rtcov +internal/nettrace vendor/golang.org/x/crypto/internal/alias -crypto/internal/fips140/alias +container/list +github.com/openpubkey/openpubkey/cosigner/msgs internal/byteorder +crypto/internal/boring/sig math/bits -internal/msan -unicode +internal/unsafeheader +log/slog/internal +github.com/zitadel/oidc/pkg/oidc/grants/tokenexchange +internal/runtime/syscall +crypto/internal/fips140/alias +unicode/utf16 +internal/itoa +go.opentelemetry.io/otel/metric/embedded +internal/cpu +internal/runtime/atomic +internal/profilerecord +internal/goos internal/godebugs -sync/atomic internal/goarch -unicode/utf16 -internal/nettrace +log/internal +internal/coverage/rtcov +internal/msan +internal/asan +unicode internal/goexperiment -encoding -internal/runtime/syscall -container/list +go.opentelemetry.io/otel/trace/embedded +sync/atomic crypto/internal/fips140/subtle -internal/cpu -crypto/internal/boring/sig -internal/runtime/atomic internal/runtime/math internal/runtime/sys internal/abi @@ -1123,109 +1159,111 @@ internal/runtime/maps go.opentelemetry.io/otel/internal runtime +crypto/subtle iter +weak internal/reflectlite -crypto/subtle sync -weak maps slices golang.org/x/exp/maps -golang.org/x/exp/slices internal/bisect -internal/testlog internal/singleflight +internal/testlog unique log/slog/internal/buffer +golang.org/x/exp/slices runtime/cgo -internal/godebug errors -internal/oserror -crypto/internal/fips140deps/godebug -math/rand +internal/godebug sort -strconv -io +crypto/internal/fips140deps/godebug +internal/oserror path +golang.org/x/text/internal/tag +io math/rand/v2 +math/rand vendor/golang.org/x/net/dns/dnsmessage -golang.org/x/text/internal/tag -net/netip -golang.org/x/crypto/blowfish +strconv syscall -reflect hash -internal/saferio crypto/internal/randutil +internal/saferio bytes strings -crypto hash/crc32 +vendor/golang.org/x/text/transform +golang.org/x/text/transform +crypto +golang.org/x/crypto/blowfish +net/netip +reflect crypto/internal/impl -net/http/internal/testcert net/http/internal/ascii -crypto/internal/fips140 +net/http/internal/testcert regexp/syntax -html bufio +crypto/internal/fips140 +html github.com/kballard/go-shellquote -vendor/golang.org/x/text/transform -golang.org/x/text/transform -crypto/internal/fips140/sha256 crypto/tls/internal/fips140tls -crypto/internal/fips140/sha512 +crypto/internal/fips140/sha256 crypto/internal/fips140/sha3 +crypto/internal/fips140/sha512 golang.org/x/text/runes -crypto/internal/fips140/hmac +regexp crypto/sha3 +crypto/internal/fips140/hmac internal/syscall/execenv internal/syscall/unix -regexp time -internal/fmtsort -go.opentelemetry.io/otel/internal/attribute crypto/internal/fips140/check -encoding/binary crypto/internal/fips140hash crypto/internal/fips140/hkdf -crypto/internal/fips140/edwards25519/field -crypto/internal/fips140/bigmod crypto/internal/fips140/tls12 crypto/fips140 +crypto/internal/fips140/edwards25519/field +crypto/internal/fips140/bigmod crypto/internal/fips140/aes crypto/internal/fips140/nistec/fiat crypto/internal/fips140/tls13 crypto/internal/fips140/edwards25519 -encoding/base64 -golang.org/x/crypto/internal/poly1305 -vendor/golang.org/x/crypto/internal/poly1305 -encoding/pem context io/fs internal/poll -golang.org/x/sys/unix -golang.org/x/crypto/nacl/secretbox +internal/fmtsort +go.opentelemetry.io/otel/internal/attribute +encoding/binary +crypto/internal/fips140/nistec go.opentelemetry.io/otel/internal/baggage github.com/spf13/afero/internal/common internal/filepathlite embed -crypto/internal/fips140/nistec os +encoding/base64 +golang.org/x/crypto/internal/poly1305 +vendor/golang.org/x/crypto/internal/poly1305 +golang.org/x/sys/unix +encoding/pem +golang.org/x/crypto/nacl/secretbox crypto/internal/sysrand -io/ioutil -internal/sysinfo os/signal -path/filepath fmt -vendor/golang.org/x/sys/cpu +path/filepath +io/ioutil golang.org/x/sys/cpu +vendor/golang.org/x/sys/cpu +internal/sysinfo crypto/internal/entropy crypto/internal/fips140/drbg crypto/internal/fips140only +crypto/internal/fips140/ecdh crypto/internal/fips140/ed25519 +crypto/internal/fips140/aes/gcm crypto/internal/fips140/mlkem crypto/internal/fips140/rsa -crypto/internal/fips140/aes/gcm +crypto/internal/fips140/ecdsa github.com/openpubkey/opkssh/internal/projectpath github.com/spf13/afero/mem os/exec @@ -1233,50 +1271,49 @@ golang.org/x/crypto/blake2b crypto/rc4 crypto/md5 -crypto/internal/fips140/ecdsa -crypto/internal/fips140/ecdh crypto/mlkem crypto/cipher -github.com/lestrrat-go/option github.com/lestrrat-go/blackmagic github.com/lestrrat-go/httpcc -net/url -encoding/hex -vendor/golang.org/x/net/http2/hpack -mime -compress/flate log +net/url encoding/json -mime/quotedprintable -net/http/internal +compress/flate +github.com/pmezard/go-difflib/difflib +vendor/golang.org/x/net/http2/hpack +math/big +encoding/hex +vendor/golang.org/x/text/unicode/norm +gopkg.in/yaml.v3 +golang.org/x/text/internal/language +flag github.com/lestrrat-go/iter/arrayiter +runtime/trace github.com/lestrrat-go/iter/mapiter -vendor/golang.org/x/text/unicode/norm -github.com/muhlemmer/gu -github.com/go-jose/go-jose/json +encoding/gob github.com/lestrrat-go/jwx/internal/base64 -github.com/awnumar/memcall -math/big +encoding/csv database/sql/driver -github.com/pmezard/go-difflib/difflib -runtime/trace -encoding/gob +github.com/awnumar/memcall +github.com/go-jose/go-jose/json +github.com/muhlemmer/gu github.com/zitadel/schema +mime +runtime/debug text/template/parse -encoding/csv +mime/quotedprintable +net/http/internal golang.org/x/text/unicode/norm -golang.org/x/text/internal/language -gopkg.in/yaml.v3 +github.com/lestrrat-go/option github.com/lestrrat-go/jwx/jwa -flag -runtime/debug github.com/davecgh/go-spew/spew github.com/lestrrat-go/jwx/internal/iter -crypto/internal/boring crypto/des vendor/golang.org/x/crypto/chacha20 +crypto/internal/boring golang.org/x/crypto/chacha20 vendor/golang.org/x/text/unicode/bidi +go.opentelemetry.io/otel/baggage crypto/sha512 crypto/aes crypto/hmac @@ -1284,50 +1321,49 @@ crypto/sha1 crypto/sha256 golang.org/x/crypto/ssh/internal/bcrypt_pbkdf -vendor/golang.org/x/crypto/chacha20poly1305 golang.org/x/crypto/pbkdf2 -go.opentelemetry.io/otel/baggage -golang.org/x/crypto/curve25519 testing compress/gzip -vendor/golang.org/x/text/secure/bidirule +vendor/golang.org/x/crypto/chacha20poly1305 +golang.org/x/crypto/curve25519 text/template +vendor/golang.org/x/text/secure/bidirule golang.org/x/text/internal/language/compact vendor/golang.org/x/net/idna -golang.org/x/text/language +github.com/lestrrat-go/jwx/internal/pool +crypto/rand +crypto/dsa +crypto/elliptic +filippo.io/bigmod +crypto/internal/boring/bbig +encoding/asn1 github.com/lestrrat-go/jwx/internal/json -go.opentelemetry.io/otel/attribute go.opentelemetry.io/otel/codes log/slog +go.opentelemetry.io/otel/attribute github.com/sirupsen/logrus -go.opentelemetry.io/otel/trace -go.opentelemetry.io/otel/metric -html/template -github.com/stretchr/testify/assert/yaml -crypto/internal/boring/bbig -github.com/lestrrat-go/jwx/internal/pool -crypto/elliptic -encoding/asn1 -crypto/dsa -crypto/rand -filippo.io/bigmod crypto/ed25519 -crypto/rsa github.com/lestrrat-go/jwx/x25519 -github.com/gorilla/securecookie crypto/internal/hpke +crypto/rsa github.com/awnumar/memguard/core -github.com/go-logr/logr +github.com/stretchr/testify/assert/yaml +golang.org/x/text/language +github.com/gorilla/securecookie +os/user +net +html/template +github.com/lestrrat-go/jwx/internal/ecutil golang.org/x/crypto/ed25519 -github.com/go-logr/logr/funcr github.com/awnumar/memguard -github.com/lestrrat-go/jwx/internal/ecutil -os/user crypto/x509/pkix vendor/golang.org/x/crypto/cryptobyte -github.com/go-logr/stdr -net +go.opentelemetry.io/otel/trace +go.opentelemetry.io/otel/metric +github.com/go-logr/logr crypto/ecdsa +github.com/go-logr/logr/funcr +github.com/go-logr/stdr github.com/go-jose/go-jose/cipher vendor/golang.org/x/net/http/httpproxy net/textproto @@ -1336,8 +1372,8 @@ github.com/spf13/pflag vendor/golang.org/x/net/http/httpguts mime/multipart -github.com/lestrrat-go/jwx/jwk/internal/x509 github.com/lestrrat-go/jwx/cert +github.com/lestrrat-go/jwx/jwk/internal/x509 github.com/openpubkey/openpubkey/util github.com/go-jose/go-jose crypto/tls @@ -1347,14 +1383,14 @@ github.com/zitadel/oidc/pkg/crypto net/http/httptrace net/http -github.com/lestrrat-go/httprc github.com/zitadel/logging -net/http/httptest go.opentelemetry.io/otel/propagation golang.org/x/oauth2/internal +github.com/lestrrat-go/httprc +net/http/httptest github.com/spf13/afero -golang.org/x/oauth2 go.opentelemetry.io/otel/internal/global +golang.org/x/oauth2 github.com/lestrrat-go/jwx/jwk github.com/stretchr/testify/assert golang.org/x/oauth2/clientcredentials @@ -1364,8 +1400,8 @@ github.com/openpubkey/opkssh/policy/files github.com/zitadel/oidc/pkg/http github.com/zitadel/oidc/pkg/client -github.com/zitadel/oidc/pkg/client/rp github.com/stretchr/testify/require +github.com/zitadel/oidc/pkg/client/rp github.com/lestrrat-go/jwx/internal/keyconv github.com/lestrrat-go/jwx/jws github.com/openpubkey/openpubkey/pktoken/clientinstance @@ -1378,14 +1414,14 @@ github.com/openpubkey/openpubkey/verifier github.com/openpubkey/openpubkey/providers github.com/openpubkey/opkssh/sshcert -github.com/openpubkey/openpubkey/client github.com/openpubkey/opkssh/commands/config +github.com/openpubkey/openpubkey/client github.com/openpubkey/opkssh/policy github.com/openpubkey/openpubkey/client/choosers github.com/openpubkey/opkssh/commands github.com/openpubkey/opkssh dh_auto_test -O--builddirectory=_build -O--buildsystem=golang - cd _build && go test -vet=off -v -p 42 github.com/openpubkey/opkssh github.com/openpubkey/opkssh/commands github.com/openpubkey/opkssh/commands/config github.com/openpubkey/opkssh/internal/projectpath github.com/openpubkey/opkssh/policy github.com/openpubkey/opkssh/policy/files github.com/openpubkey/opkssh/policy/plugins github.com/openpubkey/opkssh/sshcert + cd _build && go test -vet=off -v -p 40 github.com/openpubkey/opkssh github.com/openpubkey/opkssh/commands github.com/openpubkey/opkssh/commands/config github.com/openpubkey/opkssh/internal/projectpath github.com/openpubkey/opkssh/policy github.com/openpubkey/opkssh/policy/files github.com/openpubkey/opkssh/policy/plugins github.com/openpubkey/opkssh/sshcert === RUN TestIsOpenSSHVersion8Dot1OrGreater === RUN TestIsOpenSSHVersion8Dot1OrGreater/Exact_8.1 === RUN TestIsOpenSSHVersion8Dot1OrGreater/Above_8.1_(8.4) @@ -1426,7 +1462,7 @@ === RUN TestRun/Login_command_with_provider_bad_provider_good_google_issuer_but_no_client_secret_value === RUN TestRun/Login_command_with_alias_bad_alias === RUN TestRun/Verify_command_fail_on_bad_log_file_path ---- PASS: TestRun (0.01s) +--- PASS: TestRun (0.05s) --- PASS: TestRun/No_arguments (0.00s) --- PASS: TestRun/Root_Help_flag (0.00s) --- PASS: TestRun/Add_Help_flag (0.00s) @@ -1443,7 +1479,7 @@ --- PASS: TestRun/Login_command_with_provider_bad_provider_good_google_issuer_but_no_client_id_value (0.00s) --- PASS: TestRun/Login_command_with_provider_bad_provider_good_google_issuer_but_no_client_secret_value (0.00s) --- PASS: TestRun/Login_command_with_alias_bad_alias (0.00s) - --- PASS: TestRun/Verify_command_fail_on_bad_log_file_path (0.01s) + --- PASS: TestRun/Verify_command_fail_on_bad_log_file_path (0.03s) === RUN TestWithEnvVars === RUN TestWithEnvVars/Set_OPKSSH_DEFAULT_to_bad_value === RUN TestWithEnvVars/Set_OPKSSH_PROVIDERS_to_bad_value @@ -1457,74 +1493,74 @@ --- PASS: TestWithEnvVars/Set_OPKSSH_PROVIDERS_with_bad_provider (0.00s) --- PASS: TestWithEnvVars/Set_OPKSSH_PROVIDERS_with_good_provider_but_asking_for_wrong_alias (0.00s) PASS -ok github.com/openpubkey/opkssh 0.023s +ok github.com/openpubkey/opkssh 0.085s === RUN TestAddErrors -2026/11/30 19:11:54 Successfully added user with email alice@example.com with principal foo to the policy file +2025/10/29 14:53:35 Successfully added user with email alice@example.com with principal foo to the policy file --- PASS: TestAddErrors (0.00s) === RUN TestAddUniqueness -2026/11/30 19:11:54 Successfully added user with email alice@example.com with principal user1 to the policy file -2026/11/30 19:11:54 User with email alice@example.com already has access under the principal user1, skipping... -2026/11/30 19:11:54 Successfully added user with email alice@example.com with principal user2 to the policy file -2026/11/30 19:11:54 User with email alice@example.com already has access under the principal user2, skipping... +2025/10/29 14:53:35 Successfully added user with email alice@example.com with principal user1 to the policy file +2025/10/29 14:53:35 User with email alice@example.com already has access under the principal user1, skipping... +2025/10/29 14:53:35 Successfully added user with email alice@example.com with principal user2 to the policy file +2025/10/29 14:53:35 User with email alice@example.com already has access under the principal user2, skipping... --- PASS: TestAddUniqueness (0.00s) === RUN TestLoginCmd === RUN TestLoginCmd/Good_path_with_no_vars -2026/11/30 19:11:55 DEBUG: running login command with args: {Fs:0xc00017eed0 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:true KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc00032db00 Config:0xc0001f4de0 pkt: signer: alg: client: principals:[]} -2026/11/30 19:11:55 Warning: could not find issuer https://accounts.example.com in client config providers +2025/10/29 14:53:38 DEBUG: running login command with args: {Fs:0xc0002c9650 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:true KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc0000456b0 Config:0xc000230de0 pkt: signer: alg: client: principals:[]} +2025/10/29 14:53:38 Warning: could not find issuer https://accounts.example.com in client config providers Writing opk ssh public key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa-cert.pub and corresponding secret key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa id_token: { "iss": "https://accounts.example.com", "sub": "me", - "exp": 1796116315, - "iat": 1796109115, + "exp": 1761706418, + "iat": 1761699218, "email": "arthur.aardvark@example.com", - "nonce": "YPtJREhv5rBqOmaibA5ILHCF8ZGqRKEf6FKqJaatW8I" + "nonce": "-4P6Z5HiDT1EmLhqf3c42Oy3TQ8OMBpCFizLW_ib5ag" } Keys generated for identity Email, sub, issuer, audience: arthur.aardvark@example.com me https://accounts.example.com test_client_id === RUN TestLoginCmd/Good_path_(load_config) -2026/11/30 19:11:56 DEBUG: running login command with args: {Fs:0xc0002397a0 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:true KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc00023c760 Config: pkt: signer: alg: client: principals:[]} -2026/11/30 19:11:56 failed to find client config file to generate a default config, run `opkssh login --create-config` to create a default config file -2026/11/30 19:11:56 Warning: could not find issuer https://accounts.example.com in client config providers +2025/10/29 14:53:39 DEBUG: running login command with args: {Fs:0xc0003d49f0 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:true KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc0003a0ac0 Config: pkt: signer: alg: client: principals:[]} +2025/10/29 14:53:39 failed to find client config file to generate a default config, run `opkssh login --create-config` to create a default config file +2025/10/29 14:53:39 Warning: could not find issuer https://accounts.example.com in client config providers Writing opk ssh public key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa-cert.pub and corresponding secret key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa id_token: { "iss": "https://accounts.example.com", "sub": "me", - "exp": 1796116316, - "iat": 1796109116, + "exp": 1761706419, + "iat": 1761699219, "email": "arthur.aardvark@example.com", - "nonce": "M9Q-Bln7J6m3-wIVFlOblHUsJ8qKlcy8IJTugfrJ47w" + "nonce": "thsQBNBgeywkR6T4t6D77t7zd5b7PVZbZUE6L5bRL9g" } Keys generated for identity Email, sub, issuer, audience: arthur.aardvark@example.com me https://accounts.example.com test_client_id === RUN TestLoginCmd/Good_path_with_SendAccessToken_set_in_arg_and_config -2026/11/30 19:11:56 DEBUG: running login command with args: {Fs:0xc000250750 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:true DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc00032d120 Config:0xc000345620 pkt: signer: alg: client: principals:[]} +2025/10/29 14:53:40 DEBUG: running login command with args: {Fs:0xc00048aae0 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:true DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc00019d1b0 Config:0xc000122390 pkt: signer: alg: client: principals:[]} Writing opk ssh public key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa-cert.pub and corresponding secret key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa Keys generated for identity Email, sub, issuer, audience: arthur.aardvark@example.com me https://accounts.example.com test_client_id === RUN TestLoginCmd/Good_path_with_SendAccessToken_set_in_config_but_not_in_arg -2026/11/30 19:11:57 DEBUG: running login command with args: {Fs:0xc0001f5b90 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc00026ade0 Config:0xc000345620 pkt: signer: alg: client: principals:[]} +2025/10/29 14:53:43 DEBUG: running login command with args: {Fs:0xc00037c900 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc0004d2810 Config:0xc000122390 pkt: signer: alg: client: principals:[]} Writing opk ssh public key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa-cert.pub and corresponding secret key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa Keys generated for identity Email, sub, issuer, audience: arthur.aardvark@example.com me https://accounts.example.com test_client_id === RUN TestLoginCmd/Good_path_with_SendAccessToken_Arg_(issuer_not_found_in_config) -2026/11/30 19:11:58 DEBUG: running login command with args: {Fs:0xc0001f49c0 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:true DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc00032c680 Config:0xc0001f4de0 pkt: signer: alg: client: principals:[]} +2025/10/29 14:53:44 DEBUG: running login command with args: {Fs:0xc0003d7620 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:true DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0xc000044fe0 Config:0xc000230de0 pkt: signer: alg: client: principals:[]} Writing opk ssh public key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa-cert.pub and corresponding secret key to /build/reproducible-path/opkssh-0.8.0/debian/.debhelper/generated/_source/home/.ssh/id_ecdsa Keys generated for identity Email, sub, issuer, audience: arthur.aardvark@example.com me https://accounts.example.com test_client_id ---- PASS: TestLoginCmd (4.49s) - --- PASS: TestLoginCmd/Good_path_with_no_vars (0.68s) - --- PASS: TestLoginCmd/Good_path_(load_config) (1.72s) - --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_set_in_arg_and_config (0.19s) - --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_set_in_config_but_not_in_arg (0.64s) - --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_Arg_(issuer_not_found_in_config) (0.89s) +--- PASS: TestLoginCmd (8.79s) + --- PASS: TestLoginCmd/Good_path_with_no_vars (0.85s) + --- PASS: TestLoginCmd/Good_path_(load_config) (1.49s) + --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_set_in_arg_and_config (1.21s) + --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_set_in_config_but_not_in_arg (2.37s) + --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_Arg_(issuer_not_found_in_config) (1.19s) === RUN TestDetermineProvider === RUN TestDetermineProvider/Good_path_with_env_vars === RUN TestDetermineProvider/Good_path_with_env_vars_and_provider_arg_(provider_arg_takes_precedence) @@ -1544,11 +1580,11 @@ === RUN TestNewLogin --- PASS: TestNewLogin (0.00s) === RUN TestCreateSSHCert ---- PASS: TestCreateSSHCert (1.41s) +--- PASS: TestCreateSSHCert (0.55s) === RUN TestIdentityString ---- PASS: TestIdentityString (0.83s) +--- PASS: TestIdentityString (1.52s) === RUN TestPrettyPrintIdToken ---- PASS: TestPrettyPrintIdToken (0.48s) +--- PASS: TestPrettyPrintIdToken (0.70s) === RUN TestAuthorizedKeysCommand === PAUSE TestAuthorizedKeysCommand === RUN TestEnvFromConfig @@ -1567,12 +1603,12 @@ === RUN TestAuthorizedKeysCommand/Happy_Path === RUN TestAuthorizedKeysCommand/Happy_Path_(with_auth_token) === RUN TestAuthorizedKeysCommand/Wrong_auth_token ---- PASS: TestAuthorizedKeysCommand (0.69s) +--- PASS: TestAuthorizedKeysCommand (1.13s) --- PASS: TestAuthorizedKeysCommand/Happy_Path (0.00s) --- PASS: TestAuthorizedKeysCommand/Happy_Path_(with_auth_token) (0.00s) --- PASS: TestAuthorizedKeysCommand/Wrong_auth_token (0.00s) PASS -ok github.com/openpubkey/opkssh/commands 7.904s +ok github.com/openpubkey/opkssh/commands 12.716s === RUN TestParseConfig --- PASS: TestParseConfig (0.00s) === RUN TestParseConfigWithSendAccessToken @@ -1594,17 +1630,17 @@ === RUN TestProviderConfigFromString/Good_path_with_test_hello_OP === RUN TestProviderConfigFromString/Alias_set_but_no_alias_expected === RUN TestProviderConfigFromString/No_alias_set_but_alias_expected ---- PASS: TestProviderConfigFromString (0.00s) +--- PASS: TestProviderConfigFromString (0.01s) --- PASS: TestProviderConfigFromString/Good_path_with_test_providerStr (0.00s) --- PASS: TestProviderConfigFromString/Good_path_with_test_authentik_OP (0.00s) --- PASS: TestProviderConfigFromString/Good_path_with_test_Google_OP (0.00s) - --- PASS: TestProviderConfigFromString/Good_path_with_test_microsoft_OP (0.00s) + --- PASS: TestProviderConfigFromString/Good_path_with_test_microsoft_OP (0.01s) --- PASS: TestProviderConfigFromString/Good_path_with_test_microsoft_OP#01 (0.00s) --- PASS: TestProviderConfigFromString/Good_path_with_test_hello_OP (0.00s) --- PASS: TestProviderConfigFromString/Alias_set_but_no_alias_expected (0.00s) --- PASS: TestProviderConfigFromString/No_alias_set_but_alias_expected (0.00s) PASS -ok github.com/openpubkey/opkssh/commands/config 0.006s +ok github.com/openpubkey/opkssh/commands/config 0.051s ? github.com/openpubkey/opkssh/internal/projectpath [no test files] === RUN TestProvidersPolicyRow_GetExpirationPolicy --- PASS: TestProvidersPolicyRow_GetExpirationPolicy (0.00s) @@ -1673,105 +1709,40 @@ === RUN TestDump_Success === PAUSE TestDump_Success === CONT TestPolicyApproved -=== CONT TestDump_Success === CONT TestAddAllowedPrincipal ---- PASS: TestDump_Success (0.00s) -=== CONT TestLoadSystemDefaultPolicy_Success === RUN TestAddAllowedPrincipal/empty_policy policy_test.go:263: AddAllowedPrincipal(principal=test, userEmail=alice@example.com) ---- PASS: TestLoadSystemDefaultPolicy_Success (0.00s) -=== NAME TestAddAllowedPrincipal/empty_policy policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User(nil)} -=== CONT TestLoadPolicyAtPath_ReadError ---- PASS: TestLoadPolicyAtPath_ReadError (0.00s) -=== CONT TestLoadPolicyAtPath_BadPermissions -=== CONT TestPolicyApprovedOidcGroups ---- PASS: TestLoadPolicyAtPath_BadPermissions (0.00s) -=== CONT TestLoadPolicyAtPath_FileMissing ---- PASS: TestLoadPolicyAtPath_FileMissing (0.00s) -2026/11/30 19:11:54 Successfully added user with email alice@example.com with principal test to the policy file -=== CONT TestLoadUserPolicy_Success_SkipInvalidEntries -=== CONT TestPolicyDeniedBadUser -=== CONT TestLoad -=== RUN TestLoad/both_policies_are_missing ---- PASS: TestLoadUserPolicy_Success_SkipInvalidEntries (0.00s) -=== CONT TestLoadUserPolicy_Success -=== NAME TestLoad/both_policies_are_missing - multipolicyloader_test.go:189: Root policy: (*policy.Policy)(nil) - multipolicyloader_test.go:190: User policy: (*policy.Policy)(nil) -2026/11/30 19:11:54 warning: failed to load system default policy: failed to read system default policy file /etc/opk/auth_id: failed to describe the file at path: open /etc/opk/auth_id: file does not exist -2026/11/30 19:11:54 warning: failed to load user policy: failed to read user policy file /home/foo/.opk/auth_id: mock error ---- PASS: TestLoadUserPolicy_Success (0.00s) -=== CONT TestLoadUserPolicy_ErrorFile -=== RUN TestLoad/only_root_policy_exists ---- PASS: TestLoadUserPolicy_ErrorFile (0.00s) -=== CONT TestLoadUserPolicy_NoUserHomeDir ---- PASS: TestLoadUserPolicy_NoUserHomeDir (0.00s) -=== CONT TestLoadUserPolicy_FailUserLookup -=== NAME TestLoad/only_root_policy_exists - multipolicyloader_test.go:189: Root policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}}} ---- PASS: TestLoadUserPolicy_FailUserLookup (0.00s) -=== CONT TestPolicyDeniedWrongIssuer -=== NAME TestLoad/only_root_policy_exists - multipolicyloader_test.go:190: User policy: (*policy.Policy)(nil) -2026/11/30 19:11:54 warning: failed to load user policy: failed to read user policy file /home/foo/.opk/auth_id: mock error -=== CONT TestPolicyDeniedMissingOidcGroupsClaim -=== CONT TestPolicyEmailDifferentCase -=== RUN TestLoad/only_user_policy_exists -=== CONT TestLoadSystemDefaultPolicy_ErrorFile -=== CONT TestPolicyDeniedOidcGroups -=== CONT TestPolicyDeniedNoUserEntry -=== CONT TestPolicyApprovedOidcGroupWithAtSign +2025/10/29 14:53:35 Successfully added user with email alice@example.com with principal test to the policy file === RUN TestAddAllowedPrincipal/non-empty_policy._user_not_found -=== CONT TestEnforceTableTest -=== NAME TestAddAllowedPrincipal/non-empty_policy._user_not_found policy_test.go:263: AddAllowedPrincipal(principal=test, userEmail=bob@example.com) policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test", "test2"}, Issuer:"https://example.com"}}} -2026/11/30 19:11:54 Successfully added user with email bob@example.com with principal test to the policy file +2025/10/29 14:53:35 Successfully added user with email bob@example.com with principal test to the policy file === RUN TestAddAllowedPrincipal/user_already_exists._new_principal policy_test.go:263: AddAllowedPrincipal(principal=test3, userEmail=alice@example.com) policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test", "test2"}, Issuer:"https://example.com"}}} -2026/11/30 19:11:54 Successfully added user with email alice@example.com with principal test3 to the policy file -=== CONT TestPolicySub +2025/10/29 14:53:35 Successfully added user with email alice@example.com with principal test3 to the policy file === RUN TestAddAllowedPrincipal/user_already_exists._principal_not_new. -=== NAME TestLoad/only_user_policy_exists - multipolicyloader_test.go:189: Root policy: (*policy.Policy)(nil) - multipolicyloader_test.go:190: User policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"foo", "bob"}, Issuer:"https://example.com"}}} -2026/11/30 19:11:54 warning: failed to load system default policy: failed to read system default policy file /etc/opk/auth_id: failed to describe the file at path: open /etc/opk/auth_id: file does not exist ---- PASS: TestLoadSystemDefaultPolicy_ErrorFile (0.00s) -=== NAME TestAddAllowedPrincipal/user_already_exists._principal_not_new. policy_test.go:263: AddAllowedPrincipal(principal=test, userEmail=alice@example.com) -=== RUN TestLoad/both_user_and_root_policy_exist -=== NAME TestAddAllowedPrincipal/user_already_exists._principal_not_new. policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}}} -2026/11/30 19:11:54 User with email alice@example.com already has access under the principal test, skipping... -=== NAME TestLoad/both_user_and_root_policy_exist - multipolicyloader_test.go:189: Root policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"charlie@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}}} - multipolicyloader_test.go:190: User policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"foo"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"bob@example.com", Principals:[]string{"foo"}, Issuer:"https://example.com"}}} +2025/10/29 14:53:35 User with email alice@example.com already has access under the principal test, skipping... === RUN TestAddAllowedPrincipal/policy_has_duplicate_entries,_then_add_a_duplicate_entry policy_test.go:263: AddAllowedPrincipal(principal=test, userEmail=alice@example.com) policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}}} -2026/11/30 19:11:54 User with email alice@example.com already has access under the principal test, skipping... +2025/10/29 14:53:35 User with email alice@example.com already has access under the principal test, skipping... === RUN TestAddAllowedPrincipal/add_the_same_user_but_new_principal policy_test.go:263: AddAllowedPrincipal(principal=test2, userEmail=alice@example.com) -=== RUN TestLoad/both_user_and_root_policy_exist_but_no_valid_user_policy_entries -=== NAME TestAddAllowedPrincipal/add_the_same_user_but_new_principal policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test1"}, Issuer:"https://example.com"}}} -2026/11/30 19:11:54 Successfully added user with email alice@example.com with principal test2 to the policy file +2025/10/29 14:53:35 Successfully added user with email alice@example.com with principal test2 to the policy file === RUN TestAddAllowedPrincipal/add_duplicate_entry_with_complex_policy policy_test.go:263: AddAllowedPrincipal(principal=test2, userEmail=alice@example.com) policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test1"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"bob@example.com", Principals:[]string{"test2"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test1", "test2", "test3"}, Issuer:"https://example.com"}}} -2026/11/30 19:11:54 User with email alice@example.com already has access under the principal test2, skipping... -=== NAME TestLoad/both_user_and_root_policy_exist_but_no_valid_user_policy_entries - multipolicyloader_test.go:189: Root policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"charlie@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}}} +2025/10/29 14:53:35 User with email alice@example.com already has access under the principal test2, skipping... === RUN TestAddAllowedPrincipal/add_matching_user_but_new_principal_with_complex_policy policy_test.go:263: AddAllowedPrincipal(principal=test4, userEmail=alice@example.com) -=== NAME TestLoad/both_user_and_root_policy_exist_but_no_valid_user_policy_entries - multipolicyloader_test.go:190: User policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"bob@example.com", Principals:[]string{"test", "test2"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"charlie@example.com", Principals:[]string{"test", "test2", "test3"}, Issuer:"https://example.com"}}} -=== NAME TestAddAllowedPrincipal/add_matching_user_but_new_principal_with_complex_policy policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test1"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"bob@example.com", Principals:[]string{"test2"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test1", "test2", "test3"}, Issuer:"https://example.com"}}} -2026/11/30 19:11:54 Successfully added user with email alice@example.com with principal test4 to the policy file ---- PASS: TestAddAllowedPrincipal (0.01s) +2025/10/29 14:53:35 Successfully added user with email alice@example.com with principal test4 to the policy file +--- PASS: TestAddAllowedPrincipal (0.00s) --- PASS: TestAddAllowedPrincipal/empty_policy (0.00s) --- PASS: TestAddAllowedPrincipal/non-empty_policy._user_not_found (0.00s) --- PASS: TestAddAllowedPrincipal/user_already_exists._new_principal (0.00s) @@ -1780,33 +1751,85 @@ --- PASS: TestAddAllowedPrincipal/add_the_same_user_but_new_principal (0.00s) --- PASS: TestAddAllowedPrincipal/add_duplicate_entry_with_complex_policy (0.00s) --- PASS: TestAddAllowedPrincipal/add_matching_user_but_new_principal_with_complex_policy (0.00s) -2026/11/30 19:11:54 warning: user policy /home/foo/.opk/auth_id has no valid user entries; an entry is considered valid if it gives foo access. +=== CONT TestDump_Success +--- PASS: TestDump_Success (0.00s) +=== CONT TestLoadSystemDefaultPolicy_Success +--- PASS: TestLoadSystemDefaultPolicy_Success (0.00s) +=== CONT TestLoadSystemDefaultPolicy_ErrorFile +--- PASS: TestLoadSystemDefaultPolicy_ErrorFile (0.00s) +=== CONT TestLoadPolicyAtPath_ReadError +--- PASS: TestLoadPolicyAtPath_ReadError (0.00s) +=== CONT TestLoadPolicyAtPath_BadPermissions +--- PASS: TestLoadPolicyAtPath_BadPermissions (0.00s) +=== CONT TestLoadPolicyAtPath_FileMissing +--- PASS: TestLoadPolicyAtPath_FileMissing (0.00s) +=== CONT TestLoadUserPolicy_Success_SkipInvalidEntries +--- PASS: TestLoadUserPolicy_Success_SkipInvalidEntries (0.00s) +=== CONT TestLoadUserPolicy_Success +--- PASS: TestLoadUserPolicy_Success (0.00s) +=== CONT TestLoadUserPolicy_ErrorFile +--- PASS: TestLoadUserPolicy_ErrorFile (0.00s) +=== CONT TestLoadUserPolicy_NoUserHomeDir +--- PASS: TestLoadUserPolicy_NoUserHomeDir (0.00s) +=== CONT TestLoadUserPolicy_FailUserLookup +--- PASS: TestLoadUserPolicy_FailUserLookup (0.00s) +=== CONT TestPolicyApprovedOidcGroups +=== CONT TestPolicyDeniedWrongIssuer +=== CONT TestPolicyDeniedBadUser +=== CONT TestPolicyDeniedNoUserEntry +=== CONT TestPolicyDeniedMissingOidcGroupsClaim +=== CONT TestPolicySub +=== CONT TestLoad +=== CONT TestPolicyEmailDifferentCase +=== RUN TestLoad/both_policies_are_missing + multipolicyloader_test.go:189: Root policy: (*policy.Policy)(nil) + multipolicyloader_test.go:190: User policy: (*policy.Policy)(nil) +2025/10/29 14:53:35 warning: failed to load system default policy: failed to read system default policy file /etc/opk/auth_id: failed to describe the file at path: open /etc/opk/auth_id: file does not exist +2025/10/29 14:53:35 warning: failed to load user policy: failed to read user policy file /home/foo/.opk/auth_id: mock error +=== RUN TestLoad/only_root_policy_exists + multipolicyloader_test.go:189: Root policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}}} + multipolicyloader_test.go:190: User policy: (*policy.Policy)(nil) +2025/10/29 14:53:35 warning: failed to load user policy: failed to read user policy file /home/foo/.opk/auth_id: mock error +=== RUN TestLoad/only_user_policy_exists + multipolicyloader_test.go:189: Root policy: (*policy.Policy)(nil) + multipolicyloader_test.go:190: User policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"foo", "bob"}, Issuer:"https://example.com"}}} +2025/10/29 14:53:35 warning: failed to load system default policy: failed to read system default policy file /etc/opk/auth_id: failed to describe the file at path: open /etc/opk/auth_id: file does not exist +=== RUN TestLoad/both_user_and_root_policy_exist + multipolicyloader_test.go:189: Root policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"charlie@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}}} + multipolicyloader_test.go:190: User policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"foo"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"bob@example.com", Principals:[]string{"foo"}, Issuer:"https://example.com"}}} +=== RUN TestLoad/both_user_and_root_policy_exist_but_no_valid_user_policy_entries + multipolicyloader_test.go:189: Root policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"charlie@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}}} + multipolicyloader_test.go:190: User policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"bob@example.com", Principals:[]string{"test", "test2"}, Issuer:"https://example.com"}, policy.User{IdentityAttribute:"charlie@example.com", Principals:[]string{"test", "test2", "test3"}, Issuer:"https://example.com"}}} +2025/10/29 14:53:35 warning: user policy /home/foo/.opk/auth_id has no valid user entries; an entry is considered valid if it gives foo access. +=== CONT TestPolicyDeniedOidcGroups --- PASS: TestLoad (0.01s) --- PASS: TestLoad/both_policies_are_missing (0.00s) --- PASS: TestLoad/only_root_policy_exists (0.00s) --- PASS: TestLoad/only_user_policy_exists (0.00s) --- PASS: TestLoad/both_user_and_root_policy_exist (0.00s) - --- PASS: TestLoad/both_user_and_root_policy_exist_but_no_valid_user_policy_entries (0.00s) -2026/11/30 19:11:54 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyEmailDifferentCase (0.16s) -2026/11/30 19:11:54 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyApproved (0.32s) -2026/11/30 19:11:54 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedWrongIssuer (0.39s) -2026/11/30 19:11:54 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedBadUser (0.46s) -2026/11/30 19:11:54 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedOidcGroups (0.73s) -2026/11/30 19:11:54 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedMissingOidcGroupsClaim (0.87s) -2026/11/30 19:11:54 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyApprovedOidcGroups (0.88s) -2026/11/30 19:11:55 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicySub (1.29s) -2026/11/30 19:11:55 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyApprovedOidcGroupWithAtSign (1.50s) -2026/11/30 19:11:55 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedNoUserEntry (1.51s) + --- PASS: TestLoad/both_user_and_root_policy_exist_but_no_valid_user_policy_entries (0.01s) +=== CONT TestEnforceTableTest +=== CONT TestPolicyApprovedOidcGroupWithAtSign +2025/10/29 14:53:37 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedOidcGroups (1.60s) +2025/10/29 14:53:37 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyApproved (1.75s) +2025/10/29 14:53:37 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedMissingOidcGroupsClaim (2.12s) +2025/10/29 14:53:38 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyApprovedOidcGroupWithAtSign (2.30s) +2025/10/29 14:53:38 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedNoUserEntry (2.40s) +2025/10/29 14:53:38 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicySub (2.43s) +2025/10/29 14:53:38 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyEmailDifferentCase (2.45s) +2025/10/29 14:53:38 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedWrongIssuer (2.75s) +2025/10/29 14:53:38 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyApprovedOidcGroups (2.80s) +2025/10/29 14:53:38 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedBadUser (3.21s) === RUN TestEnforceTableTest/Happy_path_(No_userinfo_supplied_but_ID_Token_has_groups_claim) === PAUSE TestEnforceTableTest/Happy_path_(No_userinfo_supplied_but_ID_Token_has_groups_claim) === RUN TestEnforceTableTest/No_groups_claim_in_ID_Token @@ -1824,32 +1847,32 @@ === RUN TestEnforceTableTest/policy_loader_failure === PAUSE TestEnforceTableTest/policy_loader_failure === CONT TestEnforceTableTest/Happy_path_(No_userinfo_supplied_but_ID_Token_has_groups_claim) +=== CONT TestEnforceTableTest/Wrong_groups_claim_in_userinfo +=== CONT TestEnforceTableTest/corrupted_userinfo +=== CONT TestEnforceTableTest/policy_loader_failure === CONT TestEnforceTableTest/sub_in_userinfo_does_not_match_sub_in_ID_Token_does_not_match -=== CONT TestEnforceTableTest/Missing_groups_claim_in_userinfo -=== CONT TestEnforceTableTest/Happy_path_(Valid_user_info) +2025/10/29 14:53:48 Skipping policy plugins: no plugins found at /etc/opk/policy.d === CONT TestEnforceTableTest/No_groups_claim_in_ID_Token -=== CONT TestEnforceTableTest/policy_loader_failure -=== CONT TestEnforceTableTest/corrupted_userinfo -=== CONT TestEnforceTableTest/Wrong_groups_claim_in_userinfo -2026/11/30 19:12:01 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/11/30 19:12:01 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/11/30 19:12:01 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/11/30 19:12:01 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/11/30 19:12:01 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/11/30 19:12:01 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/11/30 19:12:01 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/11/30 19:12:01 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestEnforceTableTest (6.98s) - --- PASS: TestEnforceTableTest/sub_in_userinfo_does_not_match_sub_in_ID_Token_does_not_match (0.00s) - --- PASS: TestEnforceTableTest/Missing_groups_claim_in_userinfo (0.00s) - --- PASS: TestEnforceTableTest/policy_loader_failure (0.00s) - --- PASS: TestEnforceTableTest/Happy_path_(Valid_user_info) (0.00s) - --- PASS: TestEnforceTableTest/corrupted_userinfo (0.00s) - --- PASS: TestEnforceTableTest/Wrong_groups_claim_in_userinfo (0.00s) - --- PASS: TestEnforceTableTest/Happy_path_(No_userinfo_supplied_but_ID_Token_has_groups_claim) (0.01s) +2025/10/29 14:53:48 Skipping policy plugins: no plugins found at /etc/opk/policy.d +=== CONT TestEnforceTableTest/Happy_path_(Valid_user_info) +=== CONT TestEnforceTableTest/Missing_groups_claim_in_userinfo +2025/10/29 14:53:48 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 14:53:48 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 14:53:48 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 14:53:48 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 14:53:48 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 14:53:48 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestEnforceTableTest (13.12s) + --- PASS: TestEnforceTableTest/Happy_path_(No_userinfo_supplied_but_ID_Token_has_groups_claim) (0.00s) + --- PASS: TestEnforceTableTest/Wrong_groups_claim_in_userinfo (0.01s) + --- PASS: TestEnforceTableTest/sub_in_userinfo_does_not_match_sub_in_ID_Token_does_not_match (0.01s) + --- PASS: TestEnforceTableTest/policy_loader_failure (0.01s) + --- PASS: TestEnforceTableTest/corrupted_userinfo (0.01s) + --- PASS: TestEnforceTableTest/Missing_groups_claim_in_userinfo (0.01s) --- PASS: TestEnforceTableTest/No_groups_claim_in_ID_Token (0.01s) + --- PASS: TestEnforceTableTest/Happy_path_(Valid_user_info) (0.01s) PASS -ok github.com/openpubkey/opkssh/policy 6.999s +ok github.com/openpubkey/opkssh/policy 13.210s === RUN TestLog === RUN TestLog/empty === RUN TestLog/single_entry @@ -1897,7 +1920,7 @@ --- PASS: TestToTable/multiple_rows_with_comment (0.00s) --- PASS: TestToTable/realistic_input (0.00s) PASS -ok github.com/openpubkey/opkssh/policy/files 0.006s +ok github.com/openpubkey/opkssh/policy/files 0.023s === RUN TestLoadPolicyPluginsMissing --- PASS: TestLoadPolicyPluginsMissing (0.00s) === RUN TestLoadPolicyPlugins @@ -1906,9 +1929,9 @@ === RUN TestLoadPolicyPlugins/Mixed_valid_and_invalid_plugin_config === RUN TestLoadPolicyPlugins/Corrupt_YAML_file === RUN TestLoadPolicyPlugins/No_files_in_directory ---- PASS: TestLoadPolicyPlugins (0.00s) +--- PASS: TestLoadPolicyPlugins (0.01s) --- PASS: TestLoadPolicyPlugins/Valid_plugin_config (0.00s) - --- PASS: TestLoadPolicyPlugins/Invalid_plugin_configs_(missing_required_fields) (0.00s) + --- PASS: TestLoadPolicyPlugins/Invalid_plugin_configs_(missing_required_fields) (0.01s) --- PASS: TestLoadPolicyPlugins/Mixed_valid_and_invalid_plugin_config (0.00s) --- PASS: TestLoadPolicyPlugins/Corrupt_YAML_file (0.00s) --- PASS: TestLoadPolicyPlugins/No_files_in_directory (0.00s) @@ -1935,19 +1958,19 @@ === RUN TestPluginUnsetsEnvVar --- PASS: TestPluginUnsetsEnvVar (0.00s) === RUN TestPublicCheckPolicy ---- PASS: TestPublicCheckPolicy (0.62s) +--- PASS: TestPublicCheckPolicy (3.88s) === RUN TestNewTokens === RUN TestNewTokens/Happy_path_(all_tokens) === RUN TestNewTokens/Happy_path_(minimal_tokens) === RUN TestNewTokens/Happy_path_(string_list_audience) === RUN TestNewTokens/Wrong_type_for_email_verified_claim_in_ID_token ---- PASS: TestNewTokens (1.81s) +--- PASS: TestNewTokens (6.02s) --- PASS: TestNewTokens/Happy_path_(all_tokens) (0.00s) --- PASS: TestNewTokens/Happy_path_(minimal_tokens) (0.00s) --- PASS: TestNewTokens/Happy_path_(string_list_audience) (0.00s) --- PASS: TestNewTokens/Wrong_type_for_email_verified_claim_in_ID_token (0.00s) PASS -ok github.com/openpubkey/opkssh/policy/plugins 2.433s +ok github.com/openpubkey/opkssh/policy/plugins 9.938s === RUN TestCASignerCreation === PAUSE TestCASignerCreation === RUN TestInvalidSshPublicKey @@ -1958,14 +1981,14 @@ === CONT TestInvalidSshPublicKey === CONT TestSshCertCreation === RUN TestSshCertCreation/Happy_Path_(no_access_token) ---- PASS: TestCASignerCreation (0.00s) ---- PASS: TestInvalidSshPublicKey (0.22s) +--- PASS: TestCASignerCreation (0.02s) +--- PASS: TestInvalidSshPublicKey (0.84s) === RUN TestSshCertCreation/Happy_Path_(with_access_token) ---- PASS: TestSshCertCreation (1.87s) - --- PASS: TestSshCertCreation/Happy_Path_(no_access_token) (0.43s) - --- PASS: TestSshCertCreation/Happy_Path_(with_access_token) (1.43s) +--- PASS: TestSshCertCreation (2.99s) + --- PASS: TestSshCertCreation/Happy_Path_(no_access_token) (2.00s) + --- PASS: TestSshCertCreation/Happy_Path_(with_access_token) (1.00s) PASS -ok github.com/openpubkey/opkssh/sshcert 1.873s +ok github.com/openpubkey/opkssh/sshcert 3.036s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -1991,8 +2014,8 @@ dh_md5sums -O--builddirectory=_build -O--buildsystem=golang dh_builddeb -O--builddirectory=_build -O--buildsystem=golang dpkg-deb: building package 'opkssh' in '../opkssh_0.8.0-2_amd64.deb'. -dpkg-deb: building package 'golang-github-openpubkey-opkssh-dev' in '../golang-github-openpubkey-opkssh-dev_0.8.0-2_all.deb'. dpkg-deb: building package 'opkssh-dbgsym' in '../opkssh-dbgsym_0.8.0-2_amd64.deb'. +dpkg-deb: building package 'golang-github-openpubkey-opkssh-dev' in '../golang-github-openpubkey-opkssh-dev_0.8.0-2_all.deb'. dpkg-genbuildinfo --build=binary -O../opkssh_0.8.0-2_amd64.buildinfo dpkg-genchanges --build=binary -O../opkssh_0.8.0-2_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -2000,12 +2023,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/335131/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/335131/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/1398785 and its subdirectories -I: Current time: Mon Nov 30 19:12:15 -12 2026 -I: pbuilder-time-stamp: 1796109135 +I: removing directory /srv/workspace/pbuilder/335131 and its subdirectories +I: Current time: Wed Oct 29 14:54:21 +14 2025 +I: pbuilder-time-stamp: 1761699261