update_secret
Modify attributes of an existing secret in APISIX-MCP. Supports updates for Vault, AWS, and GCP secret managers by specifying ID, manager type, and required credentials.
Instructions
Update specific attributes of an existing secret
Input Schema
Name | Required | Description | Default |
---|---|---|---|
id | Yes | secret id | |
manager | Yes | secret manager type | |
secret | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"id": {
"description": "secret id",
"type": "string"
},
"manager": {
"description": "secret manager type",
"enum": [
"vault",
"aws",
"gcp"
],
"type": "string"
},
"secret": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"namespace": {
"description": "Vault namespace",
"type": "string"
},
"prefix": {
"description": "path prefix of the secret engine",
"type": "string"
},
"token": {
"description": "token for Vault authentication",
"type": "string"
},
"type": {
"const": "vault",
"type": "string"
},
"uri": {
"description": "address of the Vault server",
"type": "string"
}
},
"required": [
"type",
"uri",
"prefix",
"token"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"access_key_id": {
"description": "AWS access key",
"type": "string"
},
"endpoint_url": {
"description": "AWS secret manager endpoint url",
"type": "string"
},
"region": {
"description": "AWS region",
"type": "string"
},
"secret_access_key": {
"description": "AWS secret key",
"type": "string"
},
"session_token": {
"description": "AWS session token",
"type": "string"
},
"type": {
"const": "aws",
"type": "string"
}
},
"required": [
"type",
"region",
"access_key_id",
"secret_access_key"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"auth_config": {
"additionalProperties": false,
"properties": {
"client_email": {
"description": "Email address of the Google Cloud service account",
"type": "string"
},
"entries_uri": {
"default": "https://secretmanager.googleapis.com/v1",
"description": "The API access endpoint for the Google Secrets Manager",
"type": "string"
},
"private_key": {
"description": "Private key of the Google Cloud service account",
"type": "string"
},
"project_id": {
"description": "Project ID in the Google Cloud service account",
"type": "string"
},
"scope": {
"default": "https://www.googleapis.com/auth/cloud-platform",
"description": "Access scopes of the Google Cloud service account",
"type": "string"
},
"token_uri": {
"default": "https://oauth2.googleapis.com/token",
"description": "Token URI of the Google Cloud service account",
"type": "string"
}
},
"required": [
"client_email",
"private_key",
"project_id"
],
"type": "object"
},
"auth_file": {
"description": "Path to the Google Cloud service account authentication JSON file",
"type": "string"
},
"project_id": {
"description": "GCP project ID",
"type": "string"
},
"ssl_verify": {
"default": true,
"description": "Enable SSL verification",
"type": "boolean"
},
"type": {
"const": "gcp",
"type": "string"
}
},
"required": [
"type",
"project_id"
],
"type": "object"
}
]
}
},
"required": [
"id",
"manager",
"secret"
],
"type": "object"
}