Chris Dahms
12/01/2025, 5:06 PMkapa.ai
12/01/2025, 5:06 PMWORKLOAD_API_BEARER_TOKEN (and related auth vars) are not aligned between: - airbyte-abctl-worker - airbyte-abctl-workload-api-server - sometimes also airbyte-abctl-server [[source-postgres 502](https://github.com/airbytehq/airbyte/issues/65567)]. The working workaround is: 1. Get into the abctl Kubernetes host (if running inside Docker, first docker exec -it <abctl-container-id> bash). [[source-postgres 502](https://github.com/airbytehq/airbyte/issues/65567)] 2. Generate a token and set it on all three deployments: bash # generate token BEARER_TOKEN=$(openssl rand -hex 16) echo "Generated token: $BEARER_TOKEN" # worker kubectl -n airbyte-abctl set env deployment/airbyte-abctl-worker \ WORKLOAD_API_BEARER_TOKEN="$BEARER_TOKEN" \ INTERNAL_API_AUTH_TOKEN="$BEARER_TOKEN" # workload api server kubectl -n airbyte-abctl set env deployment/airbyte-abctl-workload-api-server \ WORKLOAD_API_BEARER_TOKEN="$BEARER_TOKEN" # server kubectl -n airbyte-abctl set env deployment/airbyte-abctl-server \ WORKLOAD_API_BEARER_TOKEN="$BEARER_TOKEN" 3. Restart and wait for rollouts to complete: bash kubectl -n airbyte-abctl rollout restart deploy/airbyte-abctl-workload-api-server airbyte-abctl-worker airbyte-abctl-server kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-worker kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-workload-api-server Users confirm this resolves HTTP 502 errors when configuring sources (including Postgres and file connectors). [[source-postgres 502](https://github.com/airbytehq/airbyte/issues/65567); [file 502](https://github.com/airbytehq/airbyte/issues/65574)] 2. Pod restarts alone can also help in some 1.8.3/1.8.4 cases In similar 502 scenarios, simply restarting worker and workload-api-server has fixed the issue: [[1.8.3 502 fix](https://github.com/airbytehq/airbyte/issues/66692)] bash kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-worker kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-workload-api-server kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-worker kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-workload-api-server However, if the tokens are mismatched, restarts alone usually aren’t enough; you’ll need step (1). 3. External Postgres itself is unlikely the cause if UI works but tests 502 Your description matches the pattern where UI is reachable but connector tests fail with 502, which in the shared issues is always traced back to the internal Workload API communication, not to the external Airbyte config DB or to the source DB itself. [[source-postgres 502](https://github.com/airbytehq/airbyte/issues/65567); [abctl networking issues](https://github.com/airbytehq/airbyte/issues/62463)] 4. Uninstall/reinstall side effects There is a known class of problems around abctl uninstall/reinstall in 1.8.x, which led to a specific 1.8.1 patch about data plane naming; however, in your case the stronger signal in the sources is the token mismatch after installation, not the external DB. [[1.8 patch notes](https://docs.airbyte.com/release_notes/v-1.8#patch-releases)] --- Suggested next steps 1. Apply the token alignment workaround in step (1) above. 2. Then restart and wait for all three deployments (airbyte-abctl-server, airbyte-abctl-worker, airbyte-abctl-workload-api-server) to be Ready. 3. Retry “Test connection” for one of your failing connections. If, after doing this, you still see 502s, the knowledge sources do not provide more specific guidance for 1.8.4 + abctl + external Postgres beyond these workarounds; in that case the next step would be to open or update a GitHub issue with your logs, referencing the existing 502 issues you shared.