-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11532 from Security-Onion-Solutions/hotfix/2.4.20
Hotfix 2.4.20
- Loading branch information
Showing
8 changed files
with
68 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
|
||
20231012 |
File renamed without changes.
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
27 changes: 27 additions & 0 deletions
27
salt/elasticfleet/tools/sbin/so-elastic-fleet-integration-policy-elastic-defend
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 @@ | ||
#!/bin/bash | ||
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one | ||
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at | ||
# https://securityonion.net/license; you may not use this file except in compliance with the | ||
# Elastic License 2.0. | ||
|
||
# Usage: Run with --force to update the Elastic Defend integration policy | ||
|
||
. /usr/sbin/so-elastic-fleet-common | ||
|
||
# Manage Elastic Defend Integration for Initial Endpoints Policy | ||
for INTEGRATION in /opt/so/conf/elastic-fleet/integrations/elastic-defend/*.json | ||
do | ||
printf "\n\nInitial Endpoints Policy - Loading $INTEGRATION\n" | ||
elastic_fleet_integration_check "endpoints-initial" "$INTEGRATION" | ||
if [ -n "$INTEGRATION_ID" ]; then | ||
if [ "$1" = "--force" ]; then | ||
printf "\n\nIntegration $NAME exists - Updating integration\n" | ||
elastic_fleet_integration_update "$INTEGRATION_ID" "@$INTEGRATION" | ||
else | ||
printf "\n\nIntegration $NAME exists - Not updating - rerun with --force to force the update.\n" | ||
fi | ||
else | ||
printf "\n\nIntegration does not exist - Creating integration\n" | ||
elastic_fleet_integration_create "@$INTEGRATION" | ||
fi | ||
done |
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
Binary file not shown.