Skip to content

[LOW] Embedding API error response body leaked in error messages and CRD status #200

Description

@pradeepto

Description

pkg/embedding/client.go:129

return nil, fmt.Errorf("API returned status %d: %s", resp.StatusCode, string(body))

The full error response body from the embedding API is included in the error message. This error propagates up through UpdateStatus() and gets stored in the CRD status conditions visible to anyone who can kubectl get the CR.

Impact

Internal API error details from the embedding service are exposed through the Kubernetes API.

Fix

Log the full response body server-side for debugging but return a sanitized error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions