Skip to main content

How do you handle API keys?

  • January 9, 2026
  • 1 reply
  • 26 views

Forum|alt.badge.img+1

Hi ! Just wanted to understand how you are handling the initial API keys /OAuth secret required to authenticate to BI PS itself.

e.g. we have BI-managed service account used by few Linux endpoints . This service account is used to map a network drive. We want to fetch the latest credentials via a script from BI PS at user log on and map the network drive. 

To secure the api key , we are planning to put it on a network share where a Group of users will have access. But this means if the machine is compromised or the internal user wants to get the access , they can fetch the key and service account credentials. We are thinking of rotating this key in BI PS config + network share from a secure server , but this introduces another high privileged account with config access to API + possibly one more account with network share access (Though in a more secured environment). This increases complexity but the key/password is still has same level of security (when compared to keeping the key static)

Also we are planning to enable cert based authentication to BI PS API so that only known end-points can access the API.

Just wanted to check what other admins are doing to manage the initial API key handling. I see packaging the script and hardcoding the key is an option to make it little bit difficult to find. But rotation will be difficult too.

1 reply

Pulitros144
Forum|alt.badge.img+4
  • Veteran
  • January 12, 2026

@bt101 First, certificate-based authentication will be disabled in newer versions of PS (KB0023034), so I would strongly recommend not even starting with that approach:

Second, you can use the Password Safe CLI Application to rotate the API key in a more controlled environment:

Password Safe CLI Application

Alternatively, you could install the Password Safe Cache service and configure your users to retrieve passwords from that service. This way, your internal IP would be used to log into the service, eliminating the need to rotate the API key. You would only need to add or remove IPs from the allowlist in Password Safe.