Skip to content

Commit

Permalink
SUMO-245929: added dashboards for amazon ses app
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu219 committed Sep 30, 2024
1 parent 0e3a0d0 commit 57d552a
Show file tree
Hide file tree
Showing 17 changed files with 1,132 additions and 44 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/V2App_review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: v2 App Review

on: [pull_request]

jobs:
v2-app-review:
name: "V2 App Review"
runs-on: "ubuntu-latest"
env:
SUMO_APPS_V2_REPO_PATH: ${{ github.workspace }}
TARGET_BRANCH: "origin/${{ github.event.pull_request.base.ref }}"
SOURCE_BRANCH: "origin/${{ github.event.pull_request.head.ref }}"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
python3 -m pip install -U pip wheel setuptools yq
- name: "Install sumoappsuite tool"
run: |
pip3 install $GITHUB_WORKSPACE/scripts/sumologic_appdevutils*.whl
- name: Set up AWS CLI
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: "us-west-2"
- name: "Generate SCR File"
run: |
sumoappsuite generate-scr-file-v2-app && cat scr_app_list.yaml
- name: "Set relativeFolderPath"
id: set_relative_folder_path
run: |
echo "app_path=$(cat scr_app_list.yaml | yq '.apps[0].relativeFolderPath')" >> "$GITHUB_ENV"
- name: "Run Sumo Logic App Review tool"
run: |
export app_folder_path=$(echo "${SUMO_APPS_V2_REPO_PATH}/src/${app_path}" | sed "s/\"//g")
echo $app_folder_path
sumoappsuite review-v2-app -f $app_folder_path -o .
- name: Upload Excel Sheet as PR Comment
id: upload_artifact
uses: actions/upload-artifact@v4
with:
name: excel-sheet
path: appreview*.xlsx
- name: Comment on PR with Artifact URL
run: |
PR_NUMBER=$(echo $GITHUB_REF | awk -F'/' '{print $3}')
ARTIFACT_URL="${{ steps.upload_artifact.outputs.artifact-url }}"
curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -d "{\"body\": \"Reviewed app folder: ${{ steps.set_relative_folder_path.outputs.app_path }} Download the review feedback [sheet]($ARTIFACT_URL)\"}" "https://api.github.com/repos/${{ github.repository }}/issues/$PR_NUMBER/comments"
2 changes: 1 addition & 1 deletion .github/workflows/v2App_Unit_Test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
sumoappsuite generate-scr-file-v2-app && cat scr_app_list.yaml
- name: "Run Sumo Logic App Tests"
run: |
sumoappsuite run-all-app-tests-v2 -f scr_app_list.yaml -e test_tfApp_installable,test_is_deployable,test_sumo_query,test_threatintel_query,test_update_v2_app
sumoappsuite run-all-app-tests-v2 -f scr_app_list.yaml -e test_tfApp_installable,test_is_deployable,test_sumo_query,test_threatintel_query,test_update_v2_app
43 changes: 0 additions & 43 deletions scripts/scr_app_list.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +0,0 @@
apps:
- name: Doppel Vision
version: 1.0.0
uuid: 1875c9d1-6f58-4f96-be21-0e5f0a8ddc4f
relativeFolderPath: DoppelVision
demo_input_mapping:
- input_name: scope_key
input_name_value: _sourceCategory
- input_name: default_scope_value
input_name_value: "*dopple*"
installable: true
prevVersions: []
- name: LambdaTest
version: 1.0.0
uuid: 41168bd0-61f0-434c-8286-23b2e0fa6502
relativeFolderPath: Lambdatest
demo_input_mapping:
- input_name: scope_key
input_name_value: _sourceCategory
- input_name: default_scope_value
input_name_value: Labs/lambdatest/*
installable: true
prevVersions: []
- name: Endace
version: 1.0.1
uuid: 81cff485-32a9-403f-a3d6-04d8d20e8f2c
relativeFolderPath: Endace
demo_input_mapping:
- input_name: scope_key
input_name_value: _sourceCategory
- input_name: default_scope_value
input_name_value: messages
- input_name: scope_key1
input_name_value: _sourceCategory
- input_name: default_scope_value1
input_name_value: suricata
- input_name: scope_key2
input_name_value: _sourceCategory
- input_name: default_scope_value2
input_name_value: zeek
installable: true
prevVersions:
- 1.0.0
Binary file not shown.
5 changes: 5 additions & 0 deletions src/AmazonSES/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## [1.0.0] - 2024-02-18
### Added
- Migrated to [next-gen](https://help.sumologic.com/docs/get-started/apps-integrations/#next-gen-apps) app.
Empty file added src/AmazonSES/README.md
Empty file.
Binary file added src/AmazonSES/assets/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/AmazonSES/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
parameters:
- componentType: scope
label: SES Notifications data source
keyTfVar: scope_key
defaultValueTfVar: default_scope_value
- componentType: scope
label: CloudTrail Logs data source
keyTfVar: scope_key1
defaultValueTfVar: default_scope_value1
47 changes: 47 additions & 0 deletions src/AmazonSES/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
schemaVersion: '2.0'
name: Amazon SES (hackathon demo)
version: 1.0.0
description: Amazon Simple Email Service (Amazon SES) is a cloud-based email sending
and recieving service. The Sumo Logic App for Amazon SES helps you monitor the email
platform activities. The app uses CloudTail events and SES notifications, and provides
pre-configured dashboards that provide insights on the status of the email delivery
including bounced notifications, delivered notifications, complaint notifications
and various SES CloudTail events.
author:
supportUrl: https://support.sumologic.com/
homeUrl: https://sumologic.com
documentationUrl: https://help.sumologic.com/?cid=xxxx
name: Sumo Logic
attributes:
category:
- Amazon Web Services
- IT Infrastructure
useCase:
- observability
collection:
- Hosted
searchTerms:
- amazon
- aws
appOverview:
overview: README.md#Overview
appMedia:
- title: Amazon SES - Complaint Notifications
description: See information about complaints (a complaint occurs when a recipient
reports that they don't want to receive an email), including the top email addresses,
email domains, and UserAgents associated with complaints; and the sending AccountId,
AWS region, SourceIP, and Identity associated with complaints.
type: image
location: ./assets/images/preview/Amazon-SES-Complaint-Notifications.png
- title: Amazon SES - CloudTrail Evens Overeview
description: See an overview of SES CloudTrail events, including failed, and successful
events, error codes, users, and event locations.
type: image
location: ./assets/images/preview/Amazon-SES-CloudTrail-Events-Overview.png
- title: Amazon SES - Notification Overview
description: See an overview of SES notifications including the source IP locations,
notification types, mail source, and accountId.
type: image
location: ./assets/images/preview/Amazon-SES-Notification-Overview.png
installable: true
showOnMarketplace: true
Loading

0 comments on commit 57d552a

Please sign in to comment.