opensearch-project / opensearch-project/data-prepper

Support configurable error message from STS

Open
#3,018 0 comments 0 reactions 1 assignee View on GitHub

@dlvenable is already working on this.

Since Jul 12, 2023.

enhancement
Dominant language
Java
Stars
374
Forks
354
Avg merge
3d 18h
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.

The error message provided by STS when assuming may not always be the most useful message to present.

Describe the solution you'd like

Allow configuration of the AWS plugin to change the error message provided when assuming a role.

This message can use some formatting to make it dynamic.

e.g.

Unable to assume role ${stsRoleArn} from Amazon STS.

This may yield:

Unable to assume role arn:aws:iam::123456789012:role/MyRole from Amazon STS.

Configuration in data-prepper-config.yaml:

aws:
  sts_errors:
    default_error: Unable to assume role ${stsRoleArn} from Amazon STS.

Additional context

This relates to the ongoing work in the AWS plugin in #2570. And it requires that extension plugins can add new configurations to data-prepper-config.yaml which is part of the extensions work in #2588.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.