Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for SesAccount #54

Merged
merged 1 commit into from
Aug 13, 2021
Merged

Added support for SesAccount #54

merged 1 commit into from
Aug 13, 2021

Conversation

akbhatta
Copy link
Contributor

Description

Added support for SesAccount
Also updated Feature to be simple string for future plugin easy addition

[Tests]
Added unit tests for SesAccount
Updated Unit tests for changes

Signed-off-by: @akbhatta

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Also updated Feature to be simple string for future plugin easy addition

[Tests]
Added unit tests for SesAccount
Updated Unit tests for changes

Signed-off-by: @akbhatta
data class SesAccount(
val awsRegion: String,
val roleArn: String?,
val fromAddress: String
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember previously the decision was to only have a text box in UI for SES sender, did this change? are we adding a new config type for SesAccount, and another one for SES?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SES configuration needs to be taken from UI instead of taking from yaml file hence additional fields. In UI, for the email configuration, customer can either choose SmtpAccount or SesAccount for sender profile.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see. also what's the format to specify awsRegion? is there a list of valid strings?

@akbhatta akbhatta merged commit d79c53d into opensearch-project:main Aug 13, 2021
@akbhatta akbhatta mentioned this pull request Aug 13, 2021
5 tasks
akbhatta added a commit that referenced this pull request Aug 13, 2021
* Added support for SesAccount (#54)

Also updated Feature to be simple string for future plugin easy addition

[Tests]
Added unit tests for SesAccount
Updated Unit tests for changes

Signed-off-by: @akbhatta

* Adds legacy chime, slack, custom webhook messages, request/response f (#53)

* Adds legacy chime, slack, custom webhook messages, request/response for publishing legacy notifications, and method for executing transport action

Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>

* Fixes import and removes username/password that is not used by ISM

Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>

* Throws error for toXContent for legacy notification response

Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>

* Renames legacy destination types to have legacy prefix

Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>

* Obfuscates message to remove from logs in toString method

Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>

* Makes destinationt type private and updates places to use getter

Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>

* Inlines destination type

Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>

* Makes base message content final

Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>

* Requires url to be defined in LegacyCustomWebhookMessage for use across transport wire and only writes the full url instead of each individual part

Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>

Co-authored-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>
zelinh pushed a commit that referenced this pull request Aug 18, 2022
Also updated Feature to be simple string for future plugin easy addition

[Tests]
Added unit tests for SesAccount
Updated Unit tests for changes

Signed-off-by: @akbhatta
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
wuychn pushed a commit to ochprince/common-utils that referenced this pull request Mar 16, 2023
Also updated Feature to be simple string for future plugin easy addition

[Tests]
Added unit tests for SesAccount
Updated Unit tests for changes

Signed-off-by: @akbhatta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants