Reputation: 1031
When using a Variable named xxxx_apiKey in airflow it masks the value of the variable in the UI as expected. But when we are trying to use that variable in a DAG the value returned from:
Variable.get('xxxx_apiKey')
returns the masked value ******.
Is there a method parameter to retrieve the value unmasked?
Upvotes: 3
Views: 1479
Reputation: 1608
The method you're calling should decrypt your secret when calling it. In my opinion, you've rewritten by mistake the variable and the real content now contains stars. This may happen through the web interface. Try storing again the content of this variable and see if it works now.
Upvotes: 2