OpenSearch/docs/plugins
David Pilato 7dcb40bcac Add support for proxy authentication for s3 and ec2
When using S3 or EC2, it was possible to use a proxy to access EC2 or S3 API but username and password were not possible to be set.

This commit adds support for this. Also, to make all that consistent, proxy settings for both plugins have been renamed:

* from `cloud.aws.proxy_host` to `cloud.aws.proxy.host`
* from `cloud.aws.ec2.proxy_host` to `cloud.aws.ec2.proxy.host`
* from `cloud.aws.s3.proxy_host` to `cloud.aws.s3.proxy.host`
* from `cloud.aws.proxy_port` to `cloud.aws.proxy.port`
* from `cloud.aws.ec2.proxy_port` to `cloud.aws.ec2.proxy.port`
* from `cloud.aws.s3.proxy_port` to `cloud.aws.s3.proxy.port`

New settings are `proxy.username` and `proxy.password`.

```yml
cloud:
    aws:
        protocol: https
        proxy:
            host: proxy1.company.com
            port: 8083
            username: myself
            password: theBestPasswordEver!
```

You can also set different proxies for `ec2` and `s3`:

```yml
cloud:
    aws:
        s3:
            proxy:
                host: proxy1.company.com
                port: 8083
                username: myself1
                password: theBestPasswordEver1!
        ec2:
            proxy:
                host: proxy2.company.com
                port: 8083
                username: myself2
                password: theBestPasswordEver2!
```

Note that `password` is filtered with `SettingsFilter`.

We also fix a potential issue in S3 repository. We were supposed to accept key/secret either set under `cloud.aws` or `cloud.aws.s3` but the actual code never implemented that.

It was:

```java
account = settings.get("cloud.aws.access_key");
key = settings.get("cloud.aws.secret_key");
```

We replaced that by:

```java
String account = settings.get(CLOUD_S3.KEY, settings.get(CLOUD_AWS.KEY));
String key = settings.get(CLOUD_S3.SECRET, settings.get(CLOUD_AWS.SECRET));
```

Also, we extract all settings for S3 in `AwsS3Service` as it's already the case for `AwsEc2Service` class.

Closes #15268.
2015-12-07 23:10:54 +01:00
..
alerting.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
analysis-icu.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
analysis-kuromoji.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
analysis-phonetic.asciidoc Add support for `daitch_mokotoff` 2015-11-18 15:41:39 +01:00
analysis-smartcn.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
analysis-stempel.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
analysis.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
api.asciidoc link to es-restlog plugin 2015-11-20 12:21:50 -05:00
authors.asciidoc [Doc] Fix correct number of slashes when installing a plugin with zip file 2015-11-03 10:32:44 +01:00
delete-by-query.asciidoc Deprecate the `scan` search type. 2015-08-20 12:47:23 +02:00
discovery-azure.asciidoc Docs: Removed references to java 7 and debian wheezy 2015-09-22 14:23:30 +02:00
discovery-ec2.asciidoc Add support for proxy authentication for s3 and ec2 2015-12-07 23:10:54 +01:00
discovery-gce.asciidoc Adding backoff from retries on GCE errors 2015-10-19 10:28:08 -07:00
discovery-multicast.asciidoc Docs: Fix section id for the new discovery-multicast plugin. 2015-08-21 09:36:55 +02:00
discovery.asciidoc Add Kubernetes discovery community plugin 2015-11-25 12:54:29 +00:00
index.asciidoc [cloud-azure] Split azure plugin in 3 plugins 2015-09-21 17:55:23 +02:00
integrations.asciidoc Updated the correct doc for Kafka Consumer 2015-11-17 14:11:03 +01:00
lang-javascript.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
lang-python.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
management.asciidoc Added link to Swagger for Elasticsearch 2015-10-13 21:29:53 +02:00
mapper-attachments.asciidoc Migrate mapper attachements plugin to asciidoc 2015-11-09 15:35:06 +01:00
mapper-murmur3.asciidoc Move the `murmur3` field to a plugin and fix defaults. 2015-08-18 11:41:52 +02:00
mapper-size.asciidoc Docs: Fixed bad link to dynamic scripting 2015-08-15 18:20:14 +02:00
mapper.asciidoc Migrate mapper attachements plugin to asciidoc 2015-11-09 15:35:06 +01:00
plugin-script.asciidoc Migrate mapper attachements plugin to asciidoc 2015-11-09 15:35:06 +01:00
repository-azure.asciidoc Fix example for s3 repository bucket name 2015-11-23 13:14:02 +01:00
repository-s3.asciidoc Add support for proxy authentication for s3 and ec2 2015-12-07 23:10:54 +01:00
repository.asciidoc [cloud-azure] Split azure plugin in 3 plugins 2015-09-21 17:55:23 +02:00
scripting.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
security.asciidoc Add Kerberos/SPNEGO Shield custom realm 2015-10-26 13:53:04 +01:00
store-smb.asciidoc [cloud-azure] Split azure plugin in 3 plugins 2015-09-21 17:55:23 +02:00
store.asciidoc [cloud-azure] Split azure plugin in 3 plugins 2015-09-21 17:55:23 +02:00
transport.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00