You can use Appbase.io to supercharge your ElasticSearch cluster that is deployed on a 3rd party service such as AWS ElasticSearch service. There are 2 major ways to securely connect to your ElasticSearch cluster when using Appbase.io Bring Your Own Cluster (BYOC) option.
Basic authentication is a simple authentication scheme built into the HTTP protocol. The client sends HTTP requests with the
http://username:password@url or Authorization header that contains the word Basic word followed by a space and a base64-encoded string
Here is an example how you can use ElasticSearch URL with Basic Authentication, while using BYOC
Step 1 - Go to the Create Cluster Page.
You should see the above screen.
Step 2 - Select the pricing plan. Read more about pricing plans over here.
Step 3 - Select the region. It is recommended that you pick a region closest to where your ElasticSearch cluster is running.
Step 4 - Enter a name for your Appbase instance.
Step 5 - Enter the ElasticSearch URL with Basic Auth credentials added to it. Use the
Verify Connection button to ensure that this URL is accessible.
IP whitelisting allows you to create lists of trusted IP addresses or IP ranges from which your users can access your domains. This method is really helpful when your cluster is hosted using AWS ElasticSearch which does not support Basic Authentication.
Here is a quick example of how you can connect your AWS ElasticSearch cluster with Appbase.io. Assuming you already have AWS ElasticSearch Cluster in place, you can follow the steps below:
Step 1 - Temporarily modify Access Policy of your AWS ElasticSearch cluster to Allow open access to the domain. This is done to verify and connect to your ElasticSearch domain from Appbase.io.
Step 2 - Go to the Create Cluster Page.
You should see the above screen.
Step 3 - Select the pricing plan. Read more about pricing plans over here.
Step 4 - Select the region. It is recommended that you pick a region closest to where your ElasticSearch cluster is running.
Step 5 - Enter a name for your Appbase.io cluster instance.
Step 6 - Get the AWS ElasticSearch Cluster endpoint from AWS ElasticSearch dashboard.
Step 7 - Enter the AWS ElasticSearch Cluster URL
You're now all set to deploy the Appbase.io cluster. Hit
Create Cluster button at the bottom of the Appbase.io dashboard page and hang tight for 2-5 mins. Once the cluster is deployed, you can see the
View Details button in your Cluster list.
Step 8 - Get Appbase.io Cluster IP
Open Cluster Details page, by clicking on View Details button and copy the Cluster IP address.
Step 9 - Whitelist Appbase.io Cluster IP for AWS ElasticSearch instance.
- Navigate to AWS ElasticSearch cluster details page
- Navigate to Modify Access Policy
- Select Allow access to domain from specific IP(s)
- Paste Appbase.io Cluster IP
That's all! 🎉 Now your ElasticSearch Cluster URL is only accessible to the Appbase.io instance. You can use Appbase.io URL to perform various ElasticSearch operations securely.
Appbase.io provides fine-grained access control based security credentials which can now be used instead of your ElasticSearch Cluster URL for performing search requests from a web / mobile client application. You can read more about Appbase.io security controls over here.