The TrueFoundry API allows you to create and manage secret groups, which are collections of key-value pairs stored securely. Secret groups can be created, searched, and updated through REST API endpoints.Documentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Replace
YOUR_CONTROL_PLANE_URL with your actual TrueFoundry control plane
URL and use the TFY_API_KEY environment variable for authentication throughout this guide.Prerequisites
Before using the Secret Management API, ensure you have:- TrueFoundry API Server URL:
<control-plane-url>/api/svc - API Key: Set the
TFY_API_KEYenvironment variable for authentication
API Endpoints
1. Create or Update Secret Group
Creates a new secret group or updates an existing one. Endpoint:PUT /v1/secret-groups Refer
Headers:
name(string, required): Name of the secret group. If the name is 5 characters or less, it’s recommended to append-tenantsuffix.type(string, required): Always set to"secret-group"integration_fqn(string, required): Integration fully qualified name. Default:"internal:aws:aws-1:secret-store:internal-secret-store"collaborators(array, required): List of collaborators with their rolesrole_id(string): Role identifier ("secret-group-admin"or"secret-group-editor")subject(string): Subject in format"user:email@example.com"or"team:team-name"
2. Add Secrets to Secret Group
Adds secrets (key-value pairs) to an existing secret group. Endpoint:PUT /v1/secret-groups/{secret_group_id} Refer
Path Parameters:
secret_group_id(string, required): The ID of the secret group returned from the create operation
- Each object in the
secretsarray contains:key(string, required): The secret key/namevalue(string, optional): The secret value
Even if updating the value of one secret in the secret group, you need to pass the keys for all other secrets. For example, to update only
SECRET_KEY_1 to secret-value-1-updated, the payload would be:3. Search Secret Groups
Searches for existing secret groups by fqn. Endpoint:GET /v1/secret-groups?fqn={fqn} Refer
Query Parameters:
fqn(string, required): Use FQN to search for a specific secret group. Format<tenant-name>:<secret-group-name>