How to handle apikeys in OBS

how to handle api keys or any secret in OBS ?
github has secrets, so i can do that:

  • Add the API key to the secrets of the repository. Every repository has secrets which are treated as an environment variable by Github actions even though they are not available at runtime.
  • After adding the key to secrets, you should edit the part of the code where you used the API key to call the key from the environment. Assume I added and saved the API key as api_key in the GitHub secrets, here is how I would call it in dart:
import 'dart:io' show Platform;

String apiKey = Platform.environment['api_key'];
1 Like

Let’s try to ping @lbt - it is our best chance for getting help on it.