Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 stage from-build-pack and container prepare 2026/09/21 15:24:59 Entrypoint initialization Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 stage from-build-pack and container place-scripts 2026/09/21 15:25:03 Decoded script /tekton/scripts/script-0-4xljn 2026/09/21 15:25:03 Decoded script /tekton/scripts/script-1-ftk7v 2026/09/21 15:25:03 Decoded script /tekton/scripts/script-2-x7zbs 2026/09/21 15:25:03 Decoded script /tekton/scripts/script-3-rxd9l 2026/09/21 15:25:03 Decoded script /tekton/scripts/script-4-prgc6 2026/09/21 15:25:03 Decoded script /tekton/scripts/script-5-m7rp8 2026/09/21 15:25:03 Decoded script /tekton/scripts/script-7-bqsvd 2026/09/21 15:25:03 Decoded script /tekton/scripts/script-8-jxfmv Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/heimdallr.git version refs/pull/190/head:PR-190@a4b0e37fc8eae2133dfc3d4429d3210694c9419f to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/heimdallr * [new ref] refs/pull/190/head -> PR-190 Switched to branch 'PR-190' HEAD is now at a4b0e37 test: use an in-process Thor fixture checked out revision: refs/pull/190/head:PR-190@a4b0e37fc8eae2133dfc3d4429d3210694c9419f to dir: source Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=codex/heimdallr-token-priority:031b82ace23709610faa870717c5a2b9626fcb39,190:a4b0e37fc8eae2133dfc3d4429d3210694c9419f:refs/pull/190/head using base branch codex/heimdallr-token-priority and base sha 031b82ace23709610faa870717c5a2b9626fcb39 merging sha: a4b0e37fc8eae2133dfc3d4429d3210694c9419f Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 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-242785163 in dir /tmp Cloning into '/tmp/jx-git-242785163'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-242785163 about to run: git checkout in dir /tmp/jx-git-242785163 Your branch is up to date with 'origin/main'. export APP_NAME='heimdallr' export BRANCH_NAME='PR-190' export BUILD_NUMBER='2' 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 . codex/heimdallr-token-priority export GIT_BRANCH='codex/heimdallr-token-priority' export JENKINS_X_URL='https://dashboard-jx.gc-t.in/greencapitaltrade/heimdallr/PR-190/2' 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-190-2-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-190-2-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 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-190 #2 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/alicebob/gopher-json v0.0.0-20230218143504-906a9b012302 go: downloading github.com/yuin/gopher-lua v1.1.1 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/cespare/xxhash/v2 v2.2.0 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading golang.org/x/text v0.32.0 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 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 1.719956ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTExMzMsImlhdCI6MTc5MDAwNDczMywiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InZhbnNoIiwicnhwIjoxNzkwMTc3NTMzLCJzdWIiOiIxIiwidXNlcl9pZCI6MX0.dFAZtbGafzJBBmie2aMDcXrzvzChlekMZnKYW5065lmB5BgjgMq-8F21Nf2jKKJbdEuU729jT923XkB0OvMc3q-vZVnN5GxfiIwsvvYdj5xtTLX2BM7WatfV7s2CowRqATz6AkyOEMjdO8QpnLgHgrvWRM6LjEyxeYMrL-mlNFSRXGg7tfZjpg4nPX6EYNpZavylVtH9RP8Cx2n6AoaayrJs9xGe3q_JYm0VtTiH8LJQcVD6cBnSCH2BUw6YIghH3cDIDG2nJ6Tm-IK_DhaXNEpl10oJkc9UDjiYKsOJiQQqUuOR6eY9b2y19k_Ole5xMmoKSQQ9isURCVsmvAg-vQ"} GET 200 /fury/pe/jaa/raha/hun 210.114µ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 44.396µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk4MzE5MzMsImlhdCI6MTc5MDAwNDczMywibmFtZSI6ImhlbGxvIHdvcmxkIiwicnhwIjoxNzkwMTc3NTMzfQ.egfW6x8T63IAHV14vyLkAe__3Y_VFPCyTKPzi3C7FZRelqlPX10ZQr84CeF-uKMxYLCnyubVE4mO7DSeIYV7NQFihj3bhwUGp4qiUW-h3D_TsP1Np7yl6rvvkukmTFr3KBjbpilmepigBc5NJ29DfhmoqR9Z8O2kvgppf9XIzoU9bqgP0nldqr7C5PkNoB99EC37W5WlVxvvTpQ9OATkLw8qq-t7wzMkSEGjWFyP3uR0UISP8KvfziFnWsoxG1GBO25VsozjGj450F8XDoHd-Os5ers5unrrscRlFc2qmhSLs4fhqXXLV816CXzQVGEsC6Wu5qltxiOTspQsM6iaIA"} GET 200 /fury/pe/jaa/raha/hun 1.544836ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk4MzE5MzMsImlhdCI6MTc5MDAwNDczMywibmFtZSI6ImhlbGxvIHdvcmxkIiwicnhwIjoxNzkwMTc3NTMzfQ.egfW6x8T63IAHV14vyLkAe__3Y_VFPCyTKPzi3C7FZRelqlPX10ZQr84CeF-uKMxYLCnyubVE4mO7DSeIYV7NQFihj3bhwUGp4qiUW-h3D_TsP1Np7yl6rvvkukmTFr3KBjbpilmepigBc5NJ29DfhmoqR9Z8O2kvgppf9XIzoU9bqgP0nldqr7C5PkNoB99EC37W5WlVxvvTpQ9OATkLw8qq-t7wzMkSEGjWFyP3uR0UISP8KvfziFnWsoxG1GBO25VsozjGj450F8XDoHd-Os5ers5unrrscRlFc2qmhSLs4fhqXXLV816CXzQVGEsC6Wu5qltxiOTspQsM6iaIA"} GET 200 /fury/pe/jaa/raha/hun 1.556197ms 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 980.267µs Starting PUT /v1/session {} PUT 200 /v1/session 45.044µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTExMzMsImlhdCI6MTc5MDAwNDczMywiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InZhbnNoIiwicnhwIjoxNzkwMTc3NTMzLCJzdWIiOiIxNzIzIiwidXNlcl9pZCI6MTcyM30.ptcnhmrN_jn1PEQRtWskdZzIbooNJaaczwpAMGK7BcWH9uzST2hsTVQlLMA3yY0lzaoew3cLwB6tk8ESX4xB2R7Fa71vdAXxD7_aTCCY0yvlY8G5MWy2N2FX4BQuKWDQEqRP_0lV9UqQ_VxmlbBaDjrgIYorMNLv703hhxDPdB6NgYHV7bfL_sUA4K1d91dlOyIVft0LgoKdoeFtrtsuzmha661MQPCP20viQj_SSYt0bVqJIhaZeLQeV4ZfAXKmThm-jTCw2urh8jskWFstL-oNY2Pigxv91_vaZ4VjqLSLB-20eRl03iJyjLNnFFzh0BSnPvLuY4r-8_78ImG1AQ"} GET 200 /fury/pe/jaa/raha/hun 1.380449ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHAiOiJnYWxheHljYXJkIiwiZGV2aWNlIjoibGctZzh4IiwiZW1haWwiOiJ1c2VyMzkyNzY4NTExXzIxNDYzQGV4YW1wbGUuY29tIiwiZXhwIjoxNzkwMDkxMTMzLCJpYXQiOjE3OTAwMDQ3MzMsImlzcyI6ImhlaW1kYWxsciIsIm9yZ19pZCI6OTg3NjU0MzIxLCJwaG9uZSI6OTM3Mzg0MTMxNiwicnhwIjoxNzkwMTc3NTMzLCJzdWIiOiIxNzIzIiwidXNlcl9pZCI6MTcyM30.QekItCBTMmmxMT0sws0DKkX9ae_wgupyzXjl3wryYjhh9CW_1GfQrvqDNlawdeqKhrDRBwKTj_tb7eHyICqVI2pLERAX1Bz1Zo8BDZ0uKQjoGiHXBsC7EWxtPOZb7yuimGfbpndunRXq-uEM9DYlDZNhhO9h-qABsm18IxtSt_d3Hd3bkz5SaRe9uFD-QgB7hkjcT9sX_BpMNdaVLycqCEtIA6sSoGVts65JzgE3YbiEhWZGO727N_R_NGRanOZpXwvMOvOOtzV4OrTjw7je80S2nb-cV7leAvcTsf-zbTbRmknHW5aB4HHj8Zydl5SvyOyykNOIzO6uUZbaOvKqcg"} GET 200 /fury/pe/jaa/raha/hun 1.426481ms 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 948.224µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTExMzMsImlhdCI6MTc5MDAwNDczMywiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6Imdob3N0IiwicnhwIjoxNzkwMTc3NTMzLCJzdWIiOiI5Ljk5OTk5OTk5ZSswOCIsInVzZXJfaWQiOjk5OTk5OTk5OX0.sw3j4atnOnDnxMKnCOB212H0SyBmBQZvfuNIUcTLEL4eTo440qkTfdgc0NLYeTxt11EfypPfI2LUdp4f4klJ89MP7E6GS85Mk1_gXMjnuO5BTLHNs8MSH6YlqgmL10WQ7WQHLzFPUNbTZTJ30a7t0oitoMUe3ZQtkKz3CcmtRXR-hvObxvp6VMKVmCasKjDxCRrnVcMk7lP9zt6gnvZkQm1AlHAF6HHSjQOA1w7xvcIhxsP3Ebo3T0fZEMrghiiQFpqDu8rVhf-lrelU0oInhPJW8wrLuEK2XIuAz5HyUKGvK0PC3Nf8rerWOie0Z8tUto6RQ3C9y1ThMXO4ondUBQ"} Expected status code 200 but got 404 GET 200 /fury/pe/jaa/raha/hun 119.039µs --- PASS: Test_requestHandler (0.01s) === RUN TestTokenValidation --- PASS: TestTokenValidation (0.00s) === 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 1.290113ms 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.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTExMzMsImlhdCI6MTc5MDAwNDczMywiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6ImxlZ2l0aW1hdGUtdXNlciIsInJ4cCI6MTc5MDE3NzUzMywic3ViIjoiMzU4OCIsInVzZXJfaWQiOjM1ODh9.eX-YfhDdl5gYb-Art6-pcK3M4g6yAmzLCF-Nb_CmIdvLTdpo8SMYD3ny4kf2-kppFL155FwqrUKcgEVBWjh8zBccb1Z6PgYU3fZsypVzD48UyeHSoQ5dB-c_QrSzxNivIiWKKORQa8SEDx1DUNpx9MRGburddNF0s9LRuPAmAXdjaK9yOH4i8g_ZMpzi3AxI_KODF38CmvSCFnV8gSWbdVMsWQbT6LnaFIUtmu_cwS2t7gf_lqe2ZV4EJ8DaWqdrJ-xnwKG0EYvvxoWWBQ-daHC_uJIBDwhP2X5lev8hHdF7Hyi2QiHOe7OAEED-nMxKatknLWn2xnTNHgovT7gsEw"} GET 200 /any/protected/route 97.313µs --- PASS: TestMaliciousHeadersNotForwarded (0.00s) === RUN TestValidAuthorizationCookieWinsOverAPISecretWithoutPartnerLookup Starting GET /protected {"Api-Secret":"not-a-partner-secret","Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwMDgzMzMsIm5hbWUiOiJqd3QtdXNlciIsInVzZXJfaWQiOjk4NzY1NDMyMX0.iwIHdTyxH2FGCRBCVI6ZxaQ0JP9WVcylb8ElEYMaFxVLbZkS_2N8qr_XHsURGdVyh1gCHyBzNFxogFrLlNcvH02Br74rfQp7Xbus1met25AH9quUKIXbLbN3ykvddklS1P3p6A-RMmuyey7ICGnkfqXREbpyk0bG-axk8xWGfQ5nitLjO45QIl_Y-8Vmafx-kijst2sbT-5nbh-ud33EvMgUZFZPWd6cwc6HzpU2PZo15dD-mtPGvx8fYbVRK_KydC0MIBJBBDd3RKKbPpyK1ClsLgB6_M0s-w3BakPo0tAloDiYpsInFlxujgxx6qErJXc1y3Z6k9_DLEtY4Qx-xw"} GET 200 /protected 248.797µs --- 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.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk5MTgzMzMsImlhdCI6MTc5MDAwNDczMywicnhwIjoxNzkwMTc3NTMzLCJ1c2VyX2lkIjo5OTk5OX0.Vkz6GEKYJ2LtWeEW66SNIkICocljBso-1Fg60ygBDChypxVOAYPwi_w2xfY1UqrR3uQIK8CpkeUe-N6Un2_yi-2-8Nu-9bSlwX3SUztPMqqZ6fUdM32eB1p6UYCJZYNnniO4PTdUMVJgT4bm5hklCpyUx8dqueY2CzPS7BWLR5A49ioWTK0tYcB9vDGjxNfgZrM9KDzbiALjiX7RRThC9KoDGozUkNCOyZ_MdlTz0qzSSauNWpdtNe2EsUd57D0EwoWxpBPtoVTdxnrP2W3TFsVmG6R2VTwKl0KT6OwfaIu0iGX4kVDr3z_KwisGmT7JZHhasL3A46Yv_EtW0RDbQw"} GET 200 /any/route 65.331854ms --- PASS: TestTokenRefreshSetsUpstreamCookieNotSetCookie (0.07s) === 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 37.12µ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 5.354µ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 1.550019ms Starting GET /some/protected/route {"Cookie":"device=different-device-xyz; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTExMzMsImlhdCI6MTc5MDAwNDczMywiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InRlc3QtdXNlciIsInJ4cCI6MTc5MDE3NzUzMywic3ViIjoiNjY4MSIsInVzZXJfaWQiOjY2ODF9.Z_-3XosVeA3PtbNWHZ_dOOweagvYXH9KNCghiqs4JElKsn8ShVDwslrLc_nVbJlWspXEeM0Ry4UbObEIZ4VnQOgBfLgzjnznXRJ3gUEwDApxkO8kOPZGxOUrBDhmPobBye7DwFW_0NTIcHGFbe4KoaBnwTJsuYtGMG0is4v7acNWk2fYsNU7Uat-yrNbiMPnReGOVDsoixnWfrb5bQsLqZWjXABDq8yryg7VSIoHvpmJdpeZZc-uXYcZRxHKX-pA52DAyfAJu0-VX2JUcDoWChHm94xgF-KQ8pNKD0xbDlWhwR-FP7Z9-QGS4Pbzf1H5izv7Fa6GwAHpN5CmJTBsNg"} Device didn't match GET 401 /some/protected/route 109.824µs --- PASS: TestDeviceMismatchClearsCookie (0.00s) === RUN TestExpiredTokenPastRefreshWindowClearsCookie Starting GET /some/protected/route {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk1NzI3MzMsImlhdCI6MTc4OTE0MDczMywicnhwIjoxNzg5NzQ1NTMzLCJ1c2VyX2lkIjoxMjM0NX0.nxry3X_VMf7TJb-9pu1bwsrdDZ0ILoOt3DhJYzaK7ASEZpOb-jyyyKnuEJXUgmPlE5WTUgHQ2-MtnYUSoLRTjaimag8-pUugab-O6Ogme6JHIzYDfh5ixZmOdrN2QbbHmIaGqwk0w6qJisr1ZN7v_m4oYL5VXWZ8I4oTI1oYpXzp_7CUYJKUlFyFjo2Mw8wblJWwY7id6dDyku_PH1xQ4XT0HKZO2wuCPfaNWNYvhuEFT04sZgDykeqhX1DVS5qfDnn8CvkgE1PEuqwChoCp-KM2X9x7R5tqKuUDLYbzn3rpItgd4z-XoYYKeiIyIAQr9RtUV8ece5-QdClKsGjIYQ"} Token is expired and past refresh window GET 401 /some/protected/route 99.342µs --- PASS: TestExpiredTokenPastRefreshWindowClearsCookie (0.00s) === 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 11.698µs --- PASS: TestGeoIPHeadersNotSetWhenGPSPresent (0.00s) === 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 25.046µs --- PASS: TestGeoIPHeadersAttemptedWhenNoGPS (0.00s) === RUN TestGeoIPNotTriggeredWithoutIP Starting GET /some/path {} No Authorization token - passing through to upstream GET 200 /some/path 4.363µ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.094s ? 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.002s ? github.com/galaxycard/heimdallr/redis [no test files] Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 stage from-build-pack and container step-build-post-test-results commented on pull request #190 on repository greencapitaltrade/heimdallr Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 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-968203376 in dir /tmp Cloning into '/tmp/jx-git-968203376'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-968203376 about to run: git checkout in dir /tmp/jx-git-968203376 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-190 #2 stage from-build-pack and container step-build-container-build time="2026-09-21T15:32:19Z" 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-190-2-SNAPSHOT INFO[0001] Pushed 417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr@sha256:54057ba2cdd951e5e189a05c89850be42f166bee0da6b8f4aa3181418685eed1 Showing logs for build greencapitaltrade/heimdallr/pr-190 #2 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/190 using ingress sub domain -jx-greencapitaltrade-heimdallr-pr-190. upserted preview jx-greencapitaltrade-heimdallr-pr-190 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-190", "PR_HEAD_REF":"codex/heimdallr-api-client-org-mapping", "PULL_NUMBER":"190", "VERSION":"0.0.0-PR-190-2-SNAPSHOT"} jx-greencapitaltrade-heimdallr-pr-190: LAST SEEN TYPE REASON OBJECT MESSAGE jx-greencapitaltrade-heimdallr-pr-190: 76s Normal Pulled pod/redis-master-0 Container image "docker.io/bitnamilegacy/redis:7.0.15-debian-11-r2" already present on machine and can be accessed by the pod jx-greencapitaltrade-heimdallr-pr-190: 4m44s Warning BackOff pod/redis-master-0 Back-off restarting failed container redis in pod redis-master-0_jx-greencapitaltrade-heimdallr-pr-190(b7e5db25-e87b-41f4-a34b-19ea3bb48efd) jx-greencapitaltrade-heimdallr-pr-190: 0s Warning BackOff pod/redis-master-0 Back-off restarting failed container redis in pod redis-master-0_jx-greencapitaltrade-heimdallr-pr-190(b7e5db25-e87b-41f4-a34b-19ea3bb48efd) jx-greencapitaltrade-heimdallr-pr-190: 0s Normal ScalingReplicaSet deployment/preview-heimdallr Scaled up replica set preview-heimdallr-5596fdcf4d from 0 to 1 jx-greencapitaltrade-heimdallr-pr-190: 0s Normal SuccessfulCreate replicaset/preview-heimdallr-5596fdcf4d Created pod: preview-heimdallr-5596fdcf4d-2hxkc jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Scheduled pod/preview-heimdallr-5596fdcf4d-2hxkc Successfully assigned jx-greencapitaltrade-heimdallr-pr-190/preview-heimdallr-5596fdcf4d-2hxkc to ip-10-0-66-189.ap-south-1.compute.internal jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Pulling pod/preview-heimdallr-5596fdcf4d-2hxkc Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-190-2-SNAPSHOT" jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Pulled pod/preview-heimdallr-5596fdcf4d-2hxkc Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-190-2-SNAPSHOT" in 513ms (514ms including waiting). Image size: 15275611 bytes. jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Created pod/preview-heimdallr-5596fdcf4d-2hxkc Container created jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Started pod/preview-heimdallr-5596fdcf4d-2hxkc Container started jx-greencapitaltrade-heimdallr-pr-190: 0s Warning Unhealthy pod/preview-heimdallr-5596fdcf4d-2hxkc Readiness probe failed: Get "http://10.0.77.127:8080/_healthz": dial tcp 10.0.77.127:8080: connect: connection refused jx-greencapitaltrade-heimdallr-pr-190: 0s Normal ScalingReplicaSet deployment/preview-heimdallr Scaled down replica set preview-heimdallr-59fdf89f47 from 1 to 0 jx-greencapitaltrade-heimdallr-pr-190: 0s Normal SuccessfulDelete replicaset/preview-heimdallr-59fdf89f47 Deleted pod: preview-heimdallr-59fdf89f47-ktwjl jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Killing pod/preview-heimdallr-59fdf89f47-ktwjl Stopping container heimdallr  Pipeline failed on stage 'from-build-pack' : container 'step-promote-jx-preview'. The execution of the pipeline has stopped.