Showing logs for build greencapitaltrade/heimdallr/pr-190 #3 stage from-build-pack and container prepare 2026/09/21 15:42:41 Entrypoint initialization Showing logs for build greencapitaltrade/heimdallr/pr-190 #3 stage from-build-pack and container place-scripts 2026/09/21 15:42:42 Decoded script /tekton/scripts/script-0-wp5s9 2026/09/21 15:42:42 Decoded script /tekton/scripts/script-1-p8t2t 2026/09/21 15:42:42 Decoded script /tekton/scripts/script-2-hcktx 2026/09/21 15:42:42 Decoded script /tekton/scripts/script-3-6fhk8 2026/09/21 15:42:42 Decoded script /tekton/scripts/script-4-2h2d6 2026/09/21 15:42:42 Decoded script /tekton/scripts/script-5-vdfgr 2026/09/21 15:42:42 Decoded script /tekton/scripts/script-7-jhw92 2026/09/21 15:42:42 Decoded script /tekton/scripts/script-8-zzwmb Showing logs for build greencapitaltrade/heimdallr/pr-190 #3 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/heimdallr/pr-190 #3 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@708778433fe1045a77a687107be1df85a59205d0 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 7087784 fix(preview): pin Redis chart to the Redis 7 image checked out revision: refs/pull/190/head:PR-190@708778433fe1045a77a687107be1df85a59205d0 to dir: source Showing logs for build greencapitaltrade/heimdallr/pr-190 #3 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:708778433fe1045a77a687107be1df85a59205d0:refs/pull/190/head using base branch codex/heimdallr-token-priority and base sha 031b82ace23709610faa870717c5a2b9626fcb39 merging sha: 708778433fe1045a77a687107be1df85a59205d0 Showing logs for build greencapitaltrade/heimdallr/pr-190 #3 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-1805399374 in dir /tmp Cloning into '/tmp/jx-git-1805399374'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-1805399374 about to run: git checkout in dir /tmp/jx-git-1805399374 Your branch is up to date with 'origin/main'. export APP_NAME='heimdallr' export BRANCH_NAME='PR-190' export BUILD_NUMBER='3' 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/3' 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-3-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-3-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/heimdallr/pr-190 #3 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 #3 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/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.569648ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTIxODcsImlhdCI6MTc5MDAwNTc4NywiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InZhbnNoIiwicnhwIjoxNzkwMTc4NTg3LCJzdWIiOiIxIiwidXNlcl9pZCI6MX0.eyu88NkJf7rBxobfjv2_5hkboX8fxjpcFBRBzOL_raoTPYLYukrmLEuMiE-eiq_69BuLjzIuVbAAcxqQjg1S8Ft4XguYHUjeFwzyuxUhobbSGSfFSlxwh8vJAy_bT3x0O9ef9T_NGC8fojyVQ_EIB7YFE-4Kb4i0Sznzii0UmGC4qMMSKJg_DpYM3WSv28_AJAVypzguYSt7VJ9PijM2y3ZwSU1oIJcEbJVkaqH3cTbAJq9CLBWLtEsZm4ksye_D55K9mUhM4YHwAeRQezIOlDo770at-YCVNiI_Qk1WOaFI0A3ZvEZRlMt9DU5yKqy29clcbD5RruHT9gNNuK_yfQ"} GET 200 /fury/pe/jaa/raha/hun 154.539µ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 36.665µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk4MzI5ODcsImlhdCI6MTc5MDAwNTc4NywibmFtZSI6ImhlbGxvIHdvcmxkIiwicnhwIjoxNzkwMTc4NTg3fQ.hDNA2ZUKZTCIrHyO-un9_wRdoO3mPS3G_ukQD9fHhS-qiHvwK0q638IacOhMSJ4Q1-TBm1MhTSeDtKCVB-iSaiaZEWbV2PsE7DTcvuoD-1DiJjhdlwRomvu2l4Cb3gm4D8EpVI28BtJ7qFF15VFeKkzVTk6RLp-fpgOeqFERwwjnKztwMG6ij94scOLERaMYjja3S87lLG03Ry0NLPpZRF5-buX3C5FoGd05Vn_bPt_KwgbLoSffMvwFDYa2wtUjAkLbCP1FsyQIogXzbedIKj1qS0eWNbfY64oiW4wCmzgA6BbPH9QPdW0GQSo0ZVft_HRwWG5rLp4wbBn9oPlPiQ"} GET 200 /fury/pe/jaa/raha/hun 888.761µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk4MzI5ODcsImlhdCI6MTc5MDAwNTc4NywibmFtZSI6ImhlbGxvIHdvcmxkIiwicnhwIjoxNzkwMTc4NTg3fQ.hDNA2ZUKZTCIrHyO-un9_wRdoO3mPS3G_ukQD9fHhS-qiHvwK0q638IacOhMSJ4Q1-TBm1MhTSeDtKCVB-iSaiaZEWbV2PsE7DTcvuoD-1DiJjhdlwRomvu2l4Cb3gm4D8EpVI28BtJ7qFF15VFeKkzVTk6RLp-fpgOeqFERwwjnKztwMG6ij94scOLERaMYjja3S87lLG03Ry0NLPpZRF5-buX3C5FoGd05Vn_bPt_KwgbLoSffMvwFDYa2wtUjAkLbCP1FsyQIogXzbedIKj1qS0eWNbfY64oiW4wCmzgA6BbPH9QPdW0GQSo0ZVft_HRwWG5rLp4wbBn9oPlPiQ"} GET 200 /fury/pe/jaa/raha/hun 1.00021ms 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 948.986µs Starting PUT /v1/session {} PUT 200 /v1/session 39.47µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTIxODgsImlhdCI6MTc5MDAwNTc4OCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InZhbnNoIiwicnhwIjoxNzkwMTc4NTg4LCJzdWIiOiIxNzIzIiwidXNlcl9pZCI6MTcyM30.knNQhjUPbqXC8wycrwTOyLend803uQhaA_sdWPeWxC0dnKlvH0I6xytmhOO0B55KtnamingNlC9bdiVabDXMFljURKYH_7Q2AGjYmXzfDflhSqozuMTrMvT3FWDcB7V_dTiJDXDyKgPIra8VGhhpbTAF_9MTWlwZSeSOBOMFGFUeEX1G8wgpOwmk_C0LEYnjnC5--ZkhkaehDOBF_GlN5yncpX3it3ThU9igqN2bFTchKPmxgHW3nUE7EKfXlI27bHca3irtjsxr-ZdRrrwU0K-3t0aBt0IKzgssr6jKnssZL9nQ-6zUzAus4F7xZZnS2Bimvsc6dzJb0chV31lncw"} GET 200 /fury/pe/jaa/raha/hun 1.311636ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHAiOiJnYWxheHljYXJkIiwiZGV2aWNlIjoibGctZzh4IiwiZW1haWwiOiJ1c2VyMTc4MDAyXzI1NDQyQGV4YW1wbGUuY29tIiwiZXhwIjoxNzkwMDkyMTg4LCJpYXQiOjE3OTAwMDU3ODgsImlzcyI6ImhlaW1kYWxsciIsIm9yZ19pZCI6OTg3NjU0MzIxLCJwaG9uZSI6OTg3NDE1NDQzNiwicnhwIjoxNzkwMTc4NTg4LCJzdWIiOiIxNzIzIiwidXNlcl9pZCI6MTcyM30.G7IYcxIsVSXqmOp8q9KD1Df9qDzQWmYIinIhNH5rKV0FTVxnD7EHYt9CLx_dAEmBN6y3hp80jmJComrWnoAJ36Atv8IRI55AVT-9eEXnhRqEFc8FLMIkPtfR7Rij15DWQ6l3vFAq2NImTyN_mLMODuydBRxbGpLUShORTAL3IqpTn5mNupjx7UIwR5hZHxyDDdWVfZGxt6NERVBsfMJoPKTyAggUdUbZwYpETPr6wqFF1GGvw6huw7VIpNnF-1q1zTE95vjd4TCzgQg6RtlAkl_O2yO-wDKYJ_Udl8rrkrwYmccV8zkRGhB4AbFuEuxXc0wn0DabCQUrot-lr4Nogw"} GET 200 /fury/pe/jaa/raha/hun 1.055959ms 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 1.06602ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTIxODgsImlhdCI6MTc5MDAwNTc4OCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6Imdob3N0IiwicnhwIjoxNzkwMTc4NTg4LCJzdWIiOiI5Ljk5OTk5OTk5ZSswOCIsInVzZXJfaWQiOjk5OTk5OTk5OX0.JI_kfQzFW-hX_uCdn1Vylyd3W54rYDe94gfbvrU7UsuOooFN-h4ZfuYsIt0mX8yzfRUF8Awkc5KYUyzv-ibYyUmJ0LUFyFfWU3E6YTCCXELOSiQ4ikECojiTZAjqCJY2LfdEp1FZ68eJCpAoB4SXZQUP2yVsWRa8SXy_Yz8b-zVqzlniAhef98iqdzrxtkbC0fWuL-dPdxbFXKE7xS5DRzZUcA_VRhr6UtzfR6MjPIkmpzBqbEaP4L2Kx9pkGvuExlto_X4iiFdd2I1ztd-d1bKE8zuhniM6hMtcvQMO3-8uIUd2bs0jT2R1TBAx0irI8AlF6U-G6J1thJpljVGM4g"} Expected status code 200 but got 404 GET 200 /fury/pe/jaa/raha/hun 239.424µ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 86.291331ms 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.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTIxODgsImlhdCI6MTc5MDAwNTc4OCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6ImxlZ2l0aW1hdGUtdXNlciIsInJ4cCI6MTc5MDE3ODU4OCwic3ViIjoiNDU0MyIsInVzZXJfaWQiOjQ1NDN9.Az1j5mBbdixE0UawrQb3-fLSAvzn9ap9amh04ZCF6dd_PsfwaCMnkNN10g6wIpvxn6UgNrMP7CBRaivLPRD_zTg4cZgBH4-afLQrIqaUwdiv5H7F1m8ddqc1J5UEjtAGb-wLZZP6UCi7bPu0Pcoy3tk--xciqIokcAQy9JDsoLbXV1Us4Oa5ZigoNXtyCYH48GaKBS5EXtw95eZIygmzWduGio4FTFzMFq8JRh14vOkICaY_m5mpVWzPuY7m0Y36MkDx_U2MWqR4lnyH9CiKBstZMKQI2UGvUZ8Rx5bj9c7w9xc4iatkvrTNWS7TV-jC9sxTnah8FMmhxD8FfYLPIQ"} GET 200 /any/protected/route 157.528µs --- PASS: TestMaliciousHeadersNotForwarded (0.09s) === RUN TestValidAuthorizationCookieWinsOverAPISecretWithoutPartnerLookup Starting GET /protected {"Api-Secret":"not-a-partner-secret","Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwMDkzODgsIm5hbWUiOiJqd3QtdXNlciIsInVzZXJfaWQiOjk4NzY1NDMyMX0.FnGQ1uH2fmyAmhJWNE0noUC4bxFRjG5fJBQUNRDf0llHj4GODD_f3jrw08Yr3jlsjzAkgopy2KiB2FSd4cluwzSK8yzs_3tv37xwNHplnFOR9qCTdzc4Si1ZYVTPz1bXC8MYTVCAcVOzAb2mi-SXclmQEK2uCgTiHYu_pnPrTat7pXRErn19E-LjwQYRGN9_lrNt-ph46hQSpiCdeHlDA8ru_O22UG6KKD8dNweC4018m2l2uoBmOt6SiTkl3r-hVXVSa5RhmWF-TG3CGSdaDszKMWOcuge9qqx9tQAbpOBReix3FuMh7mgZBffWXzeg4hwSip8eeGRZNTnIgf7Uxg"} GET 200 /protected 474.6µ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.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk5MTkzODgsImlhdCI6MTc5MDAwNTc4OCwicnhwIjoxNzkwMTc4NTg4LCJ1c2VyX2lkIjo5OTk5OX0.tH_6NQo1_PJm6s4E8XrRxtcujIhpcE29Ecj2NzTUo26-I_X9cSdDBpF7DG6eLWru0gcRgRLOHYv3LeL-z5C9-YIDKQKKuhM5AlihXodnjLhBoWeQn6nftpIGhDg3z2FRYA_bptVMkJnPZ0mOMC4sJlUCO5VyGhq-__-bNm-YqTncxf7UDUnJKMAGpq4BCcMsyUld9gJJrrmQKUaU1GPxb1M5mGFIo0VVnTSbAfH7rJ08fjHkxzH2e-7zemglGW1Qzby_OjJ1JXE9XYjiF0HItTUT03XgCS7tF3tWVNH_lh0BHUBnc2q_APcQGoaikv3adTOe8CWYemlb5s6yeEuIqQ"} GET 200 /any/route 1.025381ms --- PASS: TestTokenRefreshSetsUpstreamCookieNotSetCookie (0.00s) === 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 23.205µ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 11.561µ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.640941ms Starting GET /some/protected/route {"Cookie":"device=different-device-xyz; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTAwOTIxODgsImlhdCI6MTc5MDAwNTc4OCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InRlc3QtdXNlciIsInJ4cCI6MTc5MDE3ODU4OCwic3ViIjoiOTYwNSIsInVzZXJfaWQiOjk2MDV9.IBjS3H5Afm6V_kVaou8lK5c4W_P4al51kzr7GR29vN4n4Z9fNgXrDO09iwwRxJOlRqZlmAYVlHEKr04nKEeKTWcUIjhGu6Z1KS1wS4VuPDylDCZBYiorXI8XUtaDAXve_QybAiZ1aUGM3V7tc2AYd-K6yDEVl_tDgOK6tVSGvJbG-vnPipzFqeKYRCELWow7B6hLVuGUyaOBiWpcnReRqntg7aL2N1WJc-gkXTxmLj2QowF3eSWD_4w5Ub6a1ZVk0KFh_i5xM9VTYNsIs8q6IW1hz7haGQYgtLUBtcgmGztC-r87gC79mWayxVcT7dmbyGwUK--XjFfK_VPqUgJHBg"} Device didn't match GET 401 /some/protected/route 66.236µs --- PASS: TestDeviceMismatchClearsCookie (0.00s) === RUN TestExpiredTokenPastRefreshWindowClearsCookie Starting GET /some/protected/route {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3ODk1NzM3ODgsImlhdCI6MTc4OTE0MTc4OCwicnhwIjoxNzg5NzQ2NTg4LCJ1c2VyX2lkIjoxMjM0NX0.cI8lBLE9CXHuK4DD9WS7YmLla0jSLv7NMrqxqXnu84GMXeXqwCp7WNg3kZr79OozWaStJZYrqAe3-SL8WoNhcz6DufsXhfkd91CpdoltuR95d3OKJHBOZLOhs4Uov5DY8F1Q6hA3SHRBapdS_MZTzNhoxv_2-VDUPtl0tLqHIKzSOWO1pqBwwLCTBReSlU3iQbFYSlPVhL9df6aFBV1aNs64pm7iIrQq3ibhp8m1BL5vR3_VWz0nCyx8BHAOJWjdXTBs82RXPTDtxo80VZJANYDZtYo1LbFtZQ5hoDOoaeJ_rOlpPN4PPZX0YfHhxIU1nsXaNXMqG0nskTa1YZROXw"} Token is expired and past refresh window GET 401 /some/protected/route 71.199µ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 8.603µ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 8.172µs --- PASS: TestGeoIPHeadersAttemptedWhenNoGPS (0.00s) === RUN TestGeoIPNotTriggeredWithoutIP Starting GET /some/path {} No Authorization token - passing through to upstream GET 200 /some/path 5.85µ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.183s ? 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 #3 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 #3 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-1849115903 in dir /tmp Cloning into '/tmp/jx-git-1849115903'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-1849115903 about to run: git checkout in dir /tmp/jx-git-1849115903 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 #3 stage from-build-pack and container step-build-container-build time="2026-09-21T15:49:55Z" 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-3-SNAPSHOT INFO[0001] Pushed 417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr@sha256:25733f8a2a62ecd3a6ac8475a30d9ff2e052a502b0c8b9cdb82e9e432b7d8b41 Showing logs for build greencapitaltrade/heimdallr/pr-190 #3 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-3-SNAPSHOT"} jx-greencapitaltrade-heimdallr-pr-190: LAST SEEN TYPE REASON OBJECT MESSAGE jx-greencapitaltrade-heimdallr-pr-190: 17m 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: 17m 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: 17m 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: 17m Normal Created pod/preview-heimdallr-5596fdcf4d-2hxkc Container created jx-greencapitaltrade-heimdallr-pr-190: 17m Normal Started pod/preview-heimdallr-5596fdcf4d-2hxkc Container started jx-greencapitaltrade-heimdallr-pr-190: 17m 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: 17m Normal SuccessfulCreate replicaset/preview-heimdallr-5596fdcf4d Created pod: preview-heimdallr-5596fdcf4d-2hxkc jx-greencapitaltrade-heimdallr-pr-190: 17m Normal Killing pod/preview-heimdallr-59fdf89f47-ktwjl Stopping container heimdallr jx-greencapitaltrade-heimdallr-pr-190: 17m Normal SuccessfulDelete replicaset/preview-heimdallr-59fdf89f47 Deleted pod: preview-heimdallr-59fdf89f47-ktwjl jx-greencapitaltrade-heimdallr-pr-190: 17m Normal ScalingReplicaSet deployment/preview-heimdallr Scaled up replica set preview-heimdallr-5596fdcf4d from 0 to 1 jx-greencapitaltrade-heimdallr-pr-190: 17m Normal ScalingReplicaSet deployment/preview-heimdallr Scaled down replica set preview-heimdallr-59fdf89f47 from 1 to 0 jx-greencapitaltrade-heimdallr-pr-190: 3m10s 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: 109s 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-c56584655 from 0 to 1 jx-greencapitaltrade-heimdallr-pr-190: 0s Normal SuccessfulCreate replicaset/preview-heimdallr-c56584655 Created pod: preview-heimdallr-c56584655-mr5s9 jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Scheduled pod/preview-heimdallr-c56584655-mr5s9 Successfully assigned jx-greencapitaltrade-heimdallr-pr-190/preview-heimdallr-c56584655-mr5s9 to ip-10-0-62-142.ap-south-1.compute.internal jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Pulling pod/preview-heimdallr-c56584655-mr5s9 Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-190-3-SNAPSHOT" jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Pulled pod/preview-heimdallr-c56584655-mr5s9 Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-190-3-SNAPSHOT" in 733ms (733ms including waiting). Image size: 15275619 bytes. jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Created pod/preview-heimdallr-c56584655-mr5s9 Container created jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Started pod/preview-heimdallr-c56584655-mr5s9 Container started jx-greencapitaltrade-heimdallr-pr-190: 0s Warning Unhealthy pod/preview-heimdallr-c56584655-mr5s9 Readiness probe failed: Get "http://10.0.54.108:8080/_healthz": dial tcp 10.0.54.108:8080: connect: connection refused jx-greencapitaltrade-heimdallr-pr-190: 0s Normal ScalingReplicaSet deployment/preview-heimdallr Scaled down replica set preview-heimdallr-5596fdcf4d from 1 to 0 jx-greencapitaltrade-heimdallr-pr-190: 0s Normal SuccessfulDelete replicaset/preview-heimdallr-5596fdcf4d Deleted pod: preview-heimdallr-5596fdcf4d-2hxkc jx-greencapitaltrade-heimdallr-pr-190: 0s Normal Killing pod/preview-heimdallr-5596fdcf4d-2hxkc Stopping container heimdallr  Pipeline failed on stage 'from-build-pack' : container 'step-promote-jx-preview'. The execution of the pipeline has stopped.