Skip to content

Sanitize error details from CR status conditions - #35

Open
umago wants to merge 1 commit into
openstack-k8s-operators:mainfrom
umago:ess-sanitize-error
Open

Sanitize error details from CR status conditions#35
umago wants to merge 1 commit into
openstack-k8s-operators:mainfrom
umago:ess-sanitize-error

Conversation

@umago

@umago umago commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Flagged by ESS SEC-APP-REQ-1 assessment for input/output validation/sanitization.

The raw err.Error() output in status conditions was visible to anyone with kubectl describe access, potentially leaking Kubernetes API error details, internal service names, and secret names.

Replace with a generic message and log the full error to the operator logs instead, where access is controlled.

Flagged by ESS SEC-APP-REQ-1 assessment for input/output
validation/sanitization.

The raw err.Error() output in status conditions was visible to anyone
with kubectl describe access, potentially leaking Kubernetes API error
details, internal service names, and secret names.

Replace with a generic message and log the full error to the
operator logs instead, where access is controlled.

Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
@openshift-ci
openshift-ci Bot requested review from Akrog and lpiwowar July 29, 2026 09:57
@openshift-ci

openshift-ci Bot commented Jul 29, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: umago

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant