Showing logs for build greencapitaltrade/heimdallr/pr-192 #1 stage from-build-pack and container prepare 2026/10/25 15:51:45 Entrypoint initialization Showing logs for build greencapitaltrade/heimdallr/pr-192 #1 stage from-build-pack and container place-scripts 2026/10/25 15:51:45 Decoded script /tekton/scripts/script-0-9d5zv 2026/10/25 15:51:45 Decoded script /tekton/scripts/script-1-d52c7 2026/10/25 15:51:45 Decoded script /tekton/scripts/script-2-5wkdk 2026/10/25 15:51:45 Decoded script /tekton/scripts/script-3-qqwvz 2026/10/25 15:51:45 Decoded script /tekton/scripts/script-4-2txfh 2026/10/25 15:51:45 Decoded script /tekton/scripts/script-5-fhrgl 2026/10/25 15:51:45 Decoded script /tekton/scripts/script-7-p9tzt 2026/10/25 15:51:45 Decoded script /tekton/scripts/script-8-5cvc2 Showing logs for build greencapitaltrade/heimdallr/pr-192 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/heimdallr/pr-192 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/heimdallr.git version refs/pull/192/head:PR-192@b0408559ec560d33db1b2118143f9dca92bc71ec to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/heimdallr * [new ref] refs/pull/192/head -> PR-192 Switched to branch 'PR-192' HEAD is now at b040855 fix: bound GeoIP download startup resources checked out revision: refs/pull/192/head:PR-192@b0408559ec560d33db1b2118143f9dca92bc71ec to dir: source Showing logs for build greencapitaltrade/heimdallr/pr-192 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:7fcbb270509eb8982d27651355ff77ef11176f37,192:b0408559ec560d33db1b2118143f9dca92bc71ec:refs/pull/192/head using base branch main and base sha 7fcbb270509eb8982d27651355ff77ef11176f37 merging sha: b0408559ec560d33db1b2118143f9dca92bc71ec Showing logs for build greencapitaltrade/heimdallr/pr-192 #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-4188920618 in dir /tmp Cloning into '/tmp/jx-git-4188920618'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-4188920618 about to run: git checkout in dir /tmp/jx-git-4188920618 Your branch is up to date with 'origin/main'. export APP_NAME='heimdallr' export BRANCH_NAME='PR-192' 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-192/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-192-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-192-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/heimdallr/pr-192 #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/cespare/xxhash/v2 v2.2.0 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f 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/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-192 #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 gopkg.in/yaml.v3 v3.0.1 go: downloading github.com/golang-jwt/jwt/v5 v5.2.0 go: downloading github.com/valyala/fasthttp v1.69.0 go: downloading gorm.io/driver/postgres v1.6.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/cespare/xxhash/v2 v2.2.0 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f 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/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 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.286041ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTMwMzA3ODQsImlhdCI6MTc5Mjk0NDM4NCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InZhbnNoIiwicnhwIjoxNzkzMTE3MTg0LCJzdWIiOiIxIiwidXNlcl9pZCI6MX0.iDlh90kj12LT6X1LGcQ2MFhwQPYejE4cYH8SaEONNp_KUFZFqk3F8M_ymIdol8dVhNsbmeiGL9LM_2R6CsCpZj2KGzjP5nNHOpnPjA__9ha2k-n531uKIzbGlats-_ZYjnmNG8YSsnbKJFKxOIdzgY0pGT_dxnend_dRTsT9zn69osE4rxZpTACSj89E3DLxkiqAHYA50oeP_C1zuMfxiwVAVRG8CCgJJgoLJAE_3V_42huDstQYIWI1ZmsdLnZXJwmYD7LNPiSFc4PPK9WUvDBG8W9UHfIuIb0hRSXeMkp1aq86p8WjMzxq-UaGXqBRLmeJeKycAgQa_MXmgN4Ouw"} GET 200 /fury/pe/jaa/raha/hun 506.366µ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 75.671µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTI3NzE1ODQsImlhdCI6MTc5Mjk0NDM4NCwibmFtZSI6ImhlbGxvIHdvcmxkIiwicnhwIjoxNzkzMTE3MTg0fQ.tUncfgkXyMnvUHvqXYeIUp1EvD3fVKzy6l6Rg3zyE2GhbvhlYDwb9oXWZ-ORIbhpHDLY8bzK7fTceMXqHSVQ3uWY_BvlUK1_iQWvNHqyJGVQZJw_UD_8MiikeATOnWdvXq7bx9sHo7pTqQNf5kZqrf6xJ2IERDkpKq0FeFSG-uB0C1D-4V7l7oKmioQ4PVRn2_sb0wQ7la0bOHBPzqxkdvS0XP9fMcwvs2hXuqsDVgxqUfciLMEUZyn9Rm7tqgqUFQsvPh7sxMSJURsoQCSiw_YsPtEpdvPfxHLAes_mpzw96LWYWUJkeKJz2_W2aLm-dSGXG3kDtuEru1Rk0bTTMQ"} GET 200 /fury/pe/jaa/raha/hun 2.660312ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTI3NzE1ODQsImlhdCI6MTc5Mjk0NDM4NCwibmFtZSI6ImhlbGxvIHdvcmxkIiwicnhwIjoxNzkzMTE3MTg0fQ.tUncfgkXyMnvUHvqXYeIUp1EvD3fVKzy6l6Rg3zyE2GhbvhlYDwb9oXWZ-ORIbhpHDLY8bzK7fTceMXqHSVQ3uWY_BvlUK1_iQWvNHqyJGVQZJw_UD_8MiikeATOnWdvXq7bx9sHo7pTqQNf5kZqrf6xJ2IERDkpKq0FeFSG-uB0C1D-4V7l7oKmioQ4PVRn2_sb0wQ7la0bOHBPzqxkdvS0XP9fMcwvs2hXuqsDVgxqUfciLMEUZyn9Rm7tqgqUFQsvPh7sxMSJURsoQCSiw_YsPtEpdvPfxHLAes_mpzw96LWYWUJkeKJz2_W2aLm-dSGXG3kDtuEru1Rk0bTTMQ"} GET 200 /fury/pe/jaa/raha/hun 2.749443ms 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 2.767593ms Starting PUT /v1/session {} PUT 200 /v1/session 156.262µs Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTMwMzA3ODQsImlhdCI6MTc5Mjk0NDM4NCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InZhbnNoIiwicnhwIjoxNzkzMTE3MTg0LCJzdWIiOiIxNzIzIiwidXNlcl9pZCI6MTcyM30.mcawbQ3vOwbUIwWgmIkwB2IYZA3rKbL_7EAlTTBwRFGtxmQkn4rnZy838IjwwOCvbP9ogV2JcOSfPwHRusziXDKmWL36Q9qjJ8DCOvHlea17YhcuXmeGDFKdK1-PKGXpNqs2tIR0i3H0X8dsCMp7G-f4oYEZmkxCFfh9SoVe_5XxVz61LWyFoRTfE8XgnYSRG157xL7-KPBP4T_c9Nb6B0lSA5opcppoiWqa3_yoxrFeU98gN6apsPQVUjezMuyfI7NDr7ITCzsS3qdsM79s4-VzuRrc5Buao-NsNeOVJhEOQCVKQzuf2Dav-VctB7dZnDlb5WPUe2xptPiA5DZWFQ"} GET 200 /fury/pe/jaa/raha/hun 78.602454ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHAiOiJnYWxheHljYXJkIiwiZGV2aWNlIjoibGctZzh4IiwiZW1haWwiOiJ1c2VyOTAyMzc4NTYzXzYyMTg5QGV4YW1wbGUuY29tIiwiZXhwIjoxNzkzMDMwNzg0LCJpYXQiOjE3OTI5NDQzODQsImlzcyI6ImhlaW1kYWxsciIsIm9yZ19pZCI6OTg3NjU0MzIxLCJwaG9uZSI6OTEyMDUyMzE1NiwicnhwIjoxNzkzMTE3MTg0LCJzdWIiOiIxNzIzIiwidXNlcl9pZCI6MTcyM30.eKK2A4VkYFYVVTW6cgLHAXWfh9yZvxYAKuCyBj5PlTs6Wl8OiS1Y0mJ26fvZgle9tEkGMifqqHEzAUArfNoUWIW5uq2-GHbM8jIJ2GX1kaQga3flBVfsvp-X_TKqnoUTOUmcxtMrXj_JpEHuRcegnEKYzPxhtfjh9_z7sNJ3AHz_t25Owkj8bwSRGndpH_jtAu06txeLdhlmVaCcL-OD1JgOsW9WoyOmywLVmAv1uj6CUZc_Umpp8B5Lw2oaR7qZQDh2iUGlf25xVHJTMI6NuvS6-mXQAYGUVfCONRqJ5rn3tvSg0z1YWmcBbGZ5M1h_MA0byPGHCbTJvRSZx1H1zw"} GET 200 /fury/pe/jaa/raha/hun 4.20159ms 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 2.980316ms Starting GET /fury/pe/jaa/raha/hun {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTMwMzA3ODQsImlhdCI6MTc5Mjk0NDM4NCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6Imdob3N0IiwicnhwIjoxNzkzMTE3MTg0LCJzdWIiOiI5Ljk5OTk5OTk5ZSswOCIsInVzZXJfaWQiOjk5OTk5OTk5OX0.R01GIIZoHKZ9dtMV7riJ9OHSZSV7j2ohTyGh4B_H-XFBoGlUhXWU8fc-WANMV95kHK31scNWvNb4gKSkz3lsx48yzO5H2n8QvIMKKrg8C61y6Cyo60n3mOQ92dH3e76rABTGmDdcLvrpzxTZAuFFuNheAhhdiSWorJXf5IPA3nY9Hi9_W4TiWJd-dIkm9yG_gAB4PVdvgeq529soHPtZyrtnI7oqTM3CPtWqqdjjCBB5I_UeJfBNixfsEwqbhvvPtq7RYvO5qYv-qw2lGoj75d3pNPvG4nGo95jJRj62UF7HeFu-kqxEOm927juGhXBdPy2Gqod1VdoS_TipuB779Q"} Expected status code 200 but got 404 GET 200 /fury/pe/jaa/raha/hun 598.227µs --- PASS: Test_requestHandler (0.10s) === 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: 58 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: 566 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.485932ms 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.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTMwMzA3ODQsImlhdCI6MTc5Mjk0NDM4NCwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6ImxlZ2l0aW1hdGUtdXNlciIsInJ4cCI6MTc5MzExNzE4NCwic3ViIjoiMjk4IiwidXNlcl9pZCI6Mjk4fQ.gntBrbMep7JZX7JLSOVMi91aj_8CgznubL4Ng39qzNwt0byLQr2uEKBubZ1sbiPNZ5mAhNMV1uNAe2s3LGSDklxbg8Cq8YOOTEFzGATNQiM2FII9ZwA3LxiWLx7nYtaGdmTKA7ne3I3fEX9Atblev15AwBAKAvyGFCA3LS1_77SKXjkNfjI4RbYe5DqpqU-0z9NkR89RCBMWknNsm1F-DY337BppLCP-EvJkBT25DZ-5QE0tALsCgJB1e-6KFgKal6RyMeMrWxlpMhdTpoXKyYRmJG43kWGNy2b9aQRbP4FeTIW8nSpPwtr4tx5K0EBQf69-9YgcHDD2CbaK_e4N-Q"} GET 200 /any/protected/route 312.333µs --- PASS: TestMaliciousHeadersNotForwarded (0.00s) === RUN TestValidAuthorizationCookieWinsOverAPISecretWithoutPartnerLookup Starting GET /protected {"Api-Secret":"not-a-partner-secret","Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTI5NDc5ODUsIm5hbWUiOiJqd3QtdXNlciIsInVzZXJfaWQiOjk4NzY1NDMyMX0.ZvFtPui58R3Z-tpsKkf5uhzob004Sd1aNhDtIOcOBIOjBF2VQIG70Wa43jKc-c_Poref0hJN9ZofabQj6fVeFM1umxL5kYH4Rs_1WqvOQmN72SkHbUZFVXX1mZoKE2f3ontsrI2iXoRraJRGXMbv3ONXCHpBcp1IY4k0iV8IwNznBmxxJjaVPfn7Er8MwpY0lfq0O_DrPczXVn4xBhePlbZ7cUeMrJjQhYOJXRjCu3_USC4wj87qLKjuvnrZYIJlBE1B7UZlq911d7D7JofYotKflHk5lInR5RsK8icXPDPYeXfT9O-rTSGlkzpPpu7bPzBEjqhsiWho9PtjbEOsaQ"} GET 200 /protected 1.353286ms --- PASS: TestValidAuthorizationCookieWinsOverAPISecretWithoutPartnerLookup (0.09s) === RUN TestHeaderFormatFunction --- PASS: TestHeaderFormatFunction (0.00s) === RUN TestSetNewTokenSetsUpstreamHeaders --- PASS: TestSetNewTokenSetsUpstreamHeaders (0.00s) === RUN TestTokenRefreshSetsUpstreamCookieNotSetCookie Starting GET /any/route {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTI4NTc5ODUsImlhdCI6MTc5Mjk0NDM4NSwicnhwIjoxNzkzMTE3MTg1LCJ1c2VyX2lkIjo5OTk5OX0.oFGCgBONEF0JiRNkP68TOvaZ6F7QE2USlJZSmdv1F6DF5kBanjnTPCgr56Ow7MMiIjUpHxlEW8yk-W2HAPixZJYm_P-oRsz_zfjw29HohGdtO088gNW-dnn0jc6Bvn3XsEkYSc9-9uViz3YW4xdL9uwaJiKmyfeH4wn_yAtpTpyhcW_MXmjdBmKJEuRbB0k6v5u6MXAwdGfWwEdHWZ_iF9fl6LolnsuoftFbViN014STzYEjLvp5iCu-ck_As5HLRe0grOyFu7z_wcMdtnRmqe_b9qvtZrLob82o-1iGdS13CRmZU6pq2Z-VmQMr7itZ7vJcl0Xdb1X-RQpQWlMRRg"} GET 200 /any/route 3.484952ms --- 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 112.421µ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 84.714988ms --- PASS: TestRequestWithOnlyAuthHeaderPassesThrough (0.09s) === 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 5.395015ms Starting GET /some/protected/route {"Cookie":"device=different-device-xyz; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTMwMzA3ODUsImlhdCI6MTc5Mjk0NDM4NSwiaXNzIjoiaGVpbWRhbGxyIiwibmFtZSI6InRlc3QtdXNlciIsInJ4cCI6MTc5MzExNzE4NSwic3ViIjoiODczNyIsInVzZXJfaWQiOjg3Mzd9.ljAiK_haHWKJDCeI7f2eTKsk-jwL1rCNS9ot9ddNo_9zSyZXctngh3bPryIaMWAjnqQdhUZQa1zdx1GbDSS8zl5OtQMgIG7nkTlubTsjSupYZ0QuXEktlGoNoPTFB2n4P-u_FKohNuZP5JUaBWy03Fe5_7_Ac97XbSEJ0qBFCVxBhopOjIZdHNM2ZHvjfDQACipYbOR8KDFnqrRsiPsNfKcf-h2yFqNnKatiUSTOsJ2Dzx6Epjm8H0TlTtfc2JQwYtMquYJk4HautzlYnQL558ijegdHkDZBKqRlWiOt8UlE2m-9HbJwZqegfyuHH_tp56Kh30sgwNlVE-xvt-HeSg"} Device didn't match GET 401 /some/protected/route 280.043µs --- PASS: TestDeviceMismatchClearsCookie (0.01s) === RUN TestExpiredTokenPastRefreshWindowClearsCookie Starting GET /some/protected/route {"Cookie":"device=lg-g8x; authorization=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJsZy1nOHgiLCJleHAiOjE3OTI1MTIzODUsImlhdCI6MTc5MjA4MDM4NSwicnhwIjoxNzkyNjg1MTg1LCJ1c2VyX2lkIjoxMjM0NX0.HmkW2E4sUipz8w6IAmUHdSGAe-P2CIIeYa2yCnjDJDIKv5J4f1IyzT1Z24SKE3EphmlOsqNBwVY-aaPxFhchzf4zLeLFDZ2ro-AfdLL6C0sCIhzaUDzU0gb_zh05sZ8OsOo69viZFOknmWR3eYIPl_A-BBF5Ydcn38xjY-opZ2yRlvd8KFLdXV9Ta_ztOi5tvtobk-RY5V3aaJsL8Ra62UIkqHVEkJjLtZHWn5lN5bNb0sJRIl1Hu9V_qNlEH4GNMnKUQpUrtOCl-Ood8xWioVKAFjv2jE76Q1X32EhbpDYb97V3aySd60vIDf2F6fqxz8FkdOY87oVhEdSwz1t54A"} Token is expired and past refresh window GET 401 /some/protected/route 219.473µ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 34.41µ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 35.861µs --- PASS: TestGeoIPHeadersAttemptedWhenNoGPS (0.00s) === RUN TestGeoIPNotTriggeredWithoutIP Starting GET /some/path {} No Authorization token - passing through to upstream GET 200 /some/path 29.6µs --- PASS: TestGeoIPNotTriggeredWithoutIP (0.09s) === 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.495s === RUN TestGeoIPDownloadResources --- PASS: TestGeoIPDownloadResources (0.00s) === RUN TestGeoIPDownloadUsesConfigurableResources --- PASS: TestGeoIPDownloadUsesConfigurableResources (0.00s) PASS ok github.com/galaxycard/heimdallr/charts/heimdallr 0.098s ? 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.005s ? github.com/galaxycard/heimdallr/redis [no test files] Showing logs for build greencapitaltrade/heimdallr/pr-192 #1 stage from-build-pack and container step-build-post-test-results commented on pull request #192 on repository greencapitaltrade/heimdallr Showing logs for build greencapitaltrade/heimdallr/pr-192 #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-1482051234 in dir /tmp Cloning into '/tmp/jx-git-1482051234'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-1482051234 about to run: git checkout in dir /tmp/jx-git-1482051234 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-192 #1 stage from-build-pack and container step-build-container-build time="2026-10-25T16:06:32Z" 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-192-1-SNAPSHOT INFO[0002] Pushed 417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr@sha256:afb77eb71b3359a0127ee110402491544365dd81e620907477ac221cda216e42 Showing logs for build greencapitaltrade/heimdallr/pr-192 #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/192 using ingress sub domain -jx-greencapitaltrade-heimdallr-pr-192. upserted preview jx-greencapitaltrade-heimdallr-pr-192 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-192", "PR_HEAD_REF":"fix/geoip-startup-resources", "PULL_NUMBER":"192", "VERSION":"0.0.0-PR-192-1-SNAPSHOT"} jx-greencapitaltrade-heimdallr-pr-192: LAST SEEN TYPE REASON OBJECT MESSAGE jx-greencapitaltrade-heimdallr-pr-192: 0s Normal ScalingReplicaSet deployment/preview-heimdallr Scaled up replica set preview-heimdallr-cc4d68849 from 0 to 1 jx-greencapitaltrade-heimdallr-pr-192: 0s Normal SuccessfulCreate replicaset/preview-heimdallr-cc4d68849 Created pod: preview-heimdallr-cc4d68849-cvz98 jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Scheduled pod/preview-heimdallr-cc4d68849-cvz98 Successfully assigned jx-greencapitaltrade-heimdallr-pr-192/preview-heimdallr-cc4d68849-cvz98 to ip-10-0-80-210.ap-south-1.compute.internal jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Pulling pod/preview-heimdallr-cc4d68849-cvz98 Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-192-1-SNAPSHOT" jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Pulled pod/preview-heimdallr-cc4d68849-cvz98 Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-192-1-SNAPSHOT" in 634ms (634ms including waiting). Image size: 15275626 bytes. jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Created pod/preview-heimdallr-cc4d68849-cvz98 Container created jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Started pod/preview-heimdallr-cc4d68849-cvz98 Container started jx-greencapitaltrade-heimdallr-pr-192: 0s Warning Unhealthy pod/preview-heimdallr-cc4d68849-cvz98 Readiness probe failed: Get "http://10.0.89.172:8080/_healthz": dial tcp 10.0.89.172:8080: connect: connection refused jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Pulling pod/preview-heimdallr-cc4d68849-cvz98 Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-192-1-SNAPSHOT" jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Pulled pod/preview-heimdallr-cc4d68849-cvz98 Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-192-1-SNAPSHOT" in 72ms (72ms including waiting). Image size: 15275626 bytes. jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Created pod/preview-heimdallr-cc4d68849-cvz98 Container created jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Started pod/preview-heimdallr-cc4d68849-cvz98 Container started jx-greencapitaltrade-heimdallr-pr-192: 0s Warning BackOff pod/preview-heimdallr-cc4d68849-cvz98 Back-off restarting failed container heimdallr in pod preview-heimdallr-cc4d68849-cvz98_jx-greencapitaltrade-heimdallr-pr-192(da0eb03e-aeeb-42e6-a00a-e7c87420847f) jx-greencapitaltrade-heimdallr-pr-192: 0s Warning BackOff pod/preview-heimdallr-cc4d68849-cvz98 Back-off restarting failed container heimdallr in pod preview-heimdallr-cc4d68849-cvz98_jx-greencapitaltrade-heimdallr-pr-192(da0eb03e-aeeb-42e6-a00a-e7c87420847f) jx-greencapitaltrade-heimdallr-pr-192: 0s Warning BackOff pod/preview-heimdallr-cc4d68849-cvz98 Back-off restarting failed container heimdallr in pod preview-heimdallr-cc4d68849-cvz98_jx-greencapitaltrade-heimdallr-pr-192(da0eb03e-aeeb-42e6-a00a-e7c87420847f) jx-greencapitaltrade-heimdallr-pr-192: 0s Warning BackOff pod/preview-heimdallr-cc4d68849-cvz98 Back-off restarting failed container heimdallr in pod preview-heimdallr-cc4d68849-cvz98_jx-greencapitaltrade-heimdallr-pr-192(da0eb03e-aeeb-42e6-a00a-e7c87420847f) jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Pulling pod/preview-heimdallr-cc4d68849-cvz98 Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-192-1-SNAPSHOT" jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Pulled pod/preview-heimdallr-cc4d68849-cvz98 Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/heimdallr:0.0.0-PR-192-1-SNAPSHOT" in 66ms (66ms including waiting). Image size: 15275626 bytes. jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Created pod/preview-heimdallr-cc4d68849-cvz98 Container created jx-greencapitaltrade-heimdallr-pr-192: 0s Normal Started pod/preview-heimdallr-cc4d68849-cvz98 Container started jx-greencapitaltrade-heimdallr-pr-192: 0s Warning Unhealthy pod/preview-heimdallr-cc4d68849-cvz98 Readiness probe failed: Get "http://10.0.89.172:8080/_healthz": dial tcp 10.0.89.172:8080: connect: connection refused jx-greencapitaltrade-heimdallr-pr-192: 0s Warning BackOff pod/preview-heimdallr-cc4d68849-cvz98 Back-off restarting failed container heimdallr in pod preview-heimdallr-cc4d68849-cvz98_jx-greencapitaltrade-heimdallr-pr-192(da0eb03e-aeeb-42e6-a00a-e7c87420847f) jx-greencapitaltrade-heimdallr-pr-192: 0s Warning BackOff pod/preview-heimdallr-cc4d68849-cvz98 Back-off restarting failed container heimdallr in pod preview-heimdallr-cc4d68849-cvz98_jx-greencapitaltrade-heimdallr-pr-192(da0eb03e-aeeb-42e6-a00a-e7c87420847f) jx-greencapitaltrade-heimdallr-pr-192: 0s Warning BackOff pod/preview-heimdallr-cc4d68849-cvz98 Back-off restarting failed container heimdallr in pod preview-heimdallr-cc4d68849-cvz98_jx-greencapitaltrade-heimdallr-pr-192(da0eb03e-aeeb-42e6-a00a-e7c87420847f)  Pipeline failed on stage 'from-build-pack' : container 'step-promote-jx-preview'. The execution of the pipeline has stopped.