I have a SAM component in a template that runs a powershell script locally to make an API call to a firewall and query some data. The issue is how to safely pass credentials to the script for the API query. This isn't for running the actual script, as it's run locally from Orion, but as variables to pass to the API call to hit the firewall box.
In testing I have the creds stored in the component and passed to the script as variables, but of course that's not idea as it's visible. I can't use the Orion credentials store as this is used for context for running the script, as opposed to something I can pass in to the script.
I did find a reference to storing the creds encrypted on a flatfile on the orion server and then have the script pull from that, however I have multiple poller engines in the instance, so maintenance of that flatfile would be non-ideal.
Anyone found a way to do this reasonably?