Skip to content

API - Config setting to control exposing stacktraces #51351

@pierrejeambrun

Description

@pierrejeambrun

Body

Similarly to AF2 expose_stacktrace we need to implement the AF3 equivalent. Add an api.expose_stacktrace config parameter and update the fastapi exception handlers (mostly the DB ones because they are the one to return stacktraces at the moment, but other exception handlers should be checked to) to instead return a generic message such as "DatabaseIntegrity error see more details in logs" when stack traces are not exposed.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions