Closed Bug 1175946 Opened 9 years ago Closed 9 years ago

Enable Groovy in our Elasticsearch clusters

Categories

(Socorro Graveyard :: Middleware, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adrian, Assigned: adrian)

References

Details

groovy, the scripting system used by elasticsearch, is disabled in version 1.4. We need to find another way to update data in the Super Search Fields list.
Blocks: 1179518
Blocks: 1180831
phrawzty, is there any risk for us in enabling groovy in our cluster? It's not trivial to fix this problem without it.
Flags: needinfo?(dmaher)
According to the documentation[0], Groovy was disabled for security reasons in versions prior to 1.4.3; we are running 1.4.5, so that's not an issue any more.  Since we do not allow direct access to the ES web interface (all requests go through the filter that is our web interface) it should be safe enough to enable Groovy if it isn't already.

[0] https://www.elastic.co/guide/en/elasticsearch/reference/1.4/modules-scripting.html
Flags: needinfo?(dmaher)
Blocks: 1183370
Since we are not exposing Elasticsearch publicly, and the only places where we use scripts cannot contain any user content, we are safe with enabling Groovy.
Status: NEW → ASSIGNED
Summary: [Super Search Fields] Do not use scripts for updating data → Enable Groovy in our Elasticsearch clusters
Blocks: 1185400
I thought we cracked this. Does the bug just need to be closed?
Commits pushed to master at https://github.com/mozilla/socorro-infra

https://github.com/mozilla/socorro-infra/commit/756bb97b7d14c44635c4c4dbacb2846104bd56bf
Fixes bug 1175946 - Enabled Groovy scripting in our Elasticsearch clusters.

https://github.com/mozilla/socorro-infra/commit/a3297c27fdd0605f7159fab021d3db028673b421
Merge pull request #188 from AdrianGaudebert/1175946-enable-groovy-in-es

Fixes bug 1175946 - Enabled Groovy scripting in our Elasticsearch clu…
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Socorro → Socorro Graveyard
You need to log in before you can comment on or make changes to this bug.