Secure nextUri with a slug#13110
Conversation
mayankgarg1990
left a comment
There was a problem hiding this comment.
Me and @wenleix were actually talking about something similar for worker communication to avoid people from guessing the worker URL to fetch intermediate data.
arhimondr
left a comment
There was a problem hiding this comment.
LGTM % please wait for the build to pass
|
|
Re: new slug every time - as of now - if somehow there is an out of order request we would end up getting "query not found" as In my opinion we should maintain this behavior with the new implementation as well |
|
You already can't get results out of order, but I didn't think about getting the same result twice. Seems reasonable to leave as is for now. We can do more investigation about whether it's worth breaking this feature. |
|
We could also cache the previous slug, though for that case. |
|
This PR is strictly better than before so I don't see reasons to block it. But if the client logs the url then a unique slug per query is not very helpful. We can improve that in a separate PR though if people feel more discussions are needed. |
Backport trinodb/trino#561