paulirish / trace.cafe

easy webperf trace sharing
https://trace.cafe/
Apache License 2.0
109 stars 2 forks source link

Support trace deletion #19

Open csharrison opened 3 weeks ago

csharrison commented 3 weeks ago

It would probably be good to allow users to delete traces they have uploaded. This is probably a little tricky due to the fact that there's no login / auth mechanism to know who uploaded what, but it seems like a good feature to have regardless if you can solve that challenge.

paulirish commented 2 weeks ago

@csharrison Yup. true. I'd love to have this.

My storage layer is blissfully easy right now.. Just some JS uploading directly to a firebase store (gcs bucket). Some auth around that to ensure folks can write but not delete. And sadly, while I could enable deletion, there aren't any built-in controls to only do it with some authenticated token. Thus, it'd be easy to delete anyone else's traces, assuming you know the URL.

Clearly this isn't your problem. I'm just writing it out for my future self (or some smarter firebase/gcs person who has an idea) :)