http.awses Plugin

This feature does not come with Caddy by default. To get it, select the http.awses plugin when you download Caddy.

Caddy plugin for signing and proxying requests to AWS Elasticsearch (AWS ES). Configuring access to an AWS ES domain can be tricky. The access policy of an AWS ES domain is based on a principal (which necessitates a signed request) or an IP address whitelist. Whitelisting IP addresses often isn't a viable option and standard tools (such as curl or a browser) can't properly sign requests. This is exactly the problem this plugin aims to address. Standard tools can make unauthenticated requests to the Caddy server which are then signed and proxied to the AWS ES service.

Full documentation

Examples

All regions and domains

awses

Proxies requests to any region and AWS Elasticsearch domain in the form: /<region>/<domain>/<destination>

Specific region (all domains)

awses { region us-west-2 }

Proxies requests to any AWS Elasticsearch domain in a specific region (us-west-2) in the form: /<domain>/<destination>

Specific domain (all regions)

awses { domain es-logs }

Proxies requests to any region for a specific AWS Elasticsearch domain (es-logs) in the form: /<region>/<destination>

Complex / multiple prefixes

awses /docs/ { region us-east-1 domain the-docs } awses /logs/ { domain es-logs } awses /other-account/logs/ { domain es-logs role arn:aws:iam::123456789012:role/elasticsearch-logs-us-east-2 }

Proxies requests to a specific domain (the-docs) and region (us-east-1) with a prefix (/docs/) in the form: /docs/<destination> Also proxies requests to any region for a specific AWS Elasticsearch domain (es-logs) in the form: /logs/<region>/<destination> Also proxies requests to any region for a specific AWS Elasticsearch domain (es-logs) in another account (access through the role) in the form: /other-account/logs/<region>/<destination>

Related Links

Documentation

Access the full documentation for this plugin off-site:

Docs

Plugin Help

Get help from the maintainers of the http.awses plugin:

Support

Plugin Website

Visit http.awses’s website for more information:

Website

Plugin Author: Mark Severson

Last Updated: 26 Aug 2017, 2:58 PM

This plugin is independent of the Caddy project and is not endorsed or maintained by Caddy developers. Use at your own risk. Do not file issues for this plugin on Caddy’s bug tracker.