Diff of the two buildlogs: -- --- b1/build.log 2025-10-29 08:49:03.328377862 +0000 +++ b2/build.log 2025-10-29 08:51:45.472599081 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Dec 1 03:10:32 -12 2026 -I: pbuilder-time-stamp: 1796137832 +I: Current time: Wed Oct 29 22:49:05 +14 2025 +I: pbuilder-time-stamp: 1761727745 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/1322878/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1716642/tmp/hooks/D01_modify_environment starting +debug: Running on codethink04-arm64. +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 08: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/1716642/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1716642/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='arm64' - DEBIAN_FRONTEND='noninteractive' + 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]="aarch64-unknown-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=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='a6c9505515c8459da7c56513e6fd9bf4' - 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='1322878' - PS1='# ' - PS2='> ' + INVOCATION_ID=a7ba90e41edb406bad41d5f25fc78267 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=1716642 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.RnN9pJjY/pbuilderrc_0F1v --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.RnN9pJjY/b1 --logfile b1/build.log opkssh_0.8.0-2.dsc' - SUDO_GID='109' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4: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.RnN9pJjY/pbuilderrc_qVbu --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.RnN9pJjY/b2 --logfile b2/build.log opkssh_0.8.0-2.dsc' + SUDO_GID=109 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.12.48+deb13-cloud-arm64 #1 SMP Debian 6.12.48-1 (2025-09-20) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.12.48+deb13-cloud-arm64 #1 SMP Debian 6.12.48-1 (2025-09-20) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1322878/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1716642/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -314,7 +346,7 @@ Get: 180 http://deb.debian.org/debian forky/main arm64 golang-gopkg-ini.v1-dev all 1.67.0-1 [39.9 kB] Get: 181 http://deb.debian.org/debian forky/main arm64 golang-github-spf13-viper-dev all 1.21.0-2 [40.3 kB] Get: 182 http://deb.debian.org/debian forky/main arm64 golang-github-spf13-cobra-dev all 1.10.1-1 [80.3 kB] -Fetched 141 MB in 1s (183 MB/s) +Fetched 141 MB in 1s (156 MB/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 ... 20004 files and directories currently installed.) @@ -911,8 +943,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Dec 1 15:11:07 UTC 2026. -Universal Time is now: Tue Dec 1 15:11:07 UTC 2026. +Local time is now: Wed Oct 29 08:49:50 UTC 2025. +Universal Time is now: Wed Oct 29 08:49:50 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up golang-github-cespare-xxhash-dev (2.3.0-1) ... @@ -1063,7 +1095,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/1716642/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/1716642/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 @@ -1082,202 +1118,203 @@ 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 12 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/asan internal/msan -internal/goarch -internal/profilerecord -internal/byteorder internal/goexperiment -internal/unsafeheader +internal/byteorder +internal/godebugs internal/goos +internal/profilerecord +internal/goarch internal/coverage/rtcov -internal/godebugs -internal/runtime/math +internal/asan +internal/unsafeheader internal/runtime/syscall +internal/cpu +sync/atomic math/bits internal/itoa -sync/atomic -internal/cpu cmp unicode/utf8 unicode -internal/abi encoding +internal/abi +internal/runtime/math +internal/chacha8rand unicode/utf16 crypto/internal/fips140/alias -crypto/internal/boring/sig -internal/chacha8rand crypto/internal/fips140deps/byteorder -crypto/internal/fips140/subtle +crypto/internal/boring/sig vendor/golang.org/x/crypto/cryptobyte/asn1 container/list +crypto/internal/fips140/subtle +math vendor/golang.org/x/crypto/internal/alias internal/nettrace -math log/internal github.com/openpubkey/openpubkey/cosigner/msgs golang.org/x/crypto/internal/alias golang.org/x/crypto/salsa20/salsa log/slog/internal +go.opentelemetry.io/otel/metric/embedded +go.opentelemetry.io/otel/trace/embedded internal/bytealg +internal/runtime/sys internal/runtime/atomic crypto/internal/fips140deps/cpu -internal/runtime/sys -go.opentelemetry.io/otel/metric/embedded -go.opentelemetry.io/otel/trace/embedded github.com/zitadel/oidc/pkg/oidc/grants/tokenexchange -internal/stringslite internal/runtime/exithook +internal/stringslite go.opentelemetry.io/otel/internal internal/race internal/sync internal/runtime/maps runtime -sync -iter -weak internal/reflectlite +iter crypto/subtle -maps +sync +weak slices +maps golang.org/x/exp/maps golang.org/x/exp/slices errors sort +internal/oserror +path +math/rand/v2 +vendor/golang.org/x/net/dns/dnsmessage +strconv internal/bisect +io +internal/testlog internal/singleflight unique -log/slog/internal/buffer -internal/testlog runtime/cgo -internal/oserror -strconv -io -vendor/golang.org/x/net/dns/dnsmessage -math/rand/v2 -path syscall -reflect +log/slog/internal/buffer internal/godebug bytes +reflect +crypto/internal/randutil hash +strings internal/saferio -net/netip -crypto/internal/randutil crypto -golang.org/x/text/internal/tag -strings +crypto/internal/fips140deps/godebug hash/crc32 +golang.org/x/text/internal/tag +net/netip +math/rand golang.org/x/crypto/blowfish vendor/golang.org/x/text/transform -math/rand golang.org/x/text/transform -crypto/internal/fips140deps/godebug golang.org/x/text/runes -crypto/internal/fips140 crypto/internal/impl +github.com/kballard/go-shellquote bufio net/http/internal/ascii -regexp/syntax net/http/internal/testcert +regexp/syntax html -github.com/kballard/go-shellquote +crypto/internal/fips140 +time +internal/syscall/unix +internal/syscall/execenv crypto/internal/fips140/sha256 -crypto/internal/fips140/sha512 crypto/internal/fips140/sha3 +crypto/internal/fips140/sha512 crypto/tls/internal/fips140tls -time -internal/syscall/execenv -internal/syscall/unix crypto/sha3 crypto/internal/fips140/hmac crypto/internal/fips140/check crypto/internal/fips140hash crypto/internal/fips140/aes crypto/internal/fips140/edwards25519/field -crypto/internal/fips140/hkdf +crypto/internal/fips140/nistec/fiat crypto/internal/fips140/bigmod crypto/internal/fips140/tls12 -crypto/internal/fips140/nistec/fiat +crypto/internal/fips140/hkdf crypto/fips140 crypto/internal/fips140/tls13 crypto/internal/fips140/edwards25519 regexp +context io/fs internal/poll -context -go.opentelemetry.io/otel/internal/baggage +crypto/internal/fips140/nistec +internal/filepathlite embed github.com/spf13/afero/internal/common -internal/filepathlite -crypto/internal/fips140/nistec +go.opentelemetry.io/otel/internal/baggage +os internal/fmtsort -go.opentelemetry.io/otel/internal/attribute encoding/binary -os +go.opentelemetry.io/otel/internal/attribute encoding/base64 vendor/golang.org/x/crypto/internal/poly1305 -golang.org/x/sys/unix golang.org/x/crypto/blake2b golang.org/x/crypto/internal/poly1305 +golang.org/x/sys/unix golang.org/x/crypto/nacl/secretbox encoding/pem fmt crypto/internal/sysrand -os/signal +net path/filepath +os/signal +internal/sysinfo golang.org/x/sys/cpu io/ioutil -internal/sysinfo -net crypto/internal/entropy crypto/internal/fips140/drbg crypto/internal/fips140only crypto/internal/fips140/ecdh crypto/internal/fips140/ecdsa -crypto/internal/fips140/rsa -crypto/internal/fips140/mlkem crypto/internal/fips140/ed25519 crypto/internal/fips140/aes/gcm -os/exec +crypto/internal/fips140/rsa +crypto/internal/fips140/mlkem crypto/md5 crypto/rc4 golang.org/x/crypto/sha3 github.com/spf13/afero/mem +os/exec github.com/openpubkey/opkssh/internal/projectpath -crypto/cipher crypto/mlkem -github.com/lestrrat-go/option +crypto/cipher +encoding/json +crypto/internal/boring encoding/hex -compress/flate -math/big github.com/lestrrat-go/blackmagic github.com/lestrrat-go/httpcc -encoding/json -net/url -github.com/lestrrat-go/jwx/jwa -log -vendor/golang.org/x/text/unicode/norm -vendor/golang.org/x/net/http2/hpack -mime -crypto/internal/boring +math/big +compress/flate +crypto/des +vendor/golang.org/x/crypto/chacha20 +github.com/lestrrat-go/option crypto/ecdh +github.com/lestrrat-go/jwx/jwa crypto/sha512 crypto/aes -crypto/des crypto/hmac -vendor/golang.org/x/crypto/chacha20 crypto/sha1 -compress/gzip crypto/sha256 -vendor/golang.org/x/text/unicode/bidi +net/url +log +vendor/golang.org/x/text/unicode/norm +vendor/golang.org/x/crypto/chacha20poly1305 +vendor/golang.org/x/net/http2/hpack +mime mime/quotedprintable net/http/internal github.com/lestrrat-go/iter/arrayiter -vendor/golang.org/x/crypto/chacha20poly1305 +vendor/golang.org/x/text/unicode/bidi github.com/lestrrat-go/iter/mapiter github.com/lestrrat-go/jwx/internal/base64 golang.org/x/crypto/curve25519 +github.com/lestrrat-go/jwx/internal/iter +compress/gzip database/sql/driver github.com/go-jose/go-jose/json golang.org/x/crypto/pbkdf2 @@ -1285,14 +1322,25 @@ encoding/gob github.com/muhlemmer/gu github.com/zitadel/schema -github.com/lestrrat-go/jwx/internal/iter -github.com/davecgh/go-spew/spew golang.org/x/text/internal/language +github.com/davecgh/go-spew/spew github.com/pmezard/go-difflib/difflib -vendor/golang.org/x/text/secure/bidirule gopkg.in/yaml.v3 +vendor/golang.org/x/text/secure/bidirule flag +runtime/debug +runtime/trace vendor/golang.org/x/net/idna +github.com/lestrrat-go/jwx/internal/json +github.com/awnumar/memcall +github.com/sirupsen/logrus +log/slog +go.opentelemetry.io/otel/attribute +go.opentelemetry.io/otel/codes +text/template/parse +testing +golang.org/x/text/unicode/norm +golang.org/x/text/internal/language/compact crypto/rand crypto/elliptic crypto/internal/boring/bbig @@ -1301,76 +1349,64 @@ crypto/rsa crypto/internal/hpke crypto/dsa -github.com/lestrrat-go/jwx/internal/json +github.com/lestrrat-go/jwx/internal/ecutil github.com/lestrrat-go/jwx/internal/pool github.com/lestrrat-go/jwx/x25519 golang.org/x/crypto/ed25519 -github.com/awnumar/memcall -filippo.io/bigmod -github.com/sirupsen/logrus -github.com/lestrrat-go/jwx/internal/ecutil -log/slog -go.opentelemetry.io/otel/attribute -go.opentelemetry.io/otel/codes -golang.org/x/text/internal/language/compact -runtime/debug -runtime/trace github.com/awnumar/memguard/core -text/template/parse -vendor/golang.org/x/crypto/cryptobyte -crypto/x509/pkix -golang.org/x/text/language -testing -github.com/awnumar/memguard -golang.org/x/text/unicode/norm +filippo.io/bigmod +github.com/go-logr/logr go.opentelemetry.io/otel/metric go.opentelemetry.io/otel/trace -crypto/ecdsa -os/user -github.com/go-logr/logr -golang.org/x/crypto/chacha20 +golang.org/x/text/language github.com/gorilla/securecookie -golang.org/x/crypto/ssh/internal/bcrypt_pbkdf text/template +github.com/awnumar/memguard github.com/go-logr/logr/funcr +os/user +github.com/stretchr/testify/assert/yaml +vendor/golang.org/x/crypto/cryptobyte +crypto/x509/pkix +golang.org/x/crypto/chacha20 +golang.org/x/crypto/ssh/internal/bcrypt_pbkdf encoding/csv -github.com/go-jose/go-jose/cipher github.com/go-logr/stdr -github.com/stretchr/testify/assert/yaml +crypto/ecdsa html/template -vendor/golang.org/x/net/http/httpproxy +github.com/go-jose/go-jose/cipher +crypto/x509 net/textproto +vendor/golang.org/x/net/http/httpproxy github.com/google/uuid -crypto/x509 github.com/spf13/pflag vendor/golang.org/x/net/http/httpguts mime/multipart +crypto/tls github.com/lestrrat-go/jwx/cert -golang.org/x/crypto/ssh github.com/lestrrat-go/jwx/jwk/internal/x509 github.com/openpubkey/openpubkey/util github.com/go-jose/go-jose -crypto/tls +golang.org/x/crypto/ssh github.com/openpubkey/openpubkey/oidc github.com/spf13/cobra github.com/zitadel/oidc/pkg/crypto net/http/httptrace net/http -net/http/httptest -golang.org/x/oauth2/internal github.com/lestrrat-go/httprc -github.com/zitadel/logging -github.com/spf13/afero +golang.org/x/oauth2/internal go.opentelemetry.io/otel/propagation -golang.org/x/oauth2 +net/http/httptest +github.com/spf13/afero +github.com/zitadel/logging go.opentelemetry.io/otel/internal/global -github.com/stretchr/testify/assert +golang.org/x/oauth2 github.com/lestrrat-go/jwx/jwk -golang.org/x/oauth2/clientcredentials +github.com/stretchr/testify/assert github.com/zitadel/oidc/pkg/oidc +golang.org/x/oauth2/clientcredentials go.opentelemetry.io/otel -github.com/openpubkey/opkssh/policy/files github.com/zitadel/oidc/internal/otel +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 @@ -1388,9 +1424,9 @@ github.com/openpubkey/openpubkey/providers github.com/openpubkey/opkssh/sshcert github.com/openpubkey/openpubkey/client -github.com/openpubkey/opkssh/commands/config -github.com/openpubkey/opkssh/policy github.com/openpubkey/openpubkey/client/choosers +github.com/openpubkey/opkssh/policy +github.com/openpubkey/opkssh/commands/config github.com/openpubkey/opkssh/commands github.com/openpubkey/opkssh dh_auto_test -O--builddirectory=_build -O--buildsystem=golang @@ -1435,7 +1471,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.11s) --- PASS: TestRun/No_arguments (0.00s) --- PASS: TestRun/Root_Help_flag (0.00s) --- PASS: TestRun/Add_Help_flag (0.00s) @@ -1452,7 +1488,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.10s) === RUN TestWithEnvVars === RUN TestWithEnvVars/Set_OPKSSH_DEFAULT_to_bad_value === RUN TestWithEnvVars/Set_OPKSSH_PROVIDERS_to_bad_value @@ -1466,74 +1502,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.033s +ok github.com/openpubkey/opkssh 0.173s === RUN TestAddErrors -2026/12/01 03:11:41 Successfully added user with email alice@example.com with principal foo to the policy file +2025/10/29 22:50:52 Successfully added user with email alice@example.com with principal foo to the policy file --- PASS: TestAddErrors (0.00s) === RUN TestAddUniqueness -2026/12/01 03:11:41 Successfully added user with email alice@example.com with principal user1 to the policy file -2026/12/01 03:11:41 User with email alice@example.com already has access under the principal user1, skipping... -2026/12/01 03:11:41 Successfully added user with email alice@example.com with principal user2 to the policy file -2026/12/01 03:11:41 User with email alice@example.com already has access under the principal user2, skipping... +2025/10/29 22:50:52 Successfully added user with email alice@example.com with principal user1 to the policy file +2025/10/29 22:50:52 User with email alice@example.com already has access under the principal user1, skipping... +2025/10/29 22:50:52 Successfully added user with email alice@example.com with principal user2 to the policy file +2025/10/29 22:50:52 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/12/01 03:11:43 DEBUG: running login command with args: {Fs:0x40002f6300 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:true KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x4000115ce0 Config:0x4000236de0 pkt: signer: alg: client: principals:[]} -2026/12/01 03:11:43 Warning: could not find issuer https://accounts.example.com in client config providers +2025/10/29 22:50:56 DEBUG: running login command with args: {Fs:0x4000175380 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:true KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x40002d47d0 Config:0x4000212420 pkt: signer: alg: client: principals:[]} +2025/10/29 22:50:56 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": 1796145103, - "iat": 1796137903, + "exp": 1761735056, + "iat": 1761727856, "email": "arthur.aardvark@example.com", - "nonce": "FU24T1VexzIt9DKBTW54yTx7EdaS5AyCUkLCda9wM6A" + "nonce": "zM6_VManmrg4j3DGrcKxZ-f70OcARmLUonJmZSNd89M" } 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/12/01 03:11:44 DEBUG: running login command with args: {Fs:0x40004e59b0 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:true KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x400039c7d0 Config: pkt: signer: alg: client: principals:[]} -2026/12/01 03:11:44 failed to find client config file to generate a default config, run `opkssh login --create-config` to create a default config file -2026/12/01 03:11:44 Warning: could not find issuer https://accounts.example.com in client config providers +2025/10/29 22:50:57 DEBUG: running login command with args: {Fs:0x400035de90 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:true KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x40002d4490 Config: pkt: signer: alg: client: principals:[]} +2025/10/29 22:50:57 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 22:50:57 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": 1796145104, - "iat": 1796137904, + "exp": 1761735057, + "iat": 1761727857, "email": "arthur.aardvark@example.com", - "nonce": "n1hRPao6tktOV-hbHLzhEIqPX4jE-6-LuWP33Sqqhkk" + "nonce": "aY-gP3Fum41SYArH9I0SJhBzhWxeiGTqCBihCsLhLAY" } 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/12/01 03:11:45 DEBUG: running login command with args: {Fs:0x40002f6540 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:true DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x40000426a0 Config:0x40004e51d0 pkt: signer: alg: client: principals:[]} +2025/10/29 22:50:58 DEBUG: running login command with args: {Fs:0x400035cc90 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:true DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x400042e140 Config:0x40002c3920 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/12/01 03:11:46 DEBUG: running login command with args: {Fs:0x4000329110 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x4000488800 Config:0x40004e51d0 pkt: signer: alg: client: principals:[]} +2025/10/29 22:50:59 DEBUG: running login command with args: {Fs:0x4000213410 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:false DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x4000042140 Config:0x40002c3920 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/12/01 03:11:46 DEBUG: running login command with args: {Fs:0x400044a3f0 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:true DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x400019d010 Config:0x4000236de0 pkt: signer: alg: client: principals:[]} +2025/10/29 22:51:00 DEBUG: running login command with args: {Fs:0x4000385a70 AutoRefreshArg:false ConfigPathArg: CreateConfigArg:false ConfigureArg:false LogDirArg:./logs SendAccessTokenArg:true DisableBrowserOpenArg:false PrintIdTokenArg:false KeyPathArg: ProviderArg: ProviderAliasArg: SSHConfigured:false Verbosity:2 overrideProvider:0x4000043850 Config:0x4000212420 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.85s) - --- PASS: TestLoginCmd/Good_path_with_no_vars (0.90s) - --- PASS: TestLoginCmd/Good_path_(load_config) (0.42s) - --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_set_in_arg_and_config (1.09s) - --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_set_in_config_but_not_in_arg (0.73s) - --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_Arg_(issuer_not_found_in_config) (0.58s) +--- PASS: TestLoginCmd (7.93s) + --- PASS: TestLoginCmd/Good_path_with_no_vars (2.40s) + --- PASS: TestLoginCmd/Good_path_(load_config) (1.10s) + --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_set_in_arg_and_config (1.43s) + --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_set_in_config_but_not_in_arg (1.05s) + --- PASS: TestLoginCmd/Good_path_with_SendAccessToken_Arg_(issuer_not_found_in_config) (1.06s) === RUN TestDetermineProvider === RUN TestDetermineProvider/Good_path_with_env_vars === RUN TestDetermineProvider/Good_path_with_env_vars_and_provider_arg_(provider_arg_takes_precedence) @@ -1553,11 +1589,11 @@ === RUN TestNewLogin --- PASS: TestNewLogin (0.00s) === RUN TestCreateSSHCert ---- PASS: TestCreateSSHCert (1.17s) +--- PASS: TestCreateSSHCert (1.01s) === RUN TestIdentityString ---- PASS: TestIdentityString (0.93s) +--- PASS: TestIdentityString (0.78s) === RUN TestPrettyPrintIdToken ---- PASS: TestPrettyPrintIdToken (0.46s) +--- PASS: TestPrettyPrintIdToken (2.27s) === RUN TestAuthorizedKeysCommand === PAUSE TestAuthorizedKeysCommand === RUN TestEnvFromConfig @@ -1576,12 +1612,12 @@ === RUN TestAuthorizedKeysCommand/Happy_Path === RUN TestAuthorizedKeysCommand/Happy_Path_(with_auth_token) === RUN TestAuthorizedKeysCommand/Wrong_auth_token ---- PASS: TestAuthorizedKeysCommand (0.95s) - --- PASS: TestAuthorizedKeysCommand/Happy_Path (0.01s) - --- PASS: TestAuthorizedKeysCommand/Happy_Path_(with_auth_token) (0.01s) - --- PASS: TestAuthorizedKeysCommand/Wrong_auth_token (0.01s) +--- PASS: TestAuthorizedKeysCommand (1.49s) + --- PASS: TestAuthorizedKeysCommand/Happy_Path (0.02s) + --- PASS: TestAuthorizedKeysCommand/Happy_Path_(with_auth_token) (0.02s) + --- PASS: TestAuthorizedKeysCommand/Wrong_auth_token (0.02s) PASS -ok github.com/openpubkey/opkssh/commands 8.407s +ok github.com/openpubkey/opkssh/commands 13.571s === RUN TestParseConfig --- PASS: TestParseConfig (0.00s) === RUN TestParseConfigWithSendAccessToken @@ -1613,7 +1649,7 @@ --- 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.042s +ok github.com/openpubkey/opkssh/commands/config 0.043s ? github.com/openpubkey/opkssh/internal/projectpath [no test files] === RUN TestProvidersPolicyRow_GetExpirationPolicy --- PASS: TestProvidersPolicyRow_GetExpirationPolicy (0.00s) @@ -1682,48 +1718,8 @@ === RUN TestDump_Success === PAUSE TestDump_Success === CONT TestPolicyApproved -=== CONT TestAddAllowedPrincipal -=== RUN TestAddAllowedPrincipal/empty_policy - policy_test.go:263: AddAllowedPrincipal(principal=test, userEmail=alice@example.com) - policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User(nil)} -2026/12/01 03:11:41 Successfully added user with email alice@example.com with principal test to the policy file -=== RUN 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/12/01 03:11:41 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/12/01 03:11:41 Successfully added user with email alice@example.com with principal test3 to the policy file -=== RUN TestAddAllowedPrincipal/user_already_exists._principal_not_new. - 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"}}} -2026/12/01 03:11:41 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/12/01 03:11:41 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) - 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/12/01 03:11:41 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/12/01 03:11:41 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) - 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/12/01 03:11:41 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) - --- PASS: TestAddAllowedPrincipal/user_already_exists._principal_not_new. (0.00s) - --- PASS: TestAddAllowedPrincipal/policy_has_duplicate_entries,_then_add_a_duplicate_entry (0.00s) - --- 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) +=== CONT TestLoadUserPolicy_FailUserLookup +--- PASS: TestLoadUserPolicy_FailUserLookup (0.00s) === CONT TestDump_Success --- PASS: TestDump_Success (0.00s) === CONT TestLoadSystemDefaultPolicy_Success @@ -1744,65 +1740,106 @@ --- PASS: TestLoadUserPolicy_ErrorFile (0.00s) === CONT TestLoadUserPolicy_NoUserHomeDir --- PASS: TestLoadUserPolicy_NoUserHomeDir (0.00s) -=== CONT TestLoadUserPolicy_FailUserLookup ---- PASS: TestLoadUserPolicy_FailUserLookup (0.00s) -=== CONT TestPolicyApprovedOidcGroups -=== CONT TestPolicyDeniedBadUser -=== CONT TestPolicySub -=== CONT TestPolicyEmailDifferentCase -=== CONT TestPolicyDeniedMissingOidcGroupsClaim -=== CONT TestPolicyDeniedOidcGroups +=== CONT TestPolicyApprovedOidcGroupWithAtSign +=== CONT TestEnforceTableTest +=== CONT TestAddAllowedPrincipal +=== RUN TestAddAllowedPrincipal/empty_policy + policy_test.go:263: AddAllowedPrincipal(principal=test, userEmail=alice@example.com) + policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User(nil)} +2025/10/29 22:50:52 Successfully added user with email alice@example.com with principal test to the policy file +=== RUN 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"}}} +2025/10/29 22:50:52 Successfully added user with email bob@example.com with principal test to the policy file +=== RUN TestAddAllowedPrincipal/user_already_exists._new_principal === CONT TestLoad +=== CONT TestPolicyDeniedNoUserEntry === RUN TestLoad/both_policies_are_missing multipolicyloader_test.go:189: Root policy: (*policy.Policy)(nil) multipolicyloader_test.go:190: User policy: (*policy.Policy)(nil) -2026/12/01 03:11:41 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/12/01 03:11:41 warning: failed to load user policy: failed to read user policy file /home/foo/.opk/auth_id: mock error +2025/10/29 22:50:52 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 22:50:52 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) -2026/12/01 03:11:41 warning: failed to load user policy: failed to read user policy file /home/foo/.opk/auth_id: mock error +2025/10/29 22:50:52 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"}}} -2026/12/01 03:11:41 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 22:50:52 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"}}} -2026/12/01 03:11:41 warning: user policy /home/foo/.opk/auth_id has no valid user entries; an entry is considered valid if it gives foo access. +2025/10/29 22:50:52 warning: user policy /home/foo/.opk/auth_id has no valid user entries; an entry is considered valid if it gives foo access. --- PASS: TestLoad (0.00s) --- 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) -=== CONT TestPolicyApprovedOidcGroupWithAtSign +=== NAME 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"}}} +2025/10/29 22:50:52 Successfully added user with email alice@example.com with principal test3 to the policy file +=== RUN TestAddAllowedPrincipal/user_already_exists._principal_not_new. + 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"}}} +2025/10/29 22:50:52 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"}}} +2025/10/29 22:50:52 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) + policy_test.go:264: Initial policy: &policy.Policy{Users:[]policy.User{policy.User{IdentityAttribute:"alice@example.com", Principals:[]string{"test1"}, Issuer:"https://example.com"}}} +2025/10/29 22:50:52 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"}}} +2025/10/29 22:50:52 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) + 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"}}} +2025/10/29 22:50:52 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) + --- PASS: TestAddAllowedPrincipal/user_already_exists._principal_not_new. (0.00s) + --- PASS: TestAddAllowedPrincipal/policy_has_duplicate_entries,_then_add_a_duplicate_entry (0.00s) + --- 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) +=== CONT TestPolicyDeniedMissingOidcGroupsClaim +=== CONT TestPolicySub +=== CONT TestPolicyDeniedBadUser +=== CONT TestPolicyDeniedOidcGroups +=== CONT TestPolicyEmailDifferentCase +=== CONT TestPolicyApprovedOidcGroups === CONT TestPolicyDeniedWrongIssuer -=== CONT TestPolicyDeniedNoUserEntry -=== CONT TestEnforceTableTest -2026/12/01 03:11:42 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedBadUser (0.60s) -2026/12/01 03:11:42 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyApprovedOidcGroupWithAtSign (0.63s) -2026/12/01 03:11:42 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedNoUserEntry (0.95s) -2026/12/01 03:11:42 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedOidcGroups (1.03s) -2026/12/01 03:11:42 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyApprovedOidcGroups (1.07s) -2026/12/01 03:11:43 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicySub (1.23s) -2026/12/01 03:11:43 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 22:50:54 Skipping policy plugins: no plugins found at /etc/opk/policy.d --- PASS: TestPolicyEmailDifferentCase (1.54s) -2026/12/01 03:11:44 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyApproved (2.10s) -2026/12/01 03:11:44 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedMissingOidcGroupsClaim (2.29s) -2026/12/01 03:11:44 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestPolicyDeniedWrongIssuer (2.40s) +2025/10/29 22:50:55 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedMissingOidcGroupsClaim (2.17s) +2025/10/29 22:50:55 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedBadUser (2.36s) +2025/10/29 22:50:55 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyApprovedOidcGroups (2.42s) +2025/10/29 22:50:55 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicySub (2.67s) +2025/10/29 22:50:56 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedOidcGroups (3.62s) +2025/10/29 22:50:56 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedWrongIssuer (3.79s) +2025/10/29 22:50:57 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyApproved (4.35s) +2025/10/29 22:50:57 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyApprovedOidcGroupWithAtSign (4.39s) +2025/10/29 22:50:58 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestPolicyDeniedNoUserEntry (6.03s) === 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 @@ -1820,32 +1857,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/Missing_groups_claim_in_userinfo -=== CONT TestEnforceTableTest/No_groups_claim_in_ID_Token -2026/12/01 03:11:50 Skipping policy plugins: no plugins found at /etc/opk/policy.d === CONT TestEnforceTableTest/policy_loader_failure -2026/12/01 03:11:50 Skipping policy plugins: no plugins found at /etc/opk/policy.d +=== CONT TestEnforceTableTest/No_groups_claim_in_ID_Token +2025/10/29 22:51:05 Skipping policy plugins: no plugins found at /etc/opk/policy.d +=== CONT TestEnforceTableTest/Missing_groups_claim_in_userinfo === CONT TestEnforceTableTest/sub_in_userinfo_does_not_match_sub_in_ID_Token_does_not_match === CONT TestEnforceTableTest/Happy_path_(Valid_user_info) -=== CONT TestEnforceTableTest/Wrong_groups_claim_in_userinfo -2026/12/01 03:11:50 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/12/01 03:11:50 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/12/01 03:11:50 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/12/01 03:11:50 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/12/01 03:11:50 Skipping policy plugins: no plugins found at /etc/opk/policy.d -2026/12/01 03:11:50 Skipping policy plugins: no plugins found at /etc/opk/policy.d ---- PASS: TestEnforceTableTest (8.28s) +2025/10/29 22:51:05 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 22:51:05 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 22:51:05 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 22:51:05 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 22:51:05 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 22:51:05 Skipping policy plugins: no plugins found at /etc/opk/policy.d +2025/10/29 22:51:05 Skipping policy plugins: no plugins found at /etc/opk/policy.d +--- PASS: TestEnforceTableTest (12.33s) --- PASS: TestEnforceTableTest/corrupted_userinfo (0.01s) - --- PASS: TestEnforceTableTest/Happy_path_(No_userinfo_supplied_but_ID_Token_has_groups_claim) (0.01s) - --- PASS: TestEnforceTableTest/No_groups_claim_in_ID_Token (0.01s) - --- PASS: TestEnforceTableTest/policy_loader_failure (0.01s) - --- PASS: TestEnforceTableTest/Happy_path_(Valid_user_info) (0.01s) --- PASS: TestEnforceTableTest/Missing_groups_claim_in_userinfo (0.02s) - --- PASS: TestEnforceTableTest/sub_in_userinfo_does_not_match_sub_in_ID_Token_does_not_match (0.01s) - --- PASS: TestEnforceTableTest/Wrong_groups_claim_in_userinfo (0.01s) + --- PASS: TestEnforceTableTest/Wrong_groups_claim_in_userinfo (0.02s) + --- PASS: TestEnforceTableTest/No_groups_claim_in_ID_Token (0.02s) + --- PASS: TestEnforceTableTest/policy_loader_failure (0.03s) + --- PASS: TestEnforceTableTest/sub_in_userinfo_does_not_match_sub_in_ID_Token_does_not_match (0.02s) + --- PASS: TestEnforceTableTest/Happy_path_(No_userinfo_supplied_but_ID_Token_has_groups_claim) (0.03s) + --- PASS: TestEnforceTableTest/Happy_path_(Valid_user_info) (0.02s) PASS -ok github.com/openpubkey/opkssh/policy 8.353s +ok github.com/openpubkey/opkssh/policy 12.429s === RUN TestLog === RUN TestLog/empty === RUN TestLog/single_entry @@ -1893,7 +1930,7 @@ --- PASS: TestToTable/multiple_rows_with_comment (0.00s) --- PASS: TestToTable/realistic_input (0.00s) PASS -ok github.com/openpubkey/opkssh/policy/files 0.027s +ok github.com/openpubkey/opkssh/policy/files 0.032s === RUN TestLoadPolicyPluginsMissing --- PASS: TestLoadPolicyPluginsMissing (0.00s) === RUN TestLoadPolicyPlugins @@ -1931,19 +1968,19 @@ === RUN TestPluginUnsetsEnvVar --- PASS: TestPluginUnsetsEnvVar (0.00s) === RUN TestPublicCheckPolicy ---- PASS: TestPublicCheckPolicy (1.35s) +--- PASS: TestPublicCheckPolicy (2.47s) === 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 (3.57s) +--- PASS: TestNewTokens (6.01s) --- 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 4.966s +ok github.com/openpubkey/opkssh/policy/plugins 8.529s === RUN TestCASignerCreation === PAUSE TestCASignerCreation === RUN TestInvalidSshPublicKey @@ -1954,14 +1991,14 @@ === CONT TestSshCertCreation === RUN TestSshCertCreation/Happy_Path_(no_access_token) === CONT TestInvalidSshPublicKey ---- PASS: TestCASignerCreation (0.03s) +--- PASS: TestCASignerCreation (0.05s) +--- PASS: TestInvalidSshPublicKey (1.63s) === RUN TestSshCertCreation/Happy_Path_(with_access_token) ---- PASS: TestInvalidSshPublicKey (1.22s) ---- PASS: TestSshCertCreation (2.27s) - --- PASS: TestSshCertCreation/Happy_Path_(no_access_token) (1.15s) - --- PASS: TestSshCertCreation/Happy_Path_(with_access_token) (1.12s) +--- PASS: TestSshCertCreation (3.97s) + --- PASS: TestSshCertCreation/Happy_Path_(no_access_token) (2.28s) + --- PASS: TestSshCertCreation/Happy_Path_(with_access_token) (1.69s) PASS -ok github.com/openpubkey/opkssh/sshcert 2.315s +ok github.com/openpubkey/opkssh/sshcert 4.040s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -1996,12 +2033,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/1716642/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1716642/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/1322878 and its subdirectories -I: Current time: Tue Dec 1 03:12:02 -12 2026 -I: pbuilder-time-stamp: 1796137922 +I: removing directory /srv/workspace/pbuilder/1716642 and its subdirectories +I: Current time: Wed Oct 29 22:51:44 +14 2025 +I: pbuilder-time-stamp: 1761727904