Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container prepare 2026/09/21 16:25:13 Entrypoint initialization Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container place-scripts 2026/09/21 16:25:15 Decoded script /tekton/scripts/script-0-hdxn2 2026/09/21 16:25:15 Decoded script /tekton/scripts/script-1-txl7j 2026/09/21 16:25:15 Decoded script /tekton/scripts/script-2-slr4b 2026/09/21 16:25:15 Decoded script /tekton/scripts/script-3-zwldw 2026/09/21 16:25:15 Decoded script /tekton/scripts/script-4-6l7sl 2026/09/21 16:25:15 Decoded script /tekton/scripts/script-5-rjklm 2026/09/21 16:25:15 Decoded script /tekton/scripts/script-7-2hn9r 2026/09/21 16:25:15 Decoded script /tekton/scripts/script-8-6gtv6 Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/heimdallr.git version refs/pull/191/head:PR-191@bded8e1f2d9c071ae2c449228e145e503c4678a9 to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/heimdallr * [new ref] refs/pull/191/head -> PR-191 Switched to branch 'PR-191' HEAD is now at bded8e1 feat: map named API clients to Thor organizations checked out revision: refs/pull/191/head:PR-191@bded8e1f2d9c071ae2c449228e145e503c4678a9 to dir: source Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:b6093c711a506d3f0df1936b1c31c7d39645286f,191:bded8e1f2d9c071ae2c449228e145e503c4678a9:refs/pull/191/head using base branch main and base sha b6093c711a506d3f0df1936b1c31c7d39645286f merging sha: bded8e1f2d9c071ae2c449228e145e503c4678a9 Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container step-jx-variables WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set about to run: git clone --no-checkout --filter=blob:none --depth=1 https://github.com/greencapitaltrade/mcu.git /tmp/jx-git-513448571 in dir /tmp Cloning into '/tmp/jx-git-513448571'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-513448571 about to run: git checkout in dir /tmp/jx-git-513448571 Your branch is up to date with 'origin/main'. export APP_NAME='heimdallr' export BRANCH_NAME='PR-191' export BUILD_NUMBER='1' export DOCKERFILE_PATH='Dockerfile' export DOCKER_REGISTRY='417755753340.dkr.ecr.ap-south-1.amazonaws.com' export DOCKER_REGISTRY_ORG='greencapitaltrade' export DOMAIN='gc-t.in' about to run: git rev-parse --abbrev-ref HEAD in dir . main export GIT_BRANCH='main' export JENKINS_X_URL='https://dashboard-jx.gc-t.in/greencapitaltrade/heimdallr/PR-191/1' export JX_CHART_REPOSITORY='http://jenkins-x-chartmuseum.jx.svc.cluster.local:8080' export KANIKO_FLAGS='--skip-unused-stages --snapshotMode=redo' export MINK_AS='tekton-bot' version file VERSION does not exist export MINK_IMAGE='417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-191-1-SNAPSHOT' export NAMESPACE_SUB_DOMAIN='-jx.' export PIPELINE_KIND='pullrequest' export PUSH_CONTAINER_REGISTRY='417755753340.dkr.ecr.ap-south-1.amazonaws.com' export REPO_NAME='heimdallr' export REPO_OWNER='greencapitaltrade' version file VERSION does not exist export VERSION='0.0.0-PR-191-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container step-build-make-linux go: downloading gorm.io/driver/postgres v1.6.0 go: downloading gorm.io/gorm v1.31.1 go: downloading github.com/oschwald/geoip2-golang v1.11.0 go: downloading github.com/alicebob/miniredis/v2 v2.33.0 go: downloading github.com/redis/go-redis/v9 v9.7.0 go: downloading github.com/golang-jwt/jwt/v5 v5.2.0 go: downloading github.com/valyala/fasthttp v1.69.0 go: downloading github.com/jackc/pgx/v5 v5.6.0 go: downloading github.com/jinzhu/now v1.1.5 go: downloading github.com/oschwald/maxminddb-golang v1.13.1 go: downloading github.com/alicebob/gopher-json v0.0.0-20230218143504-906a9b012302 go: downloading github.com/yuin/gopher-lua v1.1.1 go: downloading github.com/cespare/xxhash/v2 v2.2.0 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f go: downloading github.com/andybalholm/brotli v1.2.0 go: downloading github.com/klauspost/compress v1.18.2 go: downloading github.com/valyala/bytebufferpool v1.0.0 go: downloading github.com/jackc/pgpassfile v1.0.0 go: downloading github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 go: downloading golang.org/x/crypto v0.46.0 go: downloading golang.org/x/text v0.32.0 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading golang.org/x/sys v0.39.0 go: downloading github.com/jackc/puddle/v2 v2.2.2 go: downloading golang.org/x/sync v0.19.0 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO15VENDOREXPERIMENT=1 go build -ldflags '' -o bin/heimdallr . Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container step-build-make-test go: downloading gorm.io/gorm v1.31.1 go: downloading github.com/oschwald/geoip2-golang v1.11.0 go: downloading github.com/stretchr/testify v1.11.1 go: downloading github.com/alicebob/miniredis/v2 v2.33.0 go: downloading github.com/redis/go-redis/v9 v9.7.0 go: downloading gorm.io/driver/postgres v1.6.0 go: downloading github.com/golang-jwt/jwt/v5 v5.2.0 go: downloading github.com/valyala/fasthttp v1.69.0 go: downloading github.com/oschwald/maxminddb-golang v1.13.1 go: downloading github.com/jinzhu/now v1.1.5 go: downloading github.com/davecgh/go-spew v1.1.1 go: downloading github.com/pmezard/go-difflib v1.0.0 go: downloading github.com/jackc/pgx/v5 v5.6.0 go: downloading github.com/alicebob/gopher-json v0.0.0-20230218143504-906a9b012302 go: downloading github.com/yuin/gopher-lua v1.1.1 go: downloading github.com/cespare/xxhash/v2 v2.2.0 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f go: downloading github.com/andybalholm/brotli v1.2.0 go: downloading github.com/klauspost/compress v1.18.2 go: downloading github.com/valyala/bytebufferpool v1.0.0 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading golang.org/x/text v0.32.0 go: downloading golang.org/x/sys v0.39.0 go: downloading gopkg.in/yaml.v3 v3.0.1 go: downloading github.com/jackc/pgpassfile v1.0.0 go: downloading github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 go: downloading golang.org/x/crypto v0.46.0 go: downloading github.com/jackc/puddle/v2 v2.2.2 go: downloading golang.org/x/sync v0.19.0 === RUN Test_requestHandler Starting POST /v1/generate {} DEBUG: /v1/generate handler started, device from body: DEBUG: Device is empty in request body, returning 400 Starting POST /v1/generate {} DEBUG: Received POST body, length: 46 DEBUG: Successfully parsed POST body, keys: 3 DEBUG: /v1/generate handler started, device from body: lg-g8x DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 547 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 4.2914ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTUxNzMsImlhdCI6MTc5MDAwODc3MywiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InZhbnNoIiwicnhwIjoxNzkwMTgxNTczLCJzdWIiOiIxIiwidXNlcl9pZCI6MX0.FX0xK5GKbc-BIr2-88MUrVnuregfmqFh1oZYNAmpy9747Vib81kUesQkPiQQdm-yMzYK-seTvpAgyfssn9bQ4KgsyNPuOU9BL_JN03xBSOLXdZONrbqrnJ_Czy8ZswYqIl2rw9O4YpZdebxC7_g5v9vo_2jzc7KV-Lw7GvFr1vYj-POlxjBTOXwPFB1JUMs6wTlOjALIykY5_jQkOi48v24Mw6yUt_lphqKGEgWm03LBjZzz5BeXUeG9cS2euB59uVY2fAu-i9vRdeZzjXMXV5R3Rh4NhkG7K4GrueYPPfxsP5fX2GBZ0kE_KJJ6YP8DlnPFJp3SdE6nvD1YJ1OJKQ"} GET 200 /fury/pe/jaa/raha/hun 546.851µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"} Invalid token reason token is unverifiable: error while executing keyfunc: unexpected method: HS256 GET 401 /fury/pe/jaa/raha/hun 107.224µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk4MzU5NzMsImlhdCI6MTc5MDAwODc3MywibmFtZSI6ImhlbGxvIHdvcmxkIiwicnhwIjoxNzkwMTgxNTczfQ.NEdku_r9XV0P2Y-uavjHpZLHA4uXz8icUVoOYHILf070ZPV1Crwc4jQ72Vx4SdPHm1FyjxD4hcLU4ApbxnWyOtFU6mfi3ttszKJyJcF0nQMkV6po15mX6vbFMBA5RVduxRY9zS_Ljy9HmBtl00p_-N937vHx9FRAzd5FJCgAWyTSEyBuI34mFk1h5DzQcHmr55xw0kVcvYgrKk8JvL598WC45uxpYqJQGYun478Tn6gY7yrcMi2pGKMItRnvRBtDWsjZuqA3mSDjjGvTIJdfy1VBL17gmPhjq0-XoHt4htMxKpKQt1f28TSZvBRDSJeWLaLkPKDyJH59fnhIhnGl5Q"} GET 200 /fury/pe/jaa/raha/hun 87.019403ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk4MzU5NzMsImlhdCI6MTc5MDAwODc3MywibmFtZSI6ImhlbGxvIHdvcmxkIiwicnhwIjoxNzkwMTgxNTczfQ.NEdku_r9XV0P2Y-uavjHpZLHA4uXz8icUVoOYHILf070ZPV1Crwc4jQ72Vx4SdPHm1FyjxD4hcLU4ApbxnWyOtFU6mfi3ttszKJyJcF0nQMkV6po15mX6vbFMBA5RVduxRY9zS_Ljy9HmBtl00p_-N937vHx9FRAzd5FJCgAWyTSEyBuI34mFk1h5DzQcHmr55xw0kVcvYgrKk8JvL598WC45uxpYqJQGYun478Tn6gY7yrcMi2pGKMItRnvRBtDWsjZuqA3mSDjjGvTIJdfy1VBL17gmPhjq0-XoHt4htMxKpKQt1f28TSZvBRDSJeWLaLkPKDyJH59fnhIhnGl5Q"} GET 200 /fury/pe/jaa/raha/hun 3.618224ms Starting POST /v1/generate {} DEBUG: Received POST body, length: 49 DEBUG: Successfully parsed POST body, keys: 3 DEBUG: /v1/generate handler started, device from body: lg-g8x DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 555 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 3.642716ms Starting PUT /v1/session {} PUT 200 /v1/session 152.936µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTUxNzMsImlhdCI6MTc5MDAwODc3MywiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InZhbnNoIiwicnhwIjoxNzkwMTgxNTczLCJzdWIiOiIxNzIzIiwidXNlcl9pZCI6MTcyM30.ptrQIiNIYsvHl4ntUGljOFRTpF2Lj3I7FeaMHsuO7mC7LeC7PVnbZNB6KfC9pnNklrth6VS_I959JkhaaYWM7cdWDpF8d1Q_litbkSPVLTHTSCvwFLTT69lPGdnb7vRFLNoqxi1vSBznPjSWX8TGRwZzKXcuKsE5wflQDcZeZ8XxPEGGQ3WyA6Y96f8hwFNDmL7g-PZn86as04IZWTP3Ek2tDR2mXwUAB8ymKXe6MGelFIL4akmitMsx3SS_uIk1-VDsf9Nwh3Q9cAW8CMvjQcZLTEvM8V-KeuULN7XzsxFRxJjExeNO-rBHeVpUo8xCshoobvgw4Dqjf_UmIMndCg"} GET 200 /fury/pe/jaa/raha/hun 93.078578ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHAiOiJnYWxheHljYXJkIiwiZGV2aWNlIjoibGctZzh4IiwiZW1haWwiOiJ1c2VyODA2MzAwMTYwXzg5MjY1QGV4YW1wbGUuY29tIiwiZXhwIjoxNzkwMDk1MTczLCJpYXQiOjE3OTAwMDg3NzMsImlzcyI6ImhlaW1kYWxsciIsIm9yZ19pZCI6OTg3NjU0MzIxLCJwaG9uZSI6OTcwNzEyMDc1OCwicnhwIjoxNzkwMTgxNTczLCJzdWIiOiIxNzIzIiwidXNlcl9pZCI6MTcyM30.Yp63uCVnbLlmJh5wty6XGwowVuG19DJILpvKFXHJ7I7NJwKllhHFxVv8AoLr6tLVb6GsC9t6zkHFtnP8Y9GMPHoQwKGraQYupjvuIRv8mAWDknWw-9jzE_-dKvf04iBy4U6IbnSQ3kXUB-gtFuDzWrOKVF1-soWpWVBglOBIUscOryaLlooYRO-rLbyOXnKNAbGkFIg-qbNPBULGhTgbsw3_zcyfplZUx3UdsJ67qGuML1ZGFD0PIEmAoAXcEzg3087UQnYAFN0KJJg3zrmeSoNs4l-4E-sNfOzjxsegDiIWcceXlbJ3ghylwzeJ-RYR9PNPZ8bdy-DIaVgRpaYzCw"} GET 200 /fury/pe/jaa/raha/hun 4.011909ms Starting POST /v1/generate {} DEBUG: Received POST body, length: 54 DEBUG: Successfully parsed POST body, keys: 3 DEBUG: /v1/generate handler started, device from body: lg-g8x DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 575 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 3.111886ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTUxNzMsImlhdCI6MTc5MDAwODc3MywiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6Imdob3N0IiwicnhwIjoxNzkwMTgxNTczLCJzdWIiOiI5Ljk5OTk5OTk5ZSswOCIsInVzZXJfaWQiOjk5OTk5OTk5OX0.ZnIXCuk8icuUf-24ii0Ho46mGGdmJGG_rTiF-0sLwIOB-o40cYXhAK070bORF3k4_fp5EcRGU04hgjwteBs3fO0RERmBeqcPti1aZlujnBeOT-nPH6T1TaSIblJR6JeUed9wzgdjQ-aatusR6G00RZL_dYLCLodlYulxWhBqrHEin2gA2drZOHBtsd424Q-HUG-vHkvHgYvVCaF2JfBVVD8T2Du5R1kabg3GSQrJ5SO3adQOsIcv_OxU70aexv6P1kFzsPRwWnytYWhaW1xjCam7pHZzinp2ZvmuKE_bJPNi1B9N10MyoeVpufQERoO1_DUbkoR6VFkGRk72E0uQYw"} Expected status code 200 but got 404 GET 200 /fury/pe/jaa/raha/hun 604.323µs --- PASS: Test_requestHandler (0.21s) === RUN TestTokenValidation --- PASS: TestTokenValidation (0.09s) === RUN TestInvalidToken --- PASS: TestInvalidToken (0.00s) === RUN TestStripGctHeaders Stripped 4 spoofed x-gct-* headers: [X-Gct-User-Id X-Gct-Org-Id X-Gct-Admin X-Gct-Malicious] --- PASS: TestStripGctHeaders (0.00s) === RUN TestMaliciousHeadersNotForwarded Starting POST /v1/generate {} DEBUG: Received POST body, length: 59 DEBUG: Successfully parsed POST body, keys: 3 DEBUG: /v1/generate handler started, device from body: lg-g8x DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 568 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 3.949047ms Stripped 3 spoofed x-gct-* headers: [X-Gct-User-Id X-Gct-Admin X-Gct-Org-Id] Starting GET /any/protected/route {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTUxNzQsImlhdCI6MTc5MDAwODc3NCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6ImxlZ2l0aW1hdGUtdXNlciIsInJ4cCI6MTc5MDE4MTU3NCwic3ViIjoiNDY5MiIsInVzZXJfaWQiOjQ2OTJ9.lPvUwYJ4-lhiEgxDvUkOSllL_mpFk4f3iqXgodli8KEreEO3PQ2C0tH4cSyk-2qyIhBfb0ccnZzufxkUJboXyPVz5PJaiPcQx5KK0Hd0R1MfmMHxFLAkDLIALBQuq3yPS6wXhjRDcpt3_Ma1OT3RkkzlRlgGnM6WNB5Yfc6RJ7Hd8HJ9K9b6tU8Bc2dGen4EASIK-1YI88Trb_a-jWyqIz3vuDPmK7cE9-R8TxDV2bZ4LgemAKMCuXFuWt8lIKD_noJ5CArGAWnBXId1VHNDMRQPvxX0dwtsFB2O1WcREvWfN7Y8Ic-4Y1zFGjEZaLoP8lJfYU8plLrpoWOSWEVk-w"} GET 200 /any/protected/route 466.267µs --- PASS: TestMaliciousHeadersNotForwarded (0.00s) === RUN TestValidAuthorizationCookieWinsOverAPISecretWithoutPartnerLookup Starting GET /protected {"Api-Secret":"not-a-partner-secret","Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwMTIzNzQsIm5hbWUiOiJqd3QtdXNlciIsInVzZXJfaWQiOjk4NzY1NDMyMX0.SGQ7VDlW2wo1HvRnpk4YcazHWfYAfYS0nHecD4Q5aheeALBnHsFHel0XSlAV_5nvt1LrhjNtN2r6dTuXJILYjHl2iGIDMRL6iZ1GvanbcWO_O9N5zFXVDB5qDoduEbtM-gB6aLBp-6ZE7TD3rc97_dVGFQRefk5b93pjwTevfIeCxLkq3Bp_lShLSQ4dgBqnRlBSkGH2os3C1Hbhtl3FGXM0DPn71LnT-owS80gn6fR9jPqgnQ6MsSrItytTinmdyIF3wkrnjq8oSNydQDtDJKxWFH1e4E3QPLYLiiOWcWr192vvjLo7wu4JFow_IipJ3zKjxlyyQbPj1bRf7kWxYg"} GET 200 /protected 1.365991ms --- PASS: TestValidAuthorizationCookieWinsOverAPISecretWithoutPartnerLookup (0.00s) === RUN TestHeaderFormatFunction --- PASS: TestHeaderFormatFunction (0.00s) === RUN TestSetNewTokenSetsUpstreamHeaders --- PASS: TestSetNewTokenSetsUpstreamHeaders (0.00s) === RUN TestTokenRefreshSetsUpstreamCookieNotSetCookie Starting GET /any/route {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk5MjIzNzQsImlhdCI6MTc5MDAwODc3NCwicnhwIjoxNzkwMTgxNTc0LCJ1c2VyX2lkIjo5OTk5OX0.EX5UOFONPcj25abT2HEoOiPawWz-9SUhBD4LN3tF9A0T3CEqM6BWhntUhcDOZiUcTaGvHI6p3IQ_f6ADZrGwNi9odQZcuQQT-woRvCtgOYvwxxFSsulr_6cwItQv11lILXVecF9zTHtz5uODRkr4z7yCgOVtFGkhJ9uNxR8thEWeYDVe7QUE21bCG6Mkus846qnIIVNERK8fiRwytvEoEqwRHEi3fZ1zXqlx-NpJVEt1Z_8hICbU-pMDEmFd59RvqgPhyHbZ84J8Xd_repu4TCqq6UQpP4c2k8jBPZJNep9USEAF-spxNzvdJ2v8oiDiOe6u6zWAvTNhcQMZ3DhHAw"} GET 200 /any/route 2.924309ms --- PASS: TestTokenRefreshSetsUpstreamCookieNotSetCookie (0.01s) === RUN TestClearAuthorizationCookie --- PASS: TestClearAuthorizationCookie (0.00s) === RUN TestUnauthorizedResponseClearsCookieWhenFromCookie Starting GET /some/protected/route {"Cookie":"device=lg-g8x; authorization=invalid.token.here"} Invalid token reason token is malformed: could not JSON decode header: invalid character '\u008a' looking for beginning of value GET 401 /some/protected/route 48.292µs --- PASS: TestUnauthorizedResponseClearsCookieWhenFromCookie (0.00s) === RUN TestRequestWithOnlyAuthHeaderPassesThrough Starting GET /some/protected/route {"Authorization":"Bearer invalid.token.here","Device":"lg-g8x"} No Authorization token - passing through to upstream GET 200 /some/protected/route 12.701µs --- PASS: TestRequestWithOnlyAuthHeaderPassesThrough (0.00s) === RUN TestDeviceMismatchClearsCookie Starting POST /v1/generate {} DEBUG: Received POST body, length: 53 DEBUG: Successfully parsed POST body, keys: 3 DEBUG: /v1/generate handler started, device from body: lg-g8x DEBUG: About to call generateNewToken DEBUG: generateNewToken returned, token length: 560 error: DEBUG: Token generated successfully DEBUG: About to marshal response body DEBUG: Redis Del successful, setting response body DEBUG: /v1/generate completed successfully POST 200 /v1/generate 87.655115ms Starting GET /some/protected/route {"Cookie":"device=different-device-xyz; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTUxNzQsImlhdCI6MTc5MDAwODc3NCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InRlc3QtdXNlciIsInJ4cCI6MTc5MDE4MTU3NCwic3ViIjoiNDQzMSIsInVzZXJfaWQiOjQ0MzF9.MHN0bCv0vgOc9jpT_3K9qmCQSsTSpRbdir6z29-1e8_YS4LQ-rK0X6_nUCELvUzZ8G0e9JnfNeKau_W7AQEuX2qEre3TOIPjk6TXoLKsCl34dBpNyBiU3BKT_QZciqpXHr9MWFgnkM2x885kkP8sdRLD1UxjUibtva27AyQJt7L_RtnadjOrwWovyx6xUuoDWa9b9f30aO00QaqLXIosLJlgedXe-UN4ufhRsZfF2vnPznTTd3ZFWrj1xs5dd4_gwFT4bVXsRFYuo6rdfzFZwa3c1-jKpb35ITgzDrHEA5ROdLFdjUt-r-gzag-yw86wWlfPl_-2DUofRxZwx8e1xQ"} Device didn't match GET 401 /some/protected/route 369.674µs --- PASS: TestDeviceMismatchClearsCookie (0.09s) === RUN TestExpiredTokenPastRefreshWindowClearsCookie Starting GET /some/protected/route {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk1NzY3NzQsImlhdCI6MTc4OTE0NDc3NCwicnhwIjoxNzg5NzQ5NTc0LCJ1c2VyX2lkIjoxMjM0NX0.AeOqDFpJAPUeWUTtT62YjT7w0WnkNi0y44dYhVnLD_bO9_rtt0yFOm2aHbq1FfLPSOHjxG1mDqdxyRhX2r_JLDqpDE7JUvRDOXh4FSAdqcbamm80MKaeYhRpT9hDr9VjURve6pJ-52tKh24u99KukbVOMRHyoGspo3AgvxbuxkbVsJ-0UOGv1E1MIWYfuPnGEnF_TYyHCBe5BngfkAU-chNSeaBp76bt4Qx4svwkFlofokEPYdzgmNgWACyoObGyJV1adEBH4uZ4Qu-pEuByfNftpudD9ZyEdxgTJ9PLU6ZV0YYzuQ5k2TFXLcll05x6szJJSQkWIuXcQEXpw4wJVA"} Token is expired and past refresh window GET 401 /some/protected/route 210.538µs --- PASS: TestExpiredTokenPastRefreshWindowClearsCookie (0.01s) === RUN TestGeoIPHeadersNotSetWhenGPSPresent Starting GET /some/path {"Latitude":"28.6139","Longitude":"77.2090","X-Envoy-External-Address":"8.8.8.8"} No Authorization token - passing through to upstream GET 200 /some/path 36.971µs --- PASS: TestGeoIPHeadersNotSetWhenGPSPresent (0.09s) === RUN TestGeoIPHeadersAttemptedWhenNoGPS Starting GET /some/path {"X-Envoy-External-Address":"8.8.8.8"} No Authorization token - passing through to upstream GET 200 /some/path 13.45µs --- PASS: TestGeoIPHeadersAttemptedWhenNoGPS (0.00s) === RUN TestGeoIPNotTriggeredWithoutIP Starting GET /some/path {} No Authorization token - passing through to upstream GET 200 /some/path 31.822µs --- PASS: TestGeoIPNotTriggeredWithoutIP (0.00s) === RUN TestHMACAPISecret --- PASS: TestHMACAPISecret (0.00s) === RUN TestIPAllowed === RUN TestIPAllowed/exact_match === RUN TestIPAllowed/no_match === RUN TestIPAllowed/empty_allowlist_never_matches === RUN TestIPAllowed/cidr_match === RUN TestIPAllowed/cidr_miss === RUN TestIPAllowed/malformed_entry_ignored,_not_widened === RUN TestIPAllowed/malformed_entry_does_not_hide_a_valid_one === RUN TestIPAllowed/blank_entries_skipped === RUN TestIPAllowed/whitespace_around_entry_tolerated === RUN TestIPAllowed/unparseable_request_ip_denied === RUN TestIPAllowed/ipv6_exact_match === RUN TestIPAllowed/ipv6_cidr_match === RUN TestIPAllowed/v4_not_matched_by_v6_range --- PASS: TestIPAllowed (0.00s) --- PASS: TestIPAllowed/exact_match (0.00s) --- PASS: TestIPAllowed/no_match (0.00s) --- PASS: TestIPAllowed/empty_allowlist_never_matches (0.00s) --- PASS: TestIPAllowed/cidr_match (0.00s) --- PASS: TestIPAllowed/cidr_miss (0.00s) --- PASS: TestIPAllowed/malformed_entry_ignored,_not_widened (0.00s) --- PASS: TestIPAllowed/malformed_entry_does_not_hide_a_valid_one (0.00s) --- PASS: TestIPAllowed/blank_entries_skipped (0.00s) --- PASS: TestIPAllowed/whitespace_around_entry_tolerated (0.00s) --- PASS: TestIPAllowed/unparseable_request_ip_denied (0.00s) --- PASS: TestIPAllowed/ipv6_exact_match (0.00s) --- PASS: TestIPAllowed/ipv6_cidr_match (0.00s) --- PASS: TestIPAllowed/v4_not_matched_by_v6_range (0.00s) === RUN TestPartnerSourceIP === RUN TestPartnerSourceIP/reads_x-envoy-external-address === RUN TestPartnerSourceIP/ignores_caller-supplied_x-forwarded-for === RUN TestPartnerSourceIP/strips_port === RUN TestPartnerSourceIP/strips_ipv6_zone === RUN TestPartnerSourceIP/missing_header === RUN TestPartnerSourceIP/garbage_header --- PASS: TestPartnerSourceIP (0.00s) --- PASS: TestPartnerSourceIP/reads_x-envoy-external-address (0.00s) --- PASS: TestPartnerSourceIP/ignores_caller-supplied_x-forwarded-for (0.00s) --- PASS: TestPartnerSourceIP/strips_port (0.00s) --- PASS: TestPartnerSourceIP/strips_ipv6_zone (0.00s) --- PASS: TestPartnerSourceIP/missing_header (0.00s) --- PASS: TestPartnerSourceIP/garbage_header (0.00s) === RUN TestApiSecretUsesExplicitOrganizationMapping partner_auth_test.go:151: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestApiSecretUsesExplicitOrganizationMapping (0.00s) === RUN TestPackageClientsCanShareAnOrganization partner_auth_test.go:166: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestPackageClientsCanShareAnOrganization (0.00s) === RUN TestApiSecretAuthentication partner_auth_test.go:208: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestApiSecretAuthentication (0.00s) === RUN TestAuthorizationCookieTakesPrecedenceOverAPISecret partner_auth_test.go:242: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestAuthorizationCookieTakesPrecedenceOverAPISecret (0.00s) === RUN TestApiSecretIPAllowlistEnforcement partner_auth_test.go:285: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestApiSecretIPAllowlistEnforcement (0.00s) === RUN TestPepperedSecretLookup partner_auth_test.go:354: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestPepperedSecretLookup (0.00s) === RUN TestSecretHashingMigrationIsIdempotent partner_auth_test.go:391: DB_HOST not set — run inside the devcontainer stack --- SKIP: TestSecretHashingMigrationIsIdempotent (0.00s) PASS ok github.com/galaxycard/heimdallr 0.580s ? github.com/galaxycard/heimdallr/database [no test files] ? github.com/galaxycard/heimdallr/database/migrations [no test files] ? github.com/galaxycard/heimdallr/database/models [no test files] === RUN TestLookupWithoutInit --- PASS: TestLookupWithoutInit (0.00s) === RUN TestLookupInvalidIP --- PASS: TestLookupInvalidIP (0.00s) === RUN TestLookupEmptyIP --- PASS: TestLookupEmptyIP (0.00s) === RUN TestLookupPrivateIP --- PASS: TestLookupPrivateIP (0.00s) PASS ok github.com/galaxycard/heimdallr/geoip 0.073s ? github.com/galaxycard/heimdallr/redis [no test files] Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container step-build-post-test-results commented on pull request #191 on repository greencapitaltrade/heimdallr Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container step-check-registry sourcing .jx/variables.sh verifying the container registry is setup WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set about to run: git clone --no-checkout --filter=blob:none --depth=1 https://github.com/greencapitaltrade/mcu.git /tmp/jx-git-3160458475 in dir /tmp Cloning into '/tmp/jx-git-3160458475'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3160458475 about to run: git checkout in dir /tmp/jx-git-3160458475 Your branch is up to date with 'origin/main'. verifying that container registry 417755753340.dkr.ecr.ap-south-1.amazonaws.com with organisation greencapitaltrade and app name heimdallr has an ECR associated with it loading config with AWS region: 'ap-south-1' Let's ensure that we have an ECR repository for the image greencapitaltrade/heimdallr Found repository: greencapitaltrade/heimdallr Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container step-build-container-build time="2026-09-21T16:39:42Z" level=warning msg="Flag --snapshotMode is deprecated. Use: --snapshot-mode" INFO[0000] Using dockerignore file: /workspace/source/.dockerignore INFO[0000] No base image, nothing to extract INFO[0000] Built cross stage deps: map[] INFO[0000] No base image, nothing to extract INFO[0000] Executing 0 build triggers INFO[0000] Building stage 'scratch' [idx: '0', base-idx: '-1'] INFO[0000] Unpacking rootfs as cmd COPY ./bin/ / requires it. INFO[0000] EXPOSE 8080 INFO[0000] Cmd: EXPOSE INFO[0000] Adding exposed port: 8080/tcp INFO[0000] ENTRYPOINT ["/heimdallr"] INFO[0000] COPY ./bin/ / INFO[0000] Taking snapshot of files... INFO[0001] Pushing image to 417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-191-1-SNAPSHOT INFO[0002] Pushed 417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr@sha256:aa1daf34b3bf6cb010d3b3132db06ed628ad4ffe6fc7e21cb0db0044c506eac1 Showing logs for build greencapitaltrade/heimdallr/pr-191 #1 stage from-build-pack and container step-promote-jx-preview split helmfile into 2 documents for compatibility with helmfile version 1: preview/helmfile.yaml.gotmpl found PullRequest https://github.com/greencapitaltrade/heimdallr/pull/191 using ingress sub domain -jx-greencapitaltrade-heimdallr-pr-191. upserted preview jx-greencapitaltrade-heimdallr-pr-191 passing env vars into helmfile: map[string]string{"APP_NAME":"heimdallr", "DOCKER_REGISTRY":"417755753340.dkr.ecr.ap-south-1.amazonaws.com", "DOCKER_REGISTRY_ORG":"greencapitaltrade", "PREVIEW_NAMESPACE":"jx-greencapitaltrade-heimdallr-pr-191", "PR_HEAD_REF":"codex/heimdallr-token-priority", "PULL_NUMBER":"191", "VERSION":"0.0.0-PR-191-1-SNAPSHOT"} jx-greencapitaltrade-heimdallr-pr-191: LAST SEEN TYPE REASON OBJECT MESSAGE jx-greencapitaltrade-heimdallr-pr-191: 0s Normal ScalingReplicaSet deployment/preview-heimdallr Scaled up replica set preview-heimdallr-69f5748bbf from 0 to 1 jx-greencapitaltrade-heimdallr-pr-191: 0s Normal SuccessfulCreate replicaset/preview-heimdallr-69f5748bbf Created pod: preview-heimdallr-69f5748bbf-76c9d jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Scheduled pod/preview-heimdallr-69f5748bbf-76c9d Successfully assigned jx-greencapitaltrade-heimdallr-pr-191/preview-heimdallr-69f5748bbf-76c9d to ip-10-0-62-142.ap-south-1.compute.internal jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Pulling pod/preview-heimdallr-69f5748bbf-76c9d Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-191-1-SNAPSHOT" jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Pulled pod/preview-heimdallr-69f5748bbf-76c9d Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-191-1-SNAPSHOT" in 683ms (683ms including waiting). Image size: 15275632 bytes. jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Created pod/preview-heimdallr-69f5748bbf-76c9d Container created jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Started pod/preview-heimdallr-69f5748bbf-76c9d Container started jx-greencapitaltrade-heimdallr-pr-191: 0s Warning Unhealthy pod/preview-heimdallr-69f5748bbf-76c9d Readiness probe failed: Get "http://10.0.54.110:8080/_healthz": dial tcp 10.0.54.110:8080: connect: connection refused jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Pulling pod/preview-heimdallr-69f5748bbf-76c9d Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-191-1-SNAPSHOT" jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Pulled pod/preview-heimdallr-69f5748bbf-76c9d Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-191-1-SNAPSHOT" in 50ms (50ms including waiting). Image size: 15275632 bytes. jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Created pod/preview-heimdallr-69f5748bbf-76c9d Container created jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Started pod/preview-heimdallr-69f5748bbf-76c9d Container started jx-greencapitaltrade-heimdallr-pr-191: 0s Warning Unhealthy pod/preview-heimdallr-69f5748bbf-76c9d Readiness probe failed: Get "http://10.0.54.110:8080/_healthz": dial tcp 10.0.54.110:8080: connect: connection refused jx-greencapitaltrade-heimdallr-pr-191: 0s Warning BackOff pod/preview-heimdallr-69f5748bbf-76c9d Back-off restarting failed container heimdallr in pod preview-heimdallr-69f5748bbf-76c9d_jx-greencapitaltrade-heimdallr-pr-191(fea2e035-fe33-4a69-9018-27acdc4d6436) jx-greencapitaltrade-heimdallr-pr-191: 0s Warning BackOff pod/preview-heimdallr-69f5748bbf-76c9d Back-off restarting failed container heimdallr in pod preview-heimdallr-69f5748bbf-76c9d_jx-greencapitaltrade-heimdallr-pr-191(fea2e035-fe33-4a69-9018-27acdc4d6436) jx-greencapitaltrade-heimdallr-pr-191: 0s Warning BackOff pod/preview-heimdallr-69f5748bbf-76c9d Back-off restarting failed container heimdallr in pod preview-heimdallr-69f5748bbf-76c9d_jx-greencapitaltrade-heimdallr-pr-191(fea2e035-fe33-4a69-9018-27acdc4d6436) jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Pulling pod/preview-heimdallr-69f5748bbf-76c9d Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-191-1-SNAPSHOT" jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Pulled pod/preview-heimdallr-69f5748bbf-76c9d Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-191-1-SNAPSHOT" in 59ms (59ms including waiting). Image size: 15275632 bytes. jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Created pod/preview-heimdallr-69f5748bbf-76c9d Container created jx-greencapitaltrade-heimdallr-pr-191: 0s Normal Started pod/preview-heimdallr-69f5748bbf-76c9d Container started jx-greencapitaltrade-heimdallr-pr-191: 0s Warning Unhealthy pod/preview-heimdallr-69f5748bbf-76c9d Readiness probe failed: Get "http://10.0.54.110:8080/_healthz": dial tcp 10.0.54.110:8080: connect: connection refused jx-greencapitaltrade-heimdallr-pr-191: 0s Warning BackOff pod/preview-heimdallr-69f5748bbf-76c9d Back-off restarting failed container heimdallr in pod preview-heimdallr-69f5748bbf-76c9d_jx-greencapitaltrade-heimdallr-pr-191(fea2e035-fe33-4a69-9018-27acdc4d6436) jx-greencapitaltrade-heimdallr-pr-191: 0s Warning BackOff pod/preview-heimdallr-69f5748bbf-76c9d Back-off restarting failed container heimdallr in pod preview-heimdallr-69f5748bbf-76c9d_jx-greencapitaltrade-heimdallr-pr-191(fea2e035-fe33-4a69-9018-27acdc4d6436) jx-greencapitaltrade-heimdallr-pr-191: 0s Warning BackOff pod/preview-heimdallr-69f5748bbf-76c9d Back-off restarting failed container heimdallr in pod preview-heimdallr-69f5748bbf-76c9d_jx-greencapitaltrade-heimdallr-pr-191(fea2e035-fe33-4a69-9018-27acdc4d6436)  Pipeline failed on stage 'from-build-pack' : container 'step-promote-jx-preview'. The execution of the pipeline has stopped.