opensearch-project / security-analytics

Security Analytics enables users for detecting security threats on their security event log data. It will also allow them to modify/tailor the pre-packaged solution.
Apache License 2.0
72 stars 74 forks source link

Fix ioc upload update behavior and change error response #1192

Closed jowg-amazon closed 3 months ago

jowg-amazon commented 4 months ago

Description

Fixes the ioc upload behavior when retaining old ioc indices. Previously used to delete ioc indices when source config gets indexed but now has the same behavior as s3 download where the background delete job will delete old ioc indices.

Also changes internal server errors to bad requests.

Issues Resolved

[List any issues this PR will resolve]

Check List

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.

eirsep commented 4 months ago

Plz add tests