fix(collaboration): [OCISDEV-1020] check for proof keys in the templates endpoint - #12852
fix(collaboration): [OCISDEV-1020] check for proof keys in the templates endpoint#12852jvillafanez wants to merge 1 commit into
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
It seems the fix doesn't work with OnlyOffice because it doesn't send the proof keys to the "/wopi/templates/" endpoint, so the proof verification fails. |
So OnlyOffice wouldn't work with oCIS anymore after merging this? |
The template feature, which uses the "/wopi/templates" endpoint, would break on OnlyOffice. Regular access using the "/wopi/files" endpoint works fine. |
LukasHirt
left a comment
There was a problem hiding this comment.
Code looks good. Any follow up on acceptance tests or docs needed?
|
Should we include changelog? Would it also be a breaking change? |
|
I'd rather wait for a PM decision. I think the options we have at the moment are:
|
Description
WOPI templates endpoint will follow the same approach as with the files endpoint, so both will check for proof keys
Related Issue
Motivation and Context
Allow access only from legit sources.
How Has This Been Tested?
Manually tested with Collabora (with proof keys enabled): it's possible to access without problems.
Trying to access without valid proof keys (or without keys at all) will cause a 500 error, which is what is expected if the verification of the proof keys fails.
Screenshots (if appropriate):
Types of changes
Checklist: