pip install onboardbase
Then, create a new file in the root of your project named .onboardbase.yaml and paste the content you copied earlier.
If you have Onboardbase CLI, run the below command and follow the instruction to generate a setup file:
Your final setup file should look like this:
To create a new API Key, go to your account settings page, and click on your organization's tab, you would find API Key sections.
On the API Key section, click on Create API Key, Enter an identifying name and a secure passcode string - you can't view this anymore, make it a memorable string.
Once an API Key is generated, click on the options dropdown of the key and then click on copy to copy the newly generated key to your clipboard.
In your project .onboardbase.yaml setup file, add two new fields
passcode. Paste the copied API Key from above as the value for the
api_key field and enter your memorable encryption passcode.
After having API Key and passcode integrated into your setup file.
Import Onbaordbase SDK into your project.
from onboardbase import init
Initialize the library when the module is called, which would ensure secrets are available before they are accessed.
if __name__ == "__main__"
And access individual secrets using
Secure fallback cache
The SDK supports caching your secrets to a secure location on the current computer. This cache is useful in case there is an issue in communicating with Onboardbase servers to serve secrets.
Updated 4 months ago