Skip to content

Conversation

@aKlimau
Copy link

@aKlimau aKlimau commented Nov 4, 2025

Failed task tracebacks are currently a part of task model, it can expose sensitive information from an exception via the API. This change stops this behavior by only logging tracebacks and not storing them inside of tasks.

_execute_task and _aexecute_task are modified to log tracebacks for unknown exceptions but never save them to the Task record.

Task.set_failed() is updated to make the tb (traceback) argument optional.

A new PulpExceptionNoTraceback base class is added for known, user-facing errors (like a DNS failure) where the traceback is not useful and should not be logged.

A new DnsDomainNameException (inheriting from PulpExceptionNoTraceback) is added to handle DNS lookup failures (e.g., bad remote URLs) as a known user error.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant