Use this file to discover all available pages before exploring further.
The FlexAI Secret Manager provides a secure, encrypted storage solution for managing sensitive information such as API keys, access tokens, credentials, and configuration data. All secrets are encrypted at rest and can be safely referenced in your training and inference workloads.The Secret Manager enables you to:
Securely store credentials for cloud storage providers (AWS S3, Google Cloud Storage, etc.)
Manage API tokens for services like Hugging Face Hub
Store configuration files as secrets for easy deployment
Reference secrets in workloads without exposing sensitive data
Inject environment variables automatically during training and inference
Create a Secret by using the flexai secret create command
Create a Secret by using the flexai secret create command, which will receive the name of the secret as its only argument. In this case we will use hf_token to store a Hugging Face Access Token.
flexai secret create hf_token
2
Enter the value for the secret
You will be prompted to enter the value for the secret. You can either type in the value directly or paste it. In any case, the value will not be displayed in the terminal.
You can pass the value of a Secret directly from standard input (stdin) by piping in the value. This is particularly useful for automated scripts, when you want to avoid interactive prompts, or when you want to store the contents of a file as a Secret—like a Google Cloud Service Account File.Piping in the value and using the -p/--value-stdin flag:
Secrets can be passed to Workloads in different ways: some commands flags receive Secret names as their value, and others explicitly require the name of a Secret and a name to associate it with, such as the -S/--secret flag of the flexai training run and flexai training debug-ssh commands.