Using TrueFoundry Secrets in Integrations

You can securely use secrets like API keys in your integrations via TrueFoundry. Here's how to set up and use a secret for OpenAI integration


1. Create a Secret in TrueFoundry

Follow the instructions in the TrueFoundry Secrets Guide to create a new secret.
Once created, copy the Fully Qualified Name (FQN) of the secret (e.g., tfy-secret://truefoundry:openai-group:API_KEY).



2. Reference the Secret in Your Integration

When configuring your integration (like OpenAI), use the FQN instead of the raw key.

Using Truefoundry secret FQN instead of raw value for API key


3. Deploy the Integration

Deploy using UI or CLI:

tfy apply -f openai-using-secret.yaml

Example yaml configuration for the integration