Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Add setup instructions for read only plugin, refs #69 #72

Merged
merged 1 commit into from
Oct 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions resources/config/readonlyrest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
readonlyrest:

access_control_rules:

- name: Accept all requests from localhost
hosts: [127.0.0.1]

- name: Codecoverage RO for Mozilla release services
groups:
- mozilla-release-services
indices:
- codecoverage
- repo

users:
- username: RELMAN_USERNAME
auth_key_sha256: RELMAN_HASH
groups:
- mozilla-release-services
14 changes: 13 additions & 1 deletion resources/scripts/setup_frontend_r3_large.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,19 @@ git checkout activedata
git pull origin activedata
sudo pip install -r requirements.txt


# Install Read Only plugin
# Important: download the latest build from https://readonlyrest.com/download/
# Use the version 6.1.2
# The downloaded file should be put on the target server as /tmp/es-readonly.zip
cd /usr/local/elasticsearch/
sudo bin/elasticsearch-plugin install file:///tmp/es-readonly.zip
cp ~/ActiveData/resources/config/readonlyrest.yml /usr/local/elasticsearch/config/readonlyrest.yml

# Replace the placeholders in configuration files with real values
# The RELMAN_HASH is an sha256 hash of user:password
# See https://github.com/beshu-tech/readonlyrest-docs/blob/master/elasticsearch.md#auth_key_sha256
sed -i -e 's/RELMAN_USERNAME/xxxx/g' /usr/local/elasticsearch/config/readonlyrest.yml
sed -i -e 's/RELMAN_HASH/yyyy/g' /usr/local/elasticsearch/config/readonlyrest.yml



Expand Down