To check the status of a previously performed secret injection, an HTTP GET request must be sent to the status endpoint, also authenticated with an authorization token.
Request
- Endpoint:
GET /api/v4/injection/k8s-secret
- Authorization:
Bearer {token}
Request Payload
{
"cluster_name": "prod-cluster",
"namespace": "app-prod",
"secret_name": "db-credentials"
}
This request retrieves information about the db-credentials
secret in the app-prod
namespace of the prod-cluster
cluster.
Response
- Status Code:
200 OK
Response Body
{
"secret_name": "db-credentials",
"namespace": "app-prod",
"cluster_name": "prod-cluster",
"status": "success",
"last_injected_at": "2025-05-28T14:05:00Z",
"last_value_hash": "SHA256:98c8e8d13ab...34b7",
"message": "Secret is up-to-date and matches vault version."
}
The response provides details about the secret, including the name, namespace, and cluster where it was injected. The success status and message indicate that the secret is up-to-date and matches the version stored in the vault, with the hash of the last injected value for integrity verification.