get-secret
Retrieve a specific secret from a designated project and environment in Infisical. Specify the secret name, project ID, and environment slug to securely access stored secrets and manage configurations.
Instructions
Get a secret in Infisical
Input Schema
Name | Required | Description | Default |
---|---|---|---|
environmentSlug | Yes | The slug of the environment to get the secret from (required) | |
expandSecretReferences | No | Whether to expand secret references (Defaults to true) | |
includeImports | No | Whether to include secret imports. If the secret isn't found, it will try to find a secret in a secret import that matches the requested secret name (Defaults to true) | |
projectId | Yes | The ID of the project to get the secret from (required) | |
secretName | Yes | The name of the secret to get (required) | |
secretPath | No | The path of the secret to get (Defaults to /) |
Input Schema (JSON Schema)
{
"properties": {
"environmentSlug": {
"description": "The slug of the environment to get the secret from (required)",
"type": "string"
},
"expandSecretReferences": {
"description": "Whether to expand secret references (Defaults to true)",
"type": "boolean"
},
"includeImports": {
"description": "Whether to include secret imports. If the secret isn't found, it will try to find a secret in a secret import that matches the requested secret name (Defaults to true)",
"type": "boolean"
},
"projectId": {
"description": "The ID of the project to get the secret from (required)",
"type": "string"
},
"secretName": {
"description": "The name of the secret to get (required)",
"type": "string"
},
"secretPath": {
"description": "The path of the secret to get (Defaults to /)",
"type": "string"
}
},
"required": [
"projectId",
"environmentSlug",
"secretName"
],
"type": "object"
}