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/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: "adopt@1.11"
java-version: "openjdk@1.17"
- name: Build and run tests
run: sbt +test +doc
2 changes: 1 addition & 1 deletion .github/workflows/jacoco_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: "adopt@1.11"
java-version: "openjdk@1.17"
- name: Build and run tests
run: sbt ++${{matrix.scala}} jacoco
- name: Add JaCoCo Report in PR comments
Expand Down
4 changes: 2 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# change to OFF to disable SSL
ARG SSL=true
# Tomcat OS base image, feel free to use another (e.g. your hardened one)
ARG BASE_IMAGE=tomcat:9-jdk11-corretto
ARG BASE_IMAGE=tomcat:9-jdk17-corretto

# --- Base image part (common for SSL true|false) ---
FROM $BASE_IMAGE as base
Expand Down Expand Up @@ -50,7 +50,7 @@ RUN mkdir -p /opt/certs
# just PEMs are supported
COPY $LDAP_SSL_CERTS_PATH/*.pem /opt/certs/

# Java 11 paths used
# Java 11+ paths used
RUN for file in `ls /opt/certs/*.pem`; \
do \
echo yes | keytool -import -file $file -alias ldaps$RANDOM -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit; \
Expand Down
8 changes: 8 additions & 0 deletions api/src/test/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ spring:
name: "login-service"
jmx:
enabled: true
# Spring Boot 2.7 + Java 17 have some compatibility issues around JMX and Micrometer
autoconfigure:
exclude:
- org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration
- org.springframework.boot.actuate.autoconfigure.metrics.export.simple.SimpleMetricsExportAutoConfiguration
- org.springframework.boot.actuate.autoconfigure.metrics.SystemMetricsAutoConfiguration
- org.springframework.boot.actuate.autoconfigure.metrics.web.tomcat.TomcatMetricsAutoConfiguration
- org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration
server:
port: 9090

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class TokenControllerTest extends AnyFlatSpec
)

it should "return tokens generated by mocked JWTService for the authenticated user with group-prefixes (single)(case irrelevant)" in {
// `groups-prefixes` fill change the groups in user object passed to the jwtService.generateAccessToken
// `group-prefixes` fill change the groups in user object passed to the jwtService.generateAccessToken
val fakeUserFilteredGroups = fakeUserWithGroups(groups = Seq("first-fake-group"))
val fakeUserAuth = fakeUserAuthenticationForUser(fakeUserFilteredGroups)

Expand Down
Loading