[Bug]: UI Markdown Renderer not using presign URL to get images #6412
Labels
bug
Something isn't working
no stale
Using this label will prevent items from being marked as stale
presign-minimal-permissions
What happened?
What
When rendering Markdown files, the UI loads images.
The problem is that when getting those images from lakeFS the UI ignores
presign
config (i.e sample repository, sample data in a custom repository or just any custom Markdown that fetches files fromlakefs://
).Why
Those images are rendered in CustomMarkdownRenderer component which in turns uses imageUriReplacer to fetch the images to load. The request to download the image doesn't use
presign
hence downloading directly from lakeFS server.Impact
Besides the unexpected behavior and the extra work lakeFS server does + extra cost it's breaking in case the storage credentials (S3,GCS,AZ) does not allow lakeFS server directly to get objects then the Markdown rendering breaks.
Steps to Reproduce:
Add sample data, hooks, and configuration
presign: true
. (i.e/api/v1/repositories/first1/refs/main/objects?path=images%2Fcreate-lakefs-branch.png
)Expected behavior
presign
flag and respect it when downloading images.Get
directly.lakeFS version
v0.105.0
How lakeFS is installed
locally
Affected clients
ui
Relevant log output
Contact details
No response
The text was updated successfully, but these errors were encountered: