To check and confirm that the Workload API endpoin...
# replication-troubleshooting
k
To check and confirm that the Workload API endpoint and authentication interceptors are configured in Airbyte, you should: 1. Inspect Pod Environment Variables: The workload pods (for example, those running connector jobs) should have environment variables set for the Workload API endpoint and authentication. Look for the following in the pod spec or logs: -
WORKLOAD_API_HOST
(e.g., `http://airbyte-workload-api-server-svc:8007`) -
WORKLOAD_API_BEARER_TOKEN
(usually sourced from a Kubernetes secret) -
AIRBYTE_API_AUTH_HEADER_NAME
and
AIRBYTE_API_AUTH_HEADER_VALUE
(for internal authentication) Example from a pod spec:
Copy code
yaml    env:      - name: WORKLOAD_API_HOST        value: http://airbyte-workload-api-server-svc:8007      - name: WORKLOAD_API_BEARER_TOKEN        valueFrom:          secretKeyRef:            key: WORKLOAD_API_BEARER_TOKEN            name: airbyte-airbyte-secrets      - name: AIRBYTE_API_AUTH_HEADER_NAME        value: X-Airbyte-Auth      - name: AIRBYTE_API_AUTH_HEADER_VALUE        value: Internal worker
This confirms the endpoint and authentication token are set for the pod to communicate with the Workload API server [see example](https://github.com/airbytehq/airbyte/issues/50979). 2. Check for Auth Interceptors in Logs/Stack Traces: When Airbyte components interact with the Workload API, logs or stack traces should show interceptors such as: -
io.airbyte.api.client.auth.AirbyteAuthHeaderInterceptor
-
io.airbyte.workload.api.client.auth.WorkloadApiAuthenticationInterceptor
These interceptors are responsible for attaching authentication headers to API requests. Their presence in stack traces or logs (especially during connection or job execution) confirms they are active [see example](https://github.com/airbytehq/airbyte/issues/44474). 3. Validate API Communication: If the configuration is correct, the pods should be able to communicate with the Workload API server without authentication errors. Any issues (e.g., 401 Unauthorized) in logs may indicate misconfiguration of the endpoint or auth headers. Summary: - Check pod environment variables for
WORKLOAD_API_HOST
and authentication-related variables. - Look for auth interceptors in logs or stack traces. - Ensure there are no authentication errors in pod logs during API communication. If you need to adjust these settings, update your deployment manifests or Helm values accordingly and redeploy Airbyte components.