Replies: 2 comments 2 replies
-
Check out this guide for using environment variables and secrets. I recommend setting up a Dagster resource for handling that. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@garethbrickman thanks for your response and sorry for a late response from my end. @asset(
group_name='Source_Secret'
)
def source_secret(context: AssetExecutionContext):
json_cred_source = {
//JSON DICT WITH CREDS
}
json_string = json.dumps(json_cred_source)
json_dict = json.loads(json_string)
context.log.info(json_string)
context.log.info(json_dict['client_id'])
return json_dict` I want to access Creds values in my I use this approach now, but it doesn't work in my case: //Code of @dlt_assets method
upstream_value = context.output_for_asset_key(AssetKey("source_secret")) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, community. I have a question about passing credentials to dlt pipeline dynamically in Dagster.
I want to create an Asset which will send a OAuth2 creds to dlt source and GCP service account creds to dlt destination. How to implement that? And how to not use the
secrets.toml
file in dlt?Thanks in advance for your time and effort.
Beta Was this translation helpful? Give feedback.
All reactions