Skip to content

Commit 5d57baa

Browse files
authored
Merge pull request #16 from OpenConext/develop
ENT-5230: Build release OC SSO Notification 2.3.6
2 parents c68bbe3 + db0f1c3 commit 5d57baa

File tree

8 files changed

+63
-17
lines changed

8 files changed

+63
-17
lines changed

oc-sso-notificatie/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959
<artifactId>jackson-databind</artifactId>
6060
</dependency>
6161

62+
<dependency>
63+
<groupId>org.apache.commons</groupId>
64+
<artifactId>commons-lang3</artifactId>
65+
<version>${commons-lang3.version}</version>
66+
</dependency>
67+
6268
<dependency>
6369
<groupId>net.logstash.logback</groupId>
6470
<artifactId>logstash-logback-encoder</artifactId>
@@ -74,7 +80,7 @@
7480
<dependency>
7581
<groupId>co.elastic.logging</groupId>
7682
<artifactId>logback-ecs-encoder</artifactId>
77-
<version>${ecs-logging-java.version}</version>
83+
<version>${logback-ecs-encoder.version}</version>
7884
</dependency>
7985

8086
</dependencies>

oc-sso-notificatie/src/main/java/nl/kennisnet/services/web/config/WebSecurityConfig.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public class WebSecurityConfig {
3838
@Value("${management.security.roles:#{null}}")
3939
private String managementSecurityRoles;
4040

41+
@Value("${security.headers.enabled}")
42+
private Boolean securityHeadersEnabled;
43+
4144
@Bean
4245
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
4346
// This application only contains public pages. The Spring Boot Actuator Endpoints can be protected by the
@@ -48,15 +51,16 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
4851
.anyRequest().permitAll()
4952
).httpBasic(Customizer.withDefaults());
5053
} else {
51-
http.authorizeHttpRequests(authz -> authz
52-
.anyRequest().permitAll());
54+
http.authorizeHttpRequests(authz -> authz.anyRequest().permitAll());
5355
}
5456

5557
// We have to disable the X-Frame-Options since this SSO Notification service can be invoked within an iframe.
5658
// Disable all security headers so this service can be invoked within 3rd-party applications.
57-
http.headers(headers -> headers
58-
.frameOptions(Customizer.withDefaults())
59-
.disable());
59+
if (!securityHeadersEnabled) {
60+
http.headers(headers -> headers
61+
.frameOptions(Customizer.withDefaults())
62+
.disable());
63+
}
6064

6165
return http.build();
6266
}

oc-sso-notificatie/src/main/java/nl/kennisnet/services/web/service/CookiesHandler.java

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

2323
import com.fasterxml.jackson.core.JsonProcessingException;
2424
import com.fasterxml.jackson.databind.ObjectMapper;
25-
import net.logstash.logback.encoder.org.apache.commons.lang.StringUtils;
25+
import org.apache.commons.lang3.StringUtils;
2626
import nl.kennisnet.services.web.model.CookieValueDTO;
2727
import org.slf4j.Logger;
2828
import org.slf4j.LoggerFactory;

oc-sso-notificatie/src/test/resources/application.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
# limitations under the License.
1515
#
1616

17+
# Security headers - set to false to drop security headers and enhance interoperability between domains
18+
security.headers.enabled=false
19+
1720
# API settings
1821
# Url of the API which returns the SSO notification information by id.
1922
api.endpoint.url=http://localhost:3000/api/sso-notification

pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,25 @@
3838

3939
<inceptionYear>2021</inceptionYear>
4040

41+
<parent>
42+
<groupId>org.springframework.boot</groupId>
43+
<artifactId>spring-boot-starter-parent</artifactId>
44+
<version>3.5.4</version>
45+
</parent>
46+
4147
<properties>
4248
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4349
<java.version>17</java.version>
4450
<doxia-module-markdown.version>1.5</doxia-module-markdown.version>
4551
<jacoco.version>0.8.10</jacoco.version>
46-
<dependency-check-maven.version>12.1.1</dependency-check-maven.version>
47-
<ecs-logging-java.version>1.6.0</ecs-logging-java.version>
48-
<logback.encoder.version>5.3</logback.encoder.version>
52+
<dependency-check-maven.version>12.1.3</dependency-check-maven.version>
53+
<logback-ecs-encoder.version>1.7.0</logback-ecs-encoder.version>
54+
<logback.encoder.version>7.4</logback.encoder.version>
4955
<maven-project-info-reports-plugin.version>2.8</maven-project-info-reports-plugin.version>
5056
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
5157
<maven-site-plugin.version>3.8.2</maven-site-plugin.version>
5258
</properties>
5359

54-
<parent>
55-
<groupId>org.springframework.boot</groupId>
56-
<artifactId>spring-boot-starter-parent</artifactId>
57-
<version>3.4.7</version>
58-
</parent>
59-
6060
<build>
6161
<plugins>
6262
<plugin>

release/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<properties>
3232
<!-- A list of all the previous versions in reverse order, separated by a comma separator -->
3333
<!-- The current version is automatically added in the release-notes-all overview. -->
34-
<versions>2.3.5,2.3.4,2.3.3,2.3.2,2.3.1,2.3.0,2.2.1,2.2.0,2.1.1,2.1.0,2.0.6,2.0.5,2.0.4,2.0.3,2.0.2,2.0.1,1.0.0</versions>
34+
<versions>2.3.6,2.3.5,2.3.4,2.3.3,2.3.2,2.3.1,2.3.0,2.2.1,2.2.0,2.1.1,2.1.0,2.0.6,2.0.5,2.0.4,2.0.3,2.0.2,2.0.1,1.0.0</versions>
3535
</properties>
3636

3737
<dependencies>

release/src/main/resources/sample/config/application.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
# The port Tomcat will listen to
1818
server.port=8083
1919

20+
# Security headers - set to false to drop security headers and enhance interoperability between domains
21+
security.headers.enabled=false
22+
2023
# API settings
2124
# Url of the API which returns the SSO notification information by id.
2225
api.endpoint.url=
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# OC SSO Notification Service - Release Notes
2+
3+
| Field | Value |
4+
|:--------------------------|:----------------------------|
5+
| Application | OC SSO Notification Service |
6+
| Version | 2.3.6 |
7+
| Changes since version | 2.3.5 |
8+
| Release date | 05-08-2025 (dd-mm-yyyy) |
9+
| Delivery type | Full release |
10+
11+
## Changes
12+
13+
| # | Description |
14+
|:---------|:----------------------------------------|
15+
| ENT-5230 | Build release OC SSO Notification 2.3.6 |
16+
17+
18+
## Configuration changes
19+
20+
An additional parameter is added to control the setting of security headers.
21+
22+
# Security headers - set to false to drop security headers and enhance interoperability between domains
23+
security.headers.enabled=false
24+
25+
If set to true, the headers will be set and security will be enhanced. This may affect the interoperability of the
26+
application between domains.
27+
28+
## Known vulnerabilities
29+
30+
At the time of release, this version of the application had no known vulnerabilities with a CVE of 7 or higher.

0 commit comments

Comments
 (0)