Skip to content

Commit 1bc8c70

Browse files
authored
Merge pull request #183 from splunk/master
PR from Master to Develop for v1.8.0
2 parents b10bc8d + 7222d59 commit 1bc8c70

File tree

8 files changed

+52
-26
lines changed

8 files changed

+52
-26
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Splunk Enterprise SDK for Java Changelog
22

3+
## Version 1.8.0
4+
5+
### New Features and APIs
6+
* Added a support to add custom headers in Service class. (Github PR [#176](https://github.com/splunk/splunk-sdk-java/pull/176)).
7+
* SSL Certificate validation (default implementation) added. (Github PR [#175](https://github.com/splunk/splunk-sdk-java/pull/175)).
8+
* Boolean flag is introduced to skip/validate certificate. Use _HttpService.setValidateCertificates()_ to enable/disable certificate validation.
9+
* Breaking change: Certificate validation is now enforced by default, for local or non-production use cases use _HttpService.setValidateCertificates(false)_.
10+
* Apps/app-install replaced with **apps/local**. (Github PR [#168](https://github.com/splunk/splunk-sdk-java/pull/168))
11+
* Breaking change: HttpService.useTLS flag removed, please use _HttpService.setSslSecurityProtocol()_ to set a specific SSL/TLS implementation or else TLS v1.2 is used by default for Java 1.8.
12+
13+
### Minor Changes
14+
15+
* External Entities restricted in XML factory. (Github PR [#180](https://github.com/splunk/splunk-sdk-java/pull/180)).
16+
* Prevent expansion of external entities in Document Builder factory.
17+
* Headers modified in Socket creation. (Github PR [#179](https://github.com/splunk/splunk-sdk-java/pull/179)).
18+
* Http Request uses raw request headers by including escape characters which seems vulnerable. It was replaced with PrintWriter methods to avoid escape characters.
19+
* Host parameter used in Socket is omitted to prevent exposing it to external users.
20+
* README.md file modified with all login methods along with Splunk Search creation example. (Github PR [#177](https://github.com/splunk/splunk-sdk-java/pull/177)).
21+
* Deploy plugin is removed from Splunk module pom to avoid redundancy. (Github PR [#172](https://github.com/splunk/splunk-sdk-java/pull/172)).
22+
* Setter methods for Session and Bearer token added along with test case. (Github PR [#171](https://github.com/splunk/splunk-sdk-java/pull/171))
23+
* **Use:** service.setSplunkToken() for session tokens and service.setBearerToken() for long-lived tokens.
24+
* Modular input folder name renamed based on newer splunk folder name validation. (Github PR [#168](https://github.com/splunk/splunk-sdk-java/pull/168))
25+
* SDK app collection URL has been updated to v1.1.0 in docker compose file. (Github PR [#168](https://github.com/splunk/splunk-sdk-java/pull/168))
26+
* Test files in sdk app collections are modified based on python v3 syntax.
27+
* Added Saved Search test case based on title. (Github PR [#166](https://github.com/splunk/splunk-sdk-java/pull/166))
28+
329
## Version 1.7.1
430

531
### Minor Changes

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
![Build Status](https://github.com/splunk/splunk-sdk-java/actions/workflows/release.yml/badge.svg?branch=master)
1+
[![Java SDK Test](https://github.com/splunk/splunk-sdk-java/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/splunk/splunk-sdk-java/actions/workflows/test.yml)
22
# The Splunk Software Development Kit for Java
33

4-
#### Version 1.7.1
4+
#### Version 1.8.0
55

66
The Splunk Software Development Kit (SDK) for Java contains library code and
77
examples designed to enable developers to build applications using Splunk.
@@ -75,7 +75,7 @@ To add the Splunk SDK for Java `.JAR` file as a dependency:
7575
<dependency>
7676
<groupId>com.splunk</groupId>
7777
<artifactId>splunk</artifactId>
78-
<version>1.7.1</version>
78+
<version>1.8.0</version>
7979
</dependency>
8080
</dependencies>
8181
```

deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare -r scriptDirectory="$(dirname $(readlink -e $0))"
44
declare -r scriptName="$(basename $0)"
5-
declare -r version="1.7.1"
5+
declare -r version="1.8.0"
66

77
if [[ $# -ne 1 ]]; then
88
echo 1>&2 "Usage: ${scriptName} {local|staging||production}"

deploy.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ deploy \<repository-name>
99

1010
##DESCRIPTION
1111

12-
Deploy transmits **target/splunk-1.7.1.jar**, **target/splunk-1.7.1-javadoc.jar**, and
13-
**target/splunk-1.7.1-sources.jar** to the **local**, **staging**, or **production**
12+
Deploy transmits **target/splunk-1.8.0.jar**, **target/splunk-1.8.0-javadoc.jar**, and
13+
**target/splunk-1.8.0-sources.jar** to the **local**, **staging**, or **production**
1414
maven repository. Repository names are mapped to locations as follows.
1515

1616
| repository-name | location |
@@ -21,18 +21,18 @@ maven repository. Repository names are mapped to locations as follows.
2121

2222
After deployment you should find this tree structure at the location of your repository
2323

24-
com/splunk/splunk/1.7.1/
25-
├── splunk-1.7.1-javadoc.jar
26-
├── splunk-1.7.1-javadoc.jar.md5
27-
├── splunk-1.7.1-javadoc.jar.sha1
28-
├── splunk-1.7.1-sources.jar
29-
├── splunk-1.7.1-sources.jar.md5
30-
├── splunk-1.7.1-sources.jar.sha1
31-
├── splunk-1.7.1.jar
32-
├── splunk-1.7.1.jar.md5
33-
├── splunk-1.7.1.jar.sha1
34-
├── splunk-1.7.1.pom
35-
├── splunk-1.7.1.pom.md5
36-
└── splunk-1.7.1.pom.sha1
24+
com/splunk/splunk/1.8.0/
25+
├── splunk-1.8.0-javadoc.jar
26+
├── splunk-1.8.0-javadoc.jar.md5
27+
├── splunk-1.8.0-javadoc.jar.sha1
28+
├── splunk-1.8.0-sources.jar
29+
├── splunk-1.8.0-sources.jar.md5
30+
├── splunk-1.8.0-sources.jar.sha1
31+
├── splunk-1.8.0.jar
32+
├── splunk-1.8.0.jar.md5
33+
├── splunk-1.8.0.jar.sha1
34+
├── splunk-1.8.0.pom
35+
├── splunk-1.8.0.pom.md5
36+
└── splunk-1.8.0.pom.sha1
3737

3838
Verify this structure prior to release.

examples/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<artifactId>splunk-sdk-java</artifactId>
1010
<groupId>com.splunk</groupId>
11-
<version>1.0.0</version>
11+
<version>1.0.1</version>
1212
</parent>
1313

1414
<build>
@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>com.splunk</groupId>
3939
<artifactId>splunk</artifactId>
40-
<version>1.7.1</version>
40+
<version>1.8.0</version>
4141
<scope>provided</scope>
4242
</dependency>
4343
<dependency>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77

88
<properties>
9-
<version.number>1.7.1</version.number>
9+
<version.number>1.8.0</version.number>
1010
<maven.resources.overwrite>true</maven.resources.overwrite>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<maven.compiler.source>8</maven.compiler.source>
@@ -15,7 +15,7 @@
1515

1616
<groupId>com.splunk</groupId>
1717
<artifactId>splunk-sdk-java</artifactId>
18-
<version>1.0.0</version>
18+
<version>1.0.1</version>
1919
<packaging>pom</packaging>
2020
<name>Splunk SDK for Java</name>
2121
<url>https://dev.splunk.com/enterprise/docs/devtools/java/sdk-java</url>

splunk/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<artifactId>splunk</artifactId>
8-
<version>1.7.1</version>
8+
<version>1.8.0</version>
99
<parent>
1010
<artifactId>splunk-sdk-java</artifactId>
1111
<groupId>com.splunk</groupId>
12-
<version>1.0.0</version>
12+
<version>1.0.1</version>
1313
</parent>
1414
<properties>
1515
<https.protocols>TLSv1.2</https.protocols>

splunk/src/main/java/com/splunk/HttpService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public boolean verify(String s, SSLSession sslSession) {
8989
private String prefix = null;
9090

9191
static Map<String, String> defaultHeader = new HashMap<String, String>() {{
92-
put("User-Agent", "splunk-sdk-java/1.7.1");
92+
put("User-Agent", "splunk-sdk-java/1.8.0");
9393
put("Accept", "*/*");
9494
}};
9595

0 commit comments

Comments
 (0)