Restrict http verbs - #153
Conversation
|
I think that all methods in otcetera do POST and OPTIONS but not GET. So tnrs, taxonomy, and conflict would also need POST permission. |
|
Also maybe the part that redirects to ws_wrapper instead of taxomachine should be a separate commit. (Sorry if that is too nit-picky). |
|
I'm going to spin up a new machine and test it! |
|
|
Maybe you need mod_allowmethods running in apache? https://httpd.apache.org/docs/2.4/mod/mod_allowmethods.html |
|
See existing a2enmod commands here, probably can add this at the end. EDIT to fix the link, durnit. |
Yup - module probably not installed by default. |
|
Ah right! No points will be awarded on reading comprehension for meeee. I'll try with proper installs shortly! |
|
Deployed on ot54 - does successfully prevent top level post, but restrictions cause a bunch of other tests to fail. Continuing to dig into it, but updating here: |
|
closing because we moved to ansible OpenTreeOfLife/ot-ansible#39 |
First pass at config changes to restrict http verbs. Also changes tnrs from neo4j to otcetera. Needs review to confirm 1) correct ports for otc and 2) which methods require opening up POST.
Requires installation of mod_allowmethods module, if note already installed.