cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

BEST PRACTICES: How to Protect Secrets in Power Automate?

What are some best practices for protecting secrets in Power Automate? 

  • "Secrets" such as usernames, passwords, clientIDs, clientSecrets, api keys, etc. are often required when using HTTP actions in Power Automate
  • These secrets are often embedded in plaintext in headers, urls or Request bodies
  • When you share a Flow, you share these plaintext values
  • Not everyone understands how to sanitize things before sharing or exporting
  • This is insecure

Further reading:

https://engineering.udacity.com/three-simple-rules-for-putting-secrets-into-git-d47b207852b9

https://blog.cryptomove.com/secrets-management-guide-approaches-open-source-tools-commercial-product...

Please consider voting for this idea:

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Protect-Secrets-in-Power-Automate/idi-p/430...

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: BEST PRACTICES: How to Protect Secrets in Power Automate?

Hi @ericonline,

 

Actually, there is no connector or action that is about to protect the secret.

As a workaround, I usually store these pieces of information into a SharePoint list within the private Group of SharePoint, it could be accessed only for me. When I using it I just need to add the Get item action, then username, password, APIKey, would appear as dynamic content.

Annotation 2019-12-20 111637.png

 

I hope something helps.

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: BEST PRACTICES: How to Protect Secrets in Power Automate?

Hi @ericonline,

 

Actually, there is no connector or action that is about to protect the secret.

As a workaround, I usually store these pieces of information into a SharePoint list within the private Group of SharePoint, it could be accessed only for me. When I using it I just need to add the Get item action, then username, password, APIKey, would appear as dynamic content.

Annotation 2019-12-20 111637.png

 

I hope something helps.

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Super User
Super User

Re: BEST PRACTICES: How to Protect Secrets in Power Automate?

Hi @v-litu-msft , this is a good idea, thank you for sharing. I will suggest your idea in the short term.

I'd still like to see a true "secrets" action in Power Automate that stores everything in an encrypted state rather than plaintext.

Super User
Super User

Re: BEST PRACTICES: How to Protect Secrets in Power Automate?

Did some more research and found John Lui's post on using Tracked Properties to "hide" secrets from view. Unfortunately, when you export the Flow, Tracked Properties are visible in plain text within definition.json.

Esli
Level: Powered On

Re: BEST PRACTICES: How to Protect Secrets in Power Automate?

@ericonline

Can't you use Azure Key Vault for this?
It even has a connector in flow.

 

https://docs.microsoft.com/nl-be/connectors/keyvault

Super User
Super User

Re: BEST PRACTICES: How to Protect Secrets in Power Automate?

Great dea! I looked closer at the Get Secret action, which is what I think I'd use the Key Vault service for (holding API keys for example). It states the key would be visible in the Run History of the Flow...

https://docs.microsoft.com/nl-be/connectors/keyvault/#get-secret

Hm... I don't want my keys in plain text ANYWHERE, especially not in an artifact such as each Flow run!

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,250)