polifonia-project / facets-search-engine

6 stars 0 forks source link

home UI: protect our data #118

Closed TiangeZhu closed 11 months ago

TiangeZhu commented 1 year ago

protect scorelib index to not be deleted, right now we hard-code it in the code. In the future, this will be related to #76

TiangeZhu commented 1 year ago

tried to hard code this in rest/views.py but it does not work because ES directly process commands like "curl -X DELETE http://localhost:9200/index_name/"

raphaelfournier commented 1 year ago

It should be hard coded in the GUI at least. Few people will be able to run a curl query, they will need to be careful/not malicious.

TiangeZhu commented 11 months ago

it's possible to hide the neuma repo by changing settings in settings.py. it is impossible to unable a curl command directly to ES for deleting the index.