Closed jowg-amazon closed 1 week ago
For Create tif source config API: we need to
- create tif source config and index it with state as CREATING
- invoke ioc download.
- update as AVAILABLE if download succeeds. else delete feed from index and return ERROR.
This is in reference to https://github.com/opensearch-project/security-analytics/pull/1077/files#diff-e2af2dcb9a2eff5b384869ea9c85d1649dd3b63ad03ebe2963c1f304dec40402R114
@eirsep Updated the logic when creating the source config so that we index the CREATING state first before downloading and saving the IOCS, added a TODO to delete ioc indices if failed
Description
This PR adds the refresh API and refactors some logic from the source config runner to the service class. It also adds logic to update the source config.
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.