Skip to content

Commit 71e530a

Browse files
authored
Merge pull request #1056 from utmstack/bugfix/10.6.0/ism-snapshot-24h
Fix: snapshot timing to include only indices older than 24 hours
2 parents 6a9ebe4 + e04c6f9 commit 71e530a

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# UTMStack 10.6.0 Release Notes
1+
# UTMStack 10.6.1 Release Notes
22
## Bug Fixes
3-
- Reorganized GeoIP database loading into more modular functions for improved maintainability and code readability. Simplified caching, removed unused database function, and restructured rule-handling logic. Improved consistency by standardizing variable names and logging practices.
4-
- Removed unused docker volume configuration for GeoIp.
5-
- Fixed Kernel modules weren't loaded because incorrect function call.
6-
7-
## New Features
8-
- Introduced automatic threat intelligence rules to detect blacklisted ips, hostnames and domains.
3+
- Fixed ISM policy to ensure snapshots include only indices older than 24 hours.

backend/src/main/java/com/park/utmstack/service/index_policy/IndexPolicyService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void updatePolicy(PolicySettings settings) {
162162
.ifPresent(state -> {
163163
Transition transition = state.getTransitions().get(0);
164164
transition.setStateName(Constants.STATE_BACKUP);
165-
transition.setConditions(null);
165+
transition.setConditions(new TransitionCondition("24h"));
166166
});
167167

168168
// open -> safe_delete
@@ -178,6 +178,7 @@ public void updatePolicy(PolicySettings settings) {
178178
.ifPresent(state -> {
179179
Transition transition = state.getTransitions().get(0);
180180
transition.setStateName(Constants.STATE_OPEN);
181+
transition.setConditions(new TransitionCondition("24h"));
181182
});
182183

183184
// open -> delete

version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 10.6.0
1+
version: 10.6.1

0 commit comments

Comments
 (0)