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

Add AWS SNS receiver #2615

Merged
merged 35 commits into from Jul 26, 2021
Merged

Add AWS SNS receiver #2615

merged 35 commits into from Jul 26, 2021

Commits on Jun 10, 2021

  1. WIP - SNS receiver

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    19e74f9 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2021

  1. ARN Auth start

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    5dcf4f5 View commit details
    Browse the repository at this point in the history
  2. Add support for role arn, truncation, dedupe key and env auth

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    74d1527 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2021

  1. Use 1024 rather than 1000 for KB size, fix target arn, handle large S…

    …MS messages correctly
    
    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    009f8b1 View commit details
    Browse the repository at this point in the history
  2. Remove isFifo config option; use template strings; use retier; other …

    …code review comments
    
    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    72d63a5 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2021

  1. Add some tests for sns receiver

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    6519c39 View commit details
    Browse the repository at this point in the history
  2. Check error type before unpacking awserr.requestFailure

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    af8406a View commit details
    Browse the repository at this point in the history
  3. Add string length check to fifo check

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    68fa1bf View commit details
    Browse the repository at this point in the history
  4. Add subject template for subject field. Better check for supplied cre…

    …ds, use GetTopicAttributes to check fifo
    
    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    b509a5b View commit details
    Browse the repository at this point in the history
  5. Add config docs

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    8d3b1b5 View commit details
    Browse the repository at this point in the history
  6. Remove isFifoTopic test

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    889fa96 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2021

  1. Fix gosmpl linter issues

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    c48b54b View commit details
    Browse the repository at this point in the history
  2. Updated assets

    Signed-off-by: Marco Pracucci <marco@pracucci.com>
    pracucci committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    3a63cc2 View commit details
    Browse the repository at this point in the history
  3. Cache fifo bool in the notifier

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    6ada9a6 View commit details
    Browse the repository at this point in the history
  4. Fix for golangci-lint warning

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    756cdda View commit details
    Browse the repository at this point in the history
  5. More gofmt fixes

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    9d37d6c View commit details
    Browse the repository at this point in the history
  6. Code review fixes: copy attributes, truncate all the messages, fix lo…

    …gging, remove api_version
    
    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    3446b35 View commit details
    Browse the repository at this point in the history
  7. Fix spacing from removing default api version

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    a56305a View commit details
    Browse the repository at this point in the history
  8. Add missing template for aws region

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    d4ff90b View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2021

  1. Code review fixes

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    b9b53f1 View commit details
    Browse the repository at this point in the history
  2. Fix docs spacing

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    63f9082 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ebcaf9 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2021

  1. Make API URL optional, clear up credential logic

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    8911051 View commit details
    Browse the repository at this point in the history
  2. Fix linter error

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    dfb4d1f View commit details
    Browse the repository at this point in the history
  3. Create new session if needed to get STS Creds

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    9ff4ac3 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2021

  1. Use supplied user creds when creating an STS client

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    30a83f7 View commit details
    Browse the repository at this point in the history
  2. Fix spacing for client config

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    bd82f70 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. Add common/sigv4 with the sigv4 config

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    25e6d4e View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2021

  1. Update config docs to clarify fifo SNS deduplication strategy. Remove…

    … extra api call get topic attributes and use '.fifo' strategy instead
    
    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    208bed6 View commit details
    Browse the repository at this point in the history
  2. Remove unused checkTopicFifoAttribute function

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    1322abd View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2021

  1. Add error check when creating sns session

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    077b20d View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2021

  1. Check Error in unit test and clean up docs

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    7ecb6bc View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Add sigv4 as a global config option

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    4c2a5f1 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2021

  1. Revert "Add sigv4 as a global config option"

    This reverts commit 4c2a5f1.
    
    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    51b9368 View commit details
    Browse the repository at this point in the history
  2. Break notify into submethods to create the session then create the pu…

    …blish input to send. Check we populate a region for all requests.
    
    This reverts commit 4c2a5f1.
    
    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    a1260af View commit details
    Browse the repository at this point in the history