Skip to content

Commit

Permalink
Merge pull request #495 from daipom/1.0-out_http-add-new-option-aws_s…
Browse files Browse the repository at this point in the history
…igv4

out_http: Add descriptions about AWS Signature Version 4 support
  • Loading branch information
kenhys authored Jun 7, 2024
2 parents a0ea445 + 5557589 commit 10dfacb
Showing 1 changed file with 59 additions and 11 deletions.
70 changes: 59 additions & 11 deletions output/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,20 @@ The list of retryable response codes. If the response code is included in this l

### `<auth>` Section

Specifies HTTP authentication:
Specifies HTTP authentication.

#### `method`

| type | default | available values | version |
| :--- | :--- | :--- | :--- |
| enum | basic | basic/aws\_sigv4 | basic:1.7.0 / aws\_sigv4:1.17.0 |

The method for HTTP authentication.

* `basic`: basic authentication
* `aws_sigv4`: [AWS Signature Version 4](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html)

#### Parameters for `method basic`

```text
<auth>
Expand All @@ -283,30 +296,65 @@ Specifies HTTP authentication:
</auth>
```

#### `method`

| type | default | available values | version |
| :--- | :--- | :--- | :--- |
| enum | basic | basic | 1.7.0 |

The method for HTTP authentication. Now only `basic`.

#### `username`
##### `username`

| type | default | version |
| :--- | :--- | :--- |
| string | nil | 1.7.0 |

The username for basic authentication.

#### `password`
##### `password`

| type | default | version |
| :--- | :--- | :--- |
| string | nil | 1.7.0 |

The password for basic authentication.

#### Parameters for `method aws_sigv4`

Parameters for [AWS Signature Version 4](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html).

```text
<auth>
method aws_sigv4
aws_service osis
aws_region us-east-1
aws_role_arn arn:aws:iam::123456789012:role/MyRole
</auth>
```

##### `aws_service`

| type | default | version |
| :--- | :--- | :--- |
| string | nil | 1.17.0 |

The AWS service to authenticate against.

This parameter is required when you specify `aws_sigv4` for `method`.

##### `aws_region`

| type | default | version |
| :--- | :--- | :--- |
| string | nil | 1.17.0 |

The AWS region to use when authenticating.

This parameter is required when you specify `aws_sigv4` for `method`.

##### `aws_role_arn`

| type | default | version |
| :--- | :--- | :--- |
| string | nil | 1.17.0 |

The AWS role ARN to assume when authenticating.

This parameter is optional when you specify `aws_sigv4` for `method`. If you provide it, Fluentd will assume that AWS role and send requests signing from that role. Otherwise, Fluentd will use the credentials found by the [credential provider chain](https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html) as defined in the AWS documentation.

## Common Output / Buffer parameters

For common output / buffer parameters, please check the following articles:
Expand Down

0 comments on commit 10dfacb

Please sign in to comment.