-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preliminary framework for jobscheduler and datasource (#626)
Signed-off-by: Joanne Wang <[email protected]>
- Loading branch information
1 parent
f7ff940
commit c193773
Showing
38 changed files
with
4,187 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/java/org/opensearch/securityanalytics/config/monitors/opensearch_security.policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
grant { | ||
permission java.lang.management.ManagementPermission "reputation.alienvault.com:443" "connect,resolve"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/java/org/opensearch/securityanalytics/threatIntel/common/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.opensearch.securityanalytics.threatIntel.common; | ||
|
||
import org.opensearch.Version; | ||
|
||
import java.util.Locale; | ||
public class Constants { | ||
public static final String USER_AGENT_KEY = "User-Agent"; | ||
public static final String USER_AGENT_VALUE = String.format(Locale.ROOT, "OpenSearch/%s vanilla", Version.CURRENT.toString()); | ||
} |
27 changes: 27 additions & 0 deletions
27
...main/java/org/opensearch/securityanalytics/threatintel/action/DeleteDatasourceAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.securityanalytics.threatIntel.action; | ||
|
||
import org.opensearch.action.ActionType; | ||
import org.opensearch.action.support.master.AcknowledgedResponse; | ||
|
||
/** | ||
* Threat intel datasource delete action | ||
*/ | ||
public class DeleteDatasourceAction extends ActionType<AcknowledgedResponse> { | ||
/** | ||
* Delete datasource action instance | ||
*/ | ||
public static final DeleteDatasourceAction INSTANCE = new DeleteDatasourceAction(); | ||
/** | ||
* Delete datasource action name | ||
*/ | ||
public static final String NAME = "cluster:admin/security_analytics/datasource/delete"; | ||
|
||
private DeleteDatasourceAction() { | ||
super(NAME, AcknowledgedResponse::new); | ||
} | ||
} |
Oops, something went wrong.