Webhooks for /files links in tusd?

I’m running tusd:
Version: v2.4.0
Commit: 50b9ff5623c26c856ec97e2e0a9a44c0f6baaceb
Date: Mon Mar 18 20:42:14 UTC 2024

Using webhooks allows me to to authenticate users, EG: Authorization Bearer tokens when uploading files. However, enabling webhooks doesn’t seem to work for downloading files.

In the app that I am writing, I need to be able to authenticate downloads as well as uploads so that users’ files aren’t just globally shared to anyone with the link, etc.

So far, all I can see is the option to disable downloads altogether and writing my own, which I can do but is far from optimal. I was surprised to not see any http webhooks calls when downloading was enabled and -hooks-http was active.

Is this going to be enabled any time soon? Is there an option I’m missing?

Thanks

This has been requested a few times and work has begun in hooks: add pre-access blocking hook by sberthier · Pull Request #1077 · tus/tusd · GitHub but is not finished yet. Let me know if you are interested in helping out!