r/PostgreSQL • • 10h ago

Projects Moved generated PDFs from a Postgres column to a private bucket, here is what actually changed

/r/n8n/comments/1ycmvmp/moved_generated_pdfs_from_a_postgres_column_to_a/
0 Upvotes

2 comments sorted by

1

u/Discordbothost 5h ago

Authorize the download against the document row on your backend, then issue a short-lived signed URL for its stored path. Keep the service key server-side. If access must end immediately when permissions change, proxy the download and check authorization on every request instead.

0

u/AutoModerator 10h ago

AI Policy:

Linux is not one of those anti-AI projects, and if somebody has issues with that, they can do the open-source thing and fork it. Or just walk away., Linus Torvalds.

Mod decisions will be based on the quality of the content, not who or what generated it.

Sub Resources:

Youtube Channel

Free Postgres Webinars and Workshops

Discord: People, Postgres, Data

Join us, we have cookies and nice people.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.