Skip to content

Commit

Permalink
Configure the MaxMind database by default and update it so that uses …
Browse files Browse the repository at this point in the history
…the correct defaults when loading. Resolves opensearch-project#3942 (opensearch-project#4310)

Signed-off-by: David Venable <dlv@amazon.com>
  • Loading branch information
dlvenable authored Mar 21, 2024
1 parent 039c41d commit 2e06946
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
package org.opensearch.dataprepper.plugins.geoip.extension;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
import jakarta.validation.Valid;

public class GeoIpServiceConfig {
private static final MaxMindConfig DEFAULT_MAXMIND_CONFIG = new MaxMindConfig();

@Valid
@JsonProperty("maxmind")
@JsonSetter(nulls = Nulls.SKIP)
private MaxMindConfig maxMindConfig = DEFAULT_MAXMIND_CONFIG;

/**
Expand Down
4 changes: 4 additions & 0 deletions examples/config/example-data-prepper-config.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
ssl: false

extensions:
geoip_service:
maxmind:

0 comments on commit 2e06946

Please sign in to comment.