Skip to content

Commit 94c65ae

Browse files
authored
Merge pull request #23 from splunk/develop
Merge develop branch to main for version 4.0.3
2 parents 293e180 + 9ffdf2f commit 94c65ae

19 files changed

+25
-221
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Version 4.0.3
2+
* Fix - problem loading some inputs on Windows system. [Issue #8](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/8) and [Issue #12](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/12)
3+
* Added `name` parameter to the `[id]` stanza in `default/app.conf`
4+
* Bumped `splunktaucclib` to version `6.0.6` to address potential credential corruption issues
5+
* Fix - errant newline in `eventtypes.conf` for `azure_vuln` stanza. [Issue #19](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/19)
6+
* Fix - nextLink parameter is different for consumption input causing limited results. [Issue #20](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/20)
7+
* Increase REST request timeout to 60 seconds
8+
19
# Version 4.0.2
210
* Bug fix - Problem creating new AAD Audit Input - [Issue #3](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/3)
311
* Bug fix - Azure AD User and Group pagination issue

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This add-on is built with Splunk's [UCC Generator](https://github.com/splunk/add
1212

1313
Example:
1414

15-
ucc-gen --ta-version=4.0.2
15+
ucc-gen --ta-version=4.0.3
1616

1717
The add-on will be built in an `output` directory in the root of the repository.
1818

globalConfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"meta": {
33
"name": "TA-MS-AAD",
44
"displayName": "Splunk Add-on for Microsoft Azure",
5-
"version": "4.0.2",
5+
"version": "4.0.3",
66
"apiVersion": "3.0.0",
77
"restRoot": "TA_MS_AAD",
88
"schemaVersion": "0.0.3"

package/app.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": {
66
"group": null,
77
"name": "TA-MS-AAD",
8-
"version": "4.0.2"
8+
"version": "4.0.3"
99
},
1010
"author": [
1111
{

package/bin/azure_consumption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_start_date(helper, check_point_key):
5252
start_date = helper.get_arg("start_date")
5353
if (start_date not in [None,'']):
5454
d = dateutil.parser.parse(start_date)
55-
helper.log_debug("_Splunk_ input_name=%s Getting start date. input_name=%s Start date in stanza: %s" % (input_name, start_date))
55+
helper.log_debug("_Splunk_ input_name=%s Getting start date. input_name=%s Start date in stanza: %s" % (input_name, input_name, start_date))
5656
return d.strftime('%Y-%m-%d')
5757
else:
5858
# If there was no start date specified, default to 90 day ago

package/bin/import_declare_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
1818
'''
1919
import os
20-
import pwd
2120
import sys
2221

2322
import warnings

package/bin/ta_azure_utils/utils.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from requests.packages.urllib3.util.retry import Retry
2727
import six
2828

29-
TIMEOUT = 5 #seconds
29+
TIMEOUT = 60 #seconds
3030

3131
def handle_nextLink(helper=None, response=None, session=None):
3232
if '@odata.nextLink' in response:
@@ -74,14 +74,19 @@ def get_items(helper, access_token, url, items=[]):
7474
response_json = json.loads(r.content)
7575
items += response_json['value']
7676

77+
nextLink = None
7778
if '@odata.nextLink' in response_json:
7879
nextLink = response_json['@odata.nextLink']
7980

81+
if 'nextLink' in response_json:
82+
nextLink = response_json['nextLink']
83+
84+
if nextLink:
8085
# This should never happen, but just in case...
8186
if not is_https(nextLink):
8287
raise ValueError("nextLink scheme is not HTTPS. nextLink URL: %s" % nextLink)
8388

84-
helper.log_debug("_Splunk_ nextLink URL (@odata.nextLink): %s" % nextLink)
89+
helper.log_debug("_Splunk_ nextLink URL: %s" % nextLink)
8590
get_items(helper, access_token, nextLink, items)
8691

8792
except Exception as e:
@@ -123,11 +128,11 @@ def get_items_batch_session(helper=None, url=None, session=None):
123128

124129
return response_json
125130

126-
def post_items_batch_session(helper=None, url=None, headers=None, data=None, session=None):
131+
def post_items_batch_session(helper=None, url=None, headers=None, data=None, session=None, verify=False):
127132

128133
t0 = time.time()
129134
try:
130-
r = requests_retry_session(session=session).post(url=url, headers=headers, data=data, timeout=TIMEOUT)
135+
r = requests_retry_session(session=session).post(url=url, headers=headers, data=data, timeout=TIMEOUT, verify=verify)
131136
r.raise_for_status()
132137
response_json = None
133138
response_json = json.loads(r.content)

package/default/app.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ reload.ta_ms_aad_account = simple
2121
reload.ta_ms_aad_settings = simple
2222
reload.passwords = simple
2323

24+
[id]
25+
name = TA-MS-AAD

package/default/data/ui/panels/aad_audit_changes_made_by_applications.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

package/default/data/ui/panels/aad_audit_changes_made_by_users.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)