Skip to content

Commit

Permalink
fix(masking): Remove DataMaskingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
jamfor352 committed Oct 29, 2024
1 parent e8dc542 commit 02eeaf2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/akhq/configs/DataMasking.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
@Data
public class DataMasking {
List<RegexFilter> filters = new ArrayList<>(); // regex filters still use `filters` for backwards compatibility
DataMaskingMode mode = DataMaskingMode.REGEX; // set this by default to REGEX for backwards compatibility for current regex filtering users who haven't defined this property.
List<JsonMaskingFilter> jsonFilters = new ArrayList<>();
String jsonMaskReplacement = "xxxx";
boolean cachingEnabled = false;
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/org/akhq/configs/DataMaskingMode.java

This file was deleted.

10 changes: 0 additions & 10 deletions src/test/java/org/akhq/utils/DefaultMaskerSettingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,18 @@

import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import jakarta.inject.Inject;
import org.akhq.configs.DataMasking;
import org.junit.jupiter.api.Test;

import static org.akhq.configs.DataMaskingMode.REGEX;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertInstanceOf;

@MicronautTest
public class DefaultMaskerSettingTest {

@Inject
DataMasking dataMasking;

@Inject
Masker masker;

@Test
void defaultValuesShouldUseRegexForBackwardsCompatibility() {
assertEquals(
REGEX,
dataMasking.getMode()
);
assertInstanceOf(RegexMasker.class, masker);
}
}

0 comments on commit 02eeaf2

Please sign in to comment.