At the moment we can use expressions within the setup of credentials. But I would like to use an expression to set the ID of the credentials, this would allow flexibility without having the credentials visible within the workflow and executions.
so instead of
to something like this:
My use case:
Currently I am creating workflows to scrape Workflow and Execution data from multiple environments. Having URL and API key visible in the executions / workflow data isn’t really secure.
If this feature isn’t added I am forced to duplicate my workflows for each n8n environment.
I really hate duplication
I think it would be beneficial to add this because:
More secure, more flexibility, and best of all less duplication.
Any resources to support this?
Nope
Are you willing to work on this?
Willing to do the PR myself If I knew where to find the code that makes the selection possible. so far I have only found the credential type that is being set for the execution of the node, but not its ID.
Guessing I am looking in the wrong place.
Searching credentials is of course not really helpful as there is a lot of code referring to it.
I would like credetialls to pass within a node to do a complex chain of queries and filtering within a single code node. Since I noticed that filtering and queries combined in one node can be much faster.