Area: Deployment Issues
Sub-Area: Managed Ingestion Remote Executors
Applies to: Cloud
Issue
An ingestion source runs on a Remote Executor pool. Its recipe references a secret with ${SECRET_NAME} syntax, and the secret exists in the DataHub UI. The run fails with an authentication error from the source system, but it works when you paste the value into the recipe directly.
The remote executor logs show this warning for the secret:
Secret 'SECRET_NAME' not found in secret stores or environment, using empty string
The executor found no value for the secret in any secret store or in its environment, so it passed an empty string to the source. The source then rejects the empty credential.
You Might Be Asking
- Why do my UI secrets resolve to an empty value on the remote executor?
- Do I need to configure secrets separately for each executor pool?
- Why does the ingestion work when I paste the value directly but fail with
${SECRET_NAME}?
Cause
The remote executor resolves each ${SECRET_NAME} at run time. It checks its environment variables, the files in /mnt/secrets/, and DataHub UI secrets, and it also checks AWS or GCP Secret Manager if you enabled them. A UI secret ends up empty for one of these reasons:
- The name in the recipe doesn't match the stored secret name exactly. Secret names are case sensitive, so
${DB_PASSWORD}and${db_password}are different secrets. - DataHub can't decrypt the stored value of the secret, for example because it was encrypted with a different encryption key. DataHub leaves that secret out of its response, and the other secrets in the same request still resolve.
- The executor can't fetch secrets from DataHub at all. In that case every UI secret in the recipe is empty, and the executor logs also show
Caught exception while attempting to fetch secrets from DataHub. Secret names: [...].
The age of a secret doesn't cause this. DataHub still decrypts secrets stored in the older encryption format.
Solution
- Check the name. In DataHub, go to the Manage Data Sources page and open the Secrets tab (
/ingestion/secrets). Compare the name with the${...}reference in your recipe, letter for letter and case included. - If the name matches, store the value again. On the Secrets tab, click Edit secret on that secret, paste the value into the value field, and click Update. DataHub encrypts the new value with its current key. You don't have to change the name or the recipe.
- Run the ingestion again and check the executor logs. The
not found in secret stores or environmentwarning for that secret is gone when it resolves.
To test without touching the existing secret, create a new secret with a different name and the same value, for example DB_PASSWORD_NEW, and point the recipe at it:
password: '${DB_PASSWORD_NEW}'
If the new secret works, keep it, or delete the old secret and create it again with the original name and the same value. You can't rename a secret: the name field is locked when you edit one.
If the executor logs show Caught exception while attempting to fetch secrets from DataHub, check that the executor uses a Remote Executor access token (Settings > Access Tokens), as described in Setting Up Remote Ingestion Executor. If the steps above don't help, contact DataHub Support.
Secrets and executor pools
You don't configure UI secrets per pool. Every remote executor fetches UI secrets from DataHub when the run starts. Local secrets work differently: environment variables, files mounted in /mnt/secrets/, and AWS or GCP Secret Manager settings belong to each executor deployment, so you set them up on every executor that needs them.
If a UI secret and a local file or environment variable have the same name, the executor uses the UI secret value. For Remote Executor pools, the DataHub docs recommend local secret backends instead of UI secrets. See Secret security considerations and Secret Resolution in Recipes.