07-07-2023 12:18 PM
This is a random question that I feel like I should know the answer to, but I googled it and couldn't find anything...
What are the best practices around managing secrets in LabVIEW? I'm talking things like API keys for GitLab, Firebase, AWS, etc?
Typically using Python on Linux I would hide it in a dotfile and set appropriate permissions. What is the equivalent on Windows?
07-12-2023 08:27 AM
Are these API secrets built into your application/code? Or is this for running in the development environment?
Best practice is to use a Key/Credential store and retrieve the key - e.g. AWS Key Management Service / Hashicorp Vault to retrieve the keys at run time or build of the code/application. Most CI/CD tools also have some sort of key/credential storage. I believe in larger/enterprise systems, a hardware security module (HSM) can be used.
The store handles the secure storage of the key itself, authenticates/authorises requests for the key and provides auditing of any access.
The main part is that they shouldn't be stored in source code!