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

Hackathon Test #82

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
2274bcc
auto review git action
himsharma01 Sep 28, 2024
5b6246c
removed older whl file
himsharma01 Sep 28, 2024
eabf926
fixed helpdocURL
himsharma01 Sep 28, 2024
415691c
disabling tests for testing
himsharma01 Sep 28, 2024
7383ba1
disabled awscli test
himsharma01 Sep 28, 2024
150d92f
testing export excel
himsharma01 Sep 28, 2024
0666a72
Updating scr
himsharma01 Sep 28, 2024
cf75f2c
Updating upload-artifact to v4
himsharma01 Sep 28, 2024
b591fb2
Update test excel file extension
himsharma01 Sep 28, 2024
ae6e4db
updating excel comment flow
himsharma01 Sep 28, 2024
611a45e
Adding artifact url in comment
himsharma01 Sep 28, 2024
2165ce6
Updating github script version
himsharma01 Sep 28, 2024
b2f4238
Updating github script version
himsharma01 Sep 28, 2024
66a4e9d
restored original v2 test file
himsharma01 Sep 28, 2024
ff0dd76
added app review flow
himsharma01 Sep 28, 2024
30f47c5
Updating comment logic
himsharma01 Sep 28, 2024
fbcb600
Updated excel comment logic
himsharma01 Sep 28, 2024
e855f0c
upload outputs
himsharma01 Sep 28, 2024
86c9621
github action v1
himsharma01 Sep 28, 2024
5205e4a
github action v2
himsharma01 Sep 28, 2024
d3ac1aa
github action v3
himsharma01 Sep 28, 2024
5144303
github action v4
himsharma01 Sep 28, 2024
4740d4a
github action v5
himsharma01 Sep 28, 2024
3a62b67
github action v6
himsharma01 Sep 28, 2024
c198891
github action v7
himsharma01 Sep 28, 2024
d331efd
github action v8
himsharma01 Sep 28, 2024
ae75e7d
github action v9
himsharma01 Sep 28, 2024
ebdc68c
github action v10
himsharma01 Sep 28, 2024
9ac1677
github action v11
himsharma01 Sep 28, 2024
c9d7e0d
github action v12
himsharma01 Sep 28, 2024
a663332
github action v13
himsharma01 Sep 28, 2024
e02769a
exported faulty app
himanshu219 Sep 29, 2024
7d183ac
updated workflow file
himanshu219 Sep 29, 2024
bf22333
updated screenshots
himanshu219 Sep 29, 2024
e75d0e8
updated workflow file
himanshu219 Sep 29, 2024
b14a466
updated whl file
himanshu219 Sep 29, 2024
fe2b9c9
updated input param
himanshu219 Sep 29, 2024
4139b54
updated input param
himanshu219 Sep 29, 2024
17db460
updated input param
himanshu219 Sep 29, 2024
33b9f0e
updated input param
himanshu219 Sep 29, 2024
6c3ca78
updated input param
himanshu219 Sep 29, 2024
21d5c64
updated whl file
himanshu219 Sep 29, 2024
ab00e36
updated whl file
himanshu219 Sep 29, 2024
e443ec1
updated whl file
himanshu219 Sep 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading