Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/on_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: VatsalJagani/splunk-app-action@v6
- uses: VatsalJagani/splunk-app-action@v7
env:
SPLUNK_APP_ACTION_1: "rm -rf backup_app_icons"
SPLUNK_APP_ACTION_2: "rm -f .gitignore"
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: VatsalJagani/splunk-app-action@v6
- uses: VatsalJagani/splunk-app-action@v7
env:
SPLUNK_APP_ACTION_1: "rm -rf backup_app_icons"
SPLUNK_APP_ACTION_2: "rm -f .gitignore"
SPLUNK_APP_ACTION_3: "rm -rf Note_*"
SPLUNK_APP_ACTION_4: "rm -rf images"
with:
app_dir: "."
to_make_permission_changes: true
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The Splunk app auto updates MaxMind database. The database update happens automa
* Author - CrossRealms International Inc.
* Creates Index - False
* Compatible with:
* Splunk Enterprise version: 9.0.x
* Splunk Enterprise version: 10.2.x, 10.4.x
* OS: Platform independent
* Browser: Google Chrome, Mozilla Firefox, Safari

Expand Down Expand Up @@ -104,6 +104,12 @@ KNOWN LIMITATION
RELEASE NOTES
-------------

Version 4.2.0 (July 2026)
* Added compatibility with Python 3.13 while retaining Python 3.9 / existing Splunk support.
* Replaced the `six` compatibility shim with the standard library `urllib.parse`.
* MaxMind database archive extraction uses the `data` filter on Python 3.12+ and falls back gracefully on older interpreters.
* Dependencies pinned to versions compatible with both Python 3.9 and 3.13 (Splunk Python SDK 2.1.1, requests 2.32.5).

Version 4.1.0 (April 2025)
* Added support for downloading the MaxMind GeoIP2 database file (paid tier).

Expand Down
2 changes: 1 addition & 1 deletion app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": {
"group": null,
"name": "splunk_maxmind_db_auto_update",
"version": "4.1.0"
"version": "4.2.0"
},
"author": [
{
Expand Down
7 changes: 5 additions & 2 deletions bin/mmdb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import requests
import tarfile
import shutil
from six.moves.urllib.parse import quote
from urllib.parse import quote

import splunk.entity as entity
import splunk.appserver.mrsparkle.lib.util as splunk_lib_util
Expand Down Expand Up @@ -342,7 +342,10 @@ def download_mmdb_database(self, account_id, license_key, database_file, proxy_u
try:
# Extract the downloaded file
with tarfile.open(DB_TEMP_DOWNLOAD, "r:gz") as tar:
tar.extractall(DB_DIR_TEMP_PATH)
try:
tar.extractall(DB_DIR_TEMP_PATH, filter='data')
except TypeError: # python 3.9
tar.extractall(DB_DIR_TEMP_PATH)
except tarfile.ReadError as e:
msg = f"Unable to extract downloaded MaxMind database. {e}"
logger.exception(msg)
Expand Down
4 changes: 2 additions & 2 deletions default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
[launcher]
author = CrossRealms International Inc.
description = This Splunk App Auto Update MaxMind Database (used for iplocation command)
version = 4.1.0
version = 4.2.0

[id]

Check warning on line 16 in default/app.conf

View workflow job for this annotation

GitHub Actions / Build and Local App Inspect

App-Inspect: Check App Configuration File : Check For Valid Package Id

Check that the [package] stanza in app.conf has a valid id value.See https://docs.splunk.com/Documentation/Splunk/latest/Admin/Appconf for details.
version = 4.1.0
version = 4.2.0

[package]

Check warning on line 19 in default/app.conf

View workflow job for this annotation

GitHub Actions / Build and Local App Inspect

App-Inspect: Check App Configuration File : Check For Updates Disabled

Check the [package] stanza in app.conf specifies check_for_updates as False for Private apps.
id = splunk_maxmind_db_auto_update

[triggers]
Expand Down
1 change: 1 addition & 0 deletions default/commands.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
filename = maxmind_db_update_command.py
chunked = true
python.version = python3
python.required = 3.13, 3.9
1 change: 1 addition & 0 deletions default/restmap.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ handlertype = python
handlerfile = rh_maxmind_configuration.py
handleractions = list,edit
python.version = python3
python.required = 3.13, 3.9
Binary file added images/app_configuration_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading