PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
15.31k stars 1.5k forks source link

Adds check to ensure only known view paths can be passed #14277

Closed desertaxle closed 4 days ago

desertaxle commented 4 days ago

When loading collection view data from disk, we pass a user-provided string into a path without first checking the value. This PR adds a check to prevent inadvertent exposure of local files via the /collections/views/ route.

Should resolve https://github.com/PrefectHQ/prefect/security/code-scanning/2010

Example

Checklist