<@U04S8PLJWMT> I am creating a python connector i ...
# ask-ai
o
@kapa.ai I am creating a python connector i want to print my secret refresh token for testing. why when i print it the out is ** Token refresh token: ** <class 'str'> but there is a value which working and running. how can i retrive the value itself and not the * characters
k
In Airbyte connectors, sensitive fields such as refresh tokens are often masked (displayed as **) in logs and outputs for security reasons. This masking is handled by Airbyte's configuration and logging system to prevent accidental exposure of secrets. When you print a secret value (like your refresh token) in your connector code, Airbyte replaces the actual value with ** before it appears in logs or standard output. This is intentional and is designed to protect sensitive information. How to retrieve the actual value? - If you are running your connector locally and want to see the real value for debugging, you must access the variable directly in your code before it is passed to any Airbyte logging or masking mechanism. - However, if you are using Airbyte's configuration management (e.g., via config.json or environment variables), the masking happens at the framework level, and you cannot bypass it in logs or print statements. Important: There is no documented way in Airbyte to disable this masking for secrets in logs or outputs, as it is a security feature. If you need to see the actual value for debugging, you should print it before it is handled by Airbyte's logging or configuration system, or inspect it in your local environment before passing it to Airbyte. Summary: The ** output is by design to protect your secrets. There is no supported way to print the actual secret value in Airbyte logs or outputs for security reasons. If you need to debug, do so carefully and ensure you do not expose secrets in shared logs or environments. I'm sorry, but the knowledge sources do not provide a method to bypass this masking or retrieve the unmasked value from within Airbyte's logging or output system.