Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
d27d52c
Update Release Notes for GA (#36)
adityaj1107 Jul 2, 2021
62de872
add method type in CustomWebhook data model (#39)
zhongnansu Jul 16, 2021
4ef189d
Fix class loader issue for notifications response (#40)
dai-chen Jul 20, 2021
0af72bf
remove restrictions on webhook url protocols to also include http (#43)
zhongnansu Aug 2, 2021
bf2bfb3
Bumping common-utils to build with OpenSearch(main) 1.1.0 (#48)
saratvemulapalli Aug 6, 2021
28e688b
Adding an utility method that allows consumers to set custom thread c…
thalurur Aug 6, 2021
b18a489
Add Notifications SNS model (#50)
joshuali925 Aug 9, 2021
d79c53d
Added support for SesAccount (#54)
akbhatta Aug 13, 2021
4b1c21c
Adds legacy chime, slack, custom webhook messages, request/response f…
dbbaughe Aug 13, 2021
401802d
Using 1.1 snapshot version for OpenSearch (#57)
VachaShah Aug 16, 2021
4f30425
Add themed logo to README (#41)
Aug 16, 2021
cc02f23
Build snapshot build by default with the same version as OpenSearch. …
dblock Aug 16, 2021
3913d70
BugFix: Allow null values for role_arn in json parsing (#60)
akbhatta Aug 16, 2021
8fccbea
Removed tenant information from the models (#73)
akbhatta Sep 17, 2021
21b951d
Updated the plugin feature response with allowed config features (#74)
akbhatta Sep 23, 2021
486c2e1
Updates common-utils version to 1.2 (#77)
downsrob Oct 1, 2021
151646f
Publish .md5 and .sha1 signatures. (#79) (#80)
dblock Oct 6, 2021
cbeba12
Publish source and javadoc checksums. (#81)
dblock Oct 6, 2021
e51a67a
Email recipients made nested for backward compatibility with Alerting…
akbhatta Oct 13, 2021
32f0c6f
Update copyright notice (#90)
qreshi Nov 2, 2021
2253331
Update maven publication to include cksums. (#91)
mch2 Nov 4, 2021
2679a01
Add release notes for version 1.2.0.0 (#92)
lezzago Nov 5, 2021
84bb457
Fix copyright notice and add DCO check workflow (#94)
lezzago Nov 9, 2021
eb79bae
Update build.sh script to include optional platform param. (#95)
mch2 Nov 12, 2021
2ebb5e6
Add codeowners support for repo (#96)
ryanbogan Nov 12, 2021
19ca2c0
Bump version to 1.3 (#99)
lezzago Dec 2, 2021
643157d
Auto-increment version on new release tags. (#106)
dblock Jan 4, 2022
7c0460d
Remove jcenter repository (#115)
peternied Feb 17, 2022
31fd411
Using Github App token to trigger CI for version increment PRs (#116)
VachaShah Feb 19, 2022
bccb1bb
Fixes copyright headers (#117)
dbbaughe Feb 21, 2022
1da8807
Remove jcenter repository missed on first pass (#118)
peternied Feb 24, 2022
3919543
Run CI/CD on Java 8, 11, 14 and 17. (#121)
dblock Mar 1, 2022
710b1f9
Add .whitesource configuration file (#109)
mend-for-github-com[bot] Mar 2, 2022
361db4c
Upgrade to 2.0 (#122)
lezzago Mar 3, 2022
1be69e5
Remove JDK8 support and fix JDK17 build. (#129)
dblock Mar 9, 2022
fb43b22
Add support for build version qualifier. (#128)
dblock Mar 10, 2022
bdd8a81
Add backport and auto delete workflow (#130)
Mar 10, 2022
be72763
Add release notes for version 1.3.0.0 (#132)
getsaurabh02 Mar 11, 2022
fe3abb9
Upgrade gradle artifacts to 7.3.3 (#135)
lezzago Mar 14, 2022
05931c9
Remove feature and feature_list usage for Notifications (#136)
qreshi Mar 17, 2022
7ab297e
Add opensearch repositories plugin to resolve lucene snapshot depende…
mch2 Mar 18, 2022
a086805
Update MAINTAINERS.m to add new maintainer. (#127)
getsaurabh02 Mar 21, 2022
d77dec5
Rename references for Get Channels API (#140)
qreshi Mar 22, 2022
6e78f69
Adding signoff option for version workflow PR (#143)
VachaShah Mar 23, 2022
43d6e6d
Remove allowedConfigFeatureList from GetPluginFeaturesResponse (#144)
qreshi Mar 28, 2022
f2f57e5
change default opensearch version to 2.0.0-alpha1-SNAPSHOT (#146)
peterzhuamazon Mar 28, 2022
a6c2da8
Add qualifier default to alpha1 in build.gradle (#151)
peterzhuamazon Mar 31, 2022
58cd7cc
Make CU hosts its own script before delete the one on build repo (#152)
peterzhuamazon Apr 1, 2022
f62e734
Removal of NotificationEvent Request, Response and SearchResults (#153)
adityaj1107 Apr 5, 2022
4553617
Updated issue templates from .github. (#154)
dblock Apr 6, 2022
c3794c4
Addition of NotificationEvent to SendNotificationResponse and Removal…
adityaj1107 Apr 7, 2022
14e76ec
Remove JDK 14 (#159)
getsaurabh02 Apr 14, 2022
17bb37c
Incremented version to 2.0-rc1. (#160)
dblock Apr 15, 2022
a80b8b1
Support sending email message via Notifications passthrough API (#158)
qreshi Apr 16, 2022
39bd777
Add release notes for version 2.0.0.0-rc1 (#162)
getsaurabh02 Apr 25, 2022
389bb3c
Removing RC1 as the qualifier from Common Utils (#168)
adityaj1107 May 6, 2022
1eef82c
add code coverage badge (#169)
sbcd90 May 9, 2022
d36924d
Change BaseModel to extend ToXContentObject instead of ToXContent (#173)
qreshi May 11, 2022
4557ed1
add code coverage badge (#171)
sbcd90 May 16, 2022
1d0ee34
fix code coverage badge (#175)
sbcd90 May 17, 2022
e8b991e
fix code coverage badge (#176)
sbcd90 May 17, 2022
a03453c
Add release notes for version 2.0.0.0 (#177)
getsaurabh02 May 18, 2022
b054420
Remove duplicate DCO workflow. (#181)
dblock May 24, 2022
26a4c36
Bump up the version to 2.1 (#190)
ankitkala Jun 22, 2022
5d96f3c
Upgrade gradle to 7.4.2 (#191)
sbcd90 Jun 22, 2022
79a2ae3
Added 2.1 release notes. (#194) (#196)
opensearch-trigger-bot[bot] Jul 6, 2022
fe37126
Bump 2.x branch to 2.2 (#204)
qreshi Jul 25, 2022
7d53102
Staging for version increment automation (#200) (#211)
opensearch-trigger-bot[bot] Aug 4, 2022
ae064c5
Added 2.2 release notes. (#213)
getsaurabh02 Aug 9, 2022
53ed7f1
Added 2.2 release notes. (#212) (#214)
opensearch-trigger-bot[bot] Aug 16, 2022
dea1aed
Upgrade version to 2.3 (#223)
lezzago Aug 23, 2022
72a7261
fix snakeyaml vulnerability issue by disabling detekt (#237) (#240)
sbcd90 Sep 7, 2022
587d9cb
Move Alerting data models over to common-utils (#242)
sbcd90 Sep 7, 2022
33c1c33
upgrade 2.x to 2.4 (#246)
sbcd90 Sep 12, 2022
3dce8f7
Copy over monitor datasources config from alerting to common utils (#…
eirsep Sep 12, 2022
68da168
expose delete monitor api from alerting (#251)
sbcd90 Sep 23, 2022
d4a4aaa
Move Findings and Alerts action, request, response and models from al…
eirsep Sep 23, 2022
d64d992
added JvmField annotation to prevent generating getters (#255)
petardz Sep 27, 2022
36eafa6
Change TrustStoreTest to use File.separator to support Windows path (…
opensearch-trigger-bot[bot] Sep 30, 2022
082c776
remove force snakeyaml removal (#263)
sbcd90 Oct 3, 2022
16cf2b6
Accept of list of monitor ids in findings and alerts request dtos (#2…
eirsep Oct 10, 2022
b643bbe
Added legacy support for SNS messages. (#225) (#269)
opensearch-trigger-bot[bot] Oct 10, 2022
99006a8
move acknowledge alerts dtos from alerting to common-utils (#282)
eirsep Oct 13, 2022
40404e2
add list of alert ids in get alerts request (#284) (#286)
opensearch-trigger-bot[bot] Oct 17, 2022
c1fdd47
fix security-analytics alerting findings api integration (#292) (#293)
opensearch-trigger-bot[bot] Oct 20, 2022
cfe4d8d
added params to Datasources (#290) (#291)
opensearch-trigger-bot[bot] Oct 20, 2022
5904e9c
fix security-analytics to alerting integration (#294) (#295)
opensearch-trigger-bot[bot] Oct 21, 2022
2b2f242
Added function for request recreation that considers the writeable re…
opensearch-trigger-bot[bot] Nov 1, 2022
278ca9f
add findings enabled flag and findings field in bucket level monitor …
opensearch-trigger-bot[bot] Nov 2, 2022
2c53c25
Support backend roles in indexMonitorRequest (#308) (#309)
opensearch-trigger-bot[bot] Nov 2, 2022
3a83a1a
Adds owner field in monitor model (#313) (#314)
opensearch-trigger-bot[bot] Nov 3, 2022
65cf945
Adding CI workflow for Windows OS (#299) (#301)
opensearch-trigger-bot[bot] Nov 7, 2022
cc3b254
Increment version to 2.5.0-SNAPSHOT (#300)
opensearch-trigger-bot[bot] Nov 17, 2022
97dc905
Add a super admin client builder w/ hosts params (#322) (#323)
opensearch-trigger-bot[bot] Nov 19, 2022
17f9b49
Fix streaming functions for LegacySNSMessage (#324) (#325)
opensearch-trigger-bot[bot] Jan 24, 2023
005e018
Increment version to 2.6.0-SNAPSHOT (#344)
opensearch-trigger-bot[bot] Feb 2, 2023
0778ce2
Add release notes (#363) (#364)
opensearch-trigger-bot[bot] Feb 22, 2023
5b9de98
2.x branch - Publish snapshots to maven via GHA (#365)
AWSHurneyt Feb 22, 2023
f95d26a
Increment version to 2.7.0-SNAPSHOT (#371)
opensearch-trigger-bot[bot] Feb 23, 2023
95d168b
Add auto-release workflow (#376) (#378)
opensearch-trigger-bot[bot] Mar 1, 2023
76375a7
Fix SNS pattern regex to correctly valid sns fifo topic ARNs (#381) (…
opensearch-trigger-bot[bot] Mar 15, 2023
3914598
Fixed xContent dependencies due to OSCore changes (#392)
Mar 28, 2023
3120d68
InjectSecurity - inject User object in UserInfo in threadContext (#39…
opensearch-trigger-bot[bot] Apr 14, 2023
65ecf37
Added 2.7 release notes. (#407) (#408)
opensearch-trigger-bot[bot] Apr 18, 2023
d6f88ce
integrate security-analytics & alerting for correlation engine (#412)…
opensearch-trigger-bot[bot] Apr 19, 2023
1ff2298
Increment version to 2.8.0-SNAPSHOT (#413)
opensearch-trigger-bot[bot] Apr 27, 2023
26a117e
upgrade gradle to 8.1.1 (#418) (#421)
opensearch-trigger-bot[bot] May 3, 2023
db60532
NoOpTrigger (#420) (#424)
opensearch-trigger-bot[bot] May 4, 2023
2a6a6de
Adds workflows model and workflow actions for Alerting Plugin (#436)
eirsep May 24, 2023
f435dbc
Added 2.8 release notes (#441) (#442)
opensearch-trigger-bot[bot] May 26, 2023
4489041
Incremented version to 2.8.1
opensearch-ci-bot Jun 6, 2023
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
12 changes: 12 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "75...100"
status:
project:
default:
target: 75% # the required coverage value
threshold: 1% # the leniency in hitting the target
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams
* @opensearch-project/common-utils
28 changes: 13 additions & 15 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
---
name: 🐛 Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: 'bug, untriaged, Beta'
title: '[BUG]'
labels: 'bug, untriaged'
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.
**What is the bug?**
A clear and concise description of the bug.

**To Reproduce**
**How can one reproduce the bug?**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
**What is the expected behavior?**
A clear and concise description of what you expected to happen.

**Plugins**
Please list all plugins currently enabled.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Host/Environment (please complete the following information):**
**What is your host/environment?**
- OS: [e.g. iOS]
- Version [e.g. 22]
- Plugins

**Do you have any screenshots?**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
**Do you have any additional context?**
Add any other context about the problem.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contact_links:
- name: OpenSearch Community Support
url: https://discuss.opendistrocommunity.dev/
about: Please ask and answer questions here.
- name: AWS/Amazon Security
url: https://aws.amazon.com/security/vulnerability-reporting/
about: Please report security vulnerabilities here.
17 changes: 8 additions & 9 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
---
name: 🎆 Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
about: Request a feature in this project
title: '[FEATURE]'
labels: 'enhancement, untriaged'
assignees: ''
---
**Is your feature request related to a problem?**
A clear and concise description of what the problem is, e.g. _I'm always frustrated when [...]_

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
**What solution would you like?**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
**What alternatives have you considered?**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
**Do you have any additional context?**
Add any other context or screenshots about the feature request here.
29 changes: 29 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Releases

on:
push:
tags:
- '*'

jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/github-app-token@v1.5.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- uses: actions/checkout@v2
- uses: ncipollo/release-action@v1
with:
github_token: ${{ steps.github_app_token.outputs.token }}
bodyFile: release-notes/opensearch-common-utils.release-notes-${{steps.tag.outputs.tag}}.md
29 changes: 29 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: Backport
on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: Backport
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/github-app-token@v1.5.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780

- name: Backport
uses: VachaShah/backport@v1.1.4
with:
github_token: ${{ steps.github_app_token.outputs.token }}
branch_name: backport/backport-${{ github.event.number }}
27 changes: 8 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
build:
strategy:
matrix:
java: [14]

java:
- 11
- 17
os: [ubuntu-latest, windows-latest]
name: Build and Test
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
Expand All @@ -25,29 +27,16 @@ jobs:
with:
java-version: ${{ matrix.java }}

# dependencies: OpenSearch
- name: Checkout OpenSearch
uses: actions/checkout@v2
with:
repository: 'opensearch-project/OpenSearch'
path: OpenSearch
ref: '1.0'
- name: Build OpenSearch
working-directory: ./OpenSearch
run: ./gradlew publishToMavenLocal -Dbuild.snapshot=false

# common-utils
- name: Build and Test
run: |
./gradlew build -Dopensearch.version=1.0.0
./gradlew build

- name: Publish to Maven Local
run: |
./gradlew publishToMavenLocal -Dopensearch.version=1.0.0
./gradlew publishToMavenLocal

- name: Upload Coverage Report
uses: codecov/codecov-action@v1
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml
flags: plugin
token: ${{ secrets.CODECOV_TOKEN }}

15 changes: 15 additions & 0 deletions .github/workflows/delete_backport_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Delete merged branch of the backport PRs
on:
pull_request:
types:
- closed

jobs:
delete-branch:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref,'backport/')
steps:
- name: Delete merged branch
uses: SvanBoxel/delete-merged-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39 changes: 39 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish snapshots to maven

on:
workflow_dispatch:
push:
branches: [
main
1.*
2.*
]

jobs:
build-and-publish-snapshots:
strategy:
fail-fast: false
if: github.repository == 'opensearch-project/common-utils'
runs-on: ubuntu-latest

permissions:
id-token: write
contents: write

steps:
- uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 17
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}
aws-region: us-east-1
- name: publish snapshots to maven
run: |
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
echo "::add-mask::$SONATYPE_USERNAME"
echo "::add-mask::$SONATYPE_PASSWORD"
./gradlew publishShadowPublicationToSnapshotsRepository
44 changes: 0 additions & 44 deletions .github/workflows/push-common-utils-jar.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Increment Version

on:
push:
tags:
- '*.*.*.*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/github-app-token@v1.5.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780

- uses: actions/checkout@v2
- name: Fetch Tag and Version Information
run: |
TAG=$(echo "${GITHUB_REF#refs/*/}")
CURRENT_VERSION_ARRAY=($(echo "$TAG" | tr . '\n'))
BASE=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:2}")
CURRENT_VERSION=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:3}")
CURRENT_VERSION_ARRAY[2]=$((CURRENT_VERSION_ARRAY[2]+1))
NEXT_VERSION=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:3}")
echo "TAG=$TAG" >> $GITHUB_ENV
echo "BASE=$BASE" >> $GITHUB_ENV
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
echo "NEXT_VERSION=$NEXT_VERSION" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
ref: ${{ env.BASE }}
token: ${{ steps.github_app_token.outputs.token }}

- name: Increment Version
run: |
echo Incrementing $CURRENT_VERSION to $NEXT_VERSION
sed -i "s/$CURRENT_VERSION-SNAPSHOT/$NEXT_VERSION-SNAPSHOT/g" build.gradle

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ steps.github_app_token.outputs.token }}
base: ${{ env.BASE }}
commit-message: Incremented version to ${{ env.NEXT_VERSION }}
signoff: true
delete-branch: true
title: '[AUTO] Incremented version to ${{ env.NEXT_VERSION }}.'
body: |
I've noticed that a new tag ${{ env.TAG }} was pushed, and incremented the version from ${{ env.CURRENT_VERSION }} to ${{ env.NEXT_VERSION }}.
15 changes: 15 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"scanSettings": {
"configMode": "AUTO",
"configExternalURL": "",
"projectToken": "",
"baseBranches": []
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"displayMode": "diff"
},
"issueSettings": {
"minSeverityLevel": "LOW"
}
}
Loading