Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release to master #170

Merged
merged 38 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d3906cf
Changed build process to add exec-jar
Mme-adorsys Oct 2, 2023
3b83f81
Changed build process to add exec-jar
Mme-adorsys Oct 2, 2023
ee4c97c
Updated profiles to fix profile including error
Mme-adorsys Oct 23, 2023
db09219
Added possible postgres config for example application
Mme-adorsys Oct 23, 2023
0d39190
Added possible postgres config for example application
Mme-adorsys Oct 23, 2023
411d66e
Added possible postgres config for example application
Mme-adorsys Oct 23, 2023
8de36a5
Merge branch 'update_build-process' into develop
Mme-adorsys Oct 24, 2023
7e4d7ff
Added possible postgres config for example application
Mme-adorsys Oct 24, 2023
7e1b6e1
Added possible postgres config for example application
Mme-adorsys Oct 24, 2023
7be882f
Added possible postgres config for example application
Mme-adorsys Oct 24, 2023
ce0695e
Changed implementation of KeyRotationServiceImpl.java to anonymous im…
Mme-adorsys Oct 26, 2023
7cd0c68
Update sts version to 1.1.4
Mme-adorsys Oct 26, 2023
6cdc439
New version of keymanagement
Mme-adorsys Oct 26, 2023
1530bf1
New version of keymanagement
Mme-adorsys Oct 26, 2023
030de1c
New version of keymanagement
Mme-adorsys Oct 30, 2023
0b33d64
New version of keymanagement
Mme-adorsys Oct 30, 2023
690dc86
Increased release timeout
Mme-adorsys Oct 31, 2023
81ef523
Fixed Json parsing Bug in PopController#getPublicKeys
Mme-adorsys Oct 31, 2023
b2f9f8d
Increased version to 1.1.8
Mme-adorsys Oct 31, 2023
176c40f
Fixed json parser bug because of unneccessary toString();
Mme-adorsys Nov 6, 2023
f3a00ab
Increased version to 1.1.9
Mme-adorsys Nov 6, 2023
54f0ff5
Made CorsFilter Policy configurable because of IllegalStateException …
Mme-adorsys Nov 13, 2023
2d5ec63
Increased version to 1.1.10
Mme-adorsys Nov 13, 2023
58cd702
Increased version to 1.1.11
Mme-adorsys Nov 13, 2023
6cd5386
Made jwk cacheable in AuthServer
Mme-adorsys Nov 13, 2023
6501c6b
Increased version to 1.1.12
Mme-adorsys Nov 13, 2023
bb52557
Increased version of bouncycastle-adapter to 0.0.10
Mme-adorsys Nov 14, 2023
e3657ae
Increased version to 1.1.13
Mme-adorsys Nov 14, 2023
ea569e3
Added tests for AuthServer to see if cache is working
Mme-adorsys Dec 12, 2023
b1e95b5
Changed sequence names to 'old names' to prevent errors in legacy dat…
Mme-adorsys Dec 13, 2023
14ce53e
increased version to 1.1.14
Mme-adorsys Dec 13, 2023
e75c037
Updated SecurityConfiguration to disabled cors by configuration (defa…
Mme-adorsys Dec 13, 2023
fe47434
increased version to 1.1.15
Mme-adorsys Dec 13, 2023
906f9e6
Downgraded jupiter-junit to version 5.9.6 because of test errors in A…
Mme-adorsys Dec 13, 2023
01d8e6a
Klartax prod issues (#166)
Mme-adorsys Feb 12, 2024
19a16c6
Logs for error analyses (#167)
Mme-adorsys Feb 12, 2024
7d63804
update workflow to java 17 (#168)
max402 Feb 12, 2024
ad02635
[release] Prepare release 1.1.20
max402 Feb 12, 2024
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
19 changes: 10 additions & 9 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Step 1 - Checkout repository code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v2
- name: Step 2 - Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Maven build and test
run: mvn clean verify -B -V
- name: Step 3 - Build & Test
run: mvn clean verify -ntp

- name: Build client
- name: Step 4 - Build client
run: ./scripts/build_client.sh
19 changes: 13 additions & 6 deletions .github/workflows/push-in-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@ on:

jobs:
Develop-Branch-Build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Step 1 - Checkout repository code
uses: actions/checkout@v4

- name: Maven build and test
run: mvn clean verify -B -V
- name: Step 2 - Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Build client
- name: Step 3 - Build & Test
run: mvn clean verify -ntp

- name: Step 5 - Build client
run: ./scripts/build_client.sh

- name: Maven deploy snapshot
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/push-with-v-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Step 1 - Checkout repository code
uses: actions/checkout@v4

- name: deploy to Maven
- name: Step 2 - Setup JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Step 3 - deploy to Maven
run: ./scripts/mvn_deploy.sh
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion keycloak-storage-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.adorsys.sts</groupId>
<artifactId>secure-token-service</artifactId>
<version>1.1.0</version>
<version>1.1.20</version>
</parent>

<artifactId>keycloak-storage-provider</artifactId>
Expand Down
40 changes: 19 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>de.adorsys.sts</groupId>
<artifactId>secure-token-service</artifactId>
<version>1.1.0</version>
<version>1.1.20</version>
<packaging>pom</packaging>

<name>SecureTokenService</name>
Expand Down Expand Up @@ -52,7 +52,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring-boot.version>3.0.6</spring-boot.version>
<keystore-management.version>0.0.7</keystore-management.version>
<keystore-management.version>0.0.10</keystore-management.version>
<shedlock.version>5.3.0</shedlock.version>
<springfox-swagger.version>3.0.0</springfox-swagger.version>
<jackson.version>2.15.1</jackson.version>
Expand All @@ -65,6 +65,14 @@
<testcontainers.version>1.17.6</testcontainers.version>
<nimbus-jose-jwt.version>9.31</nimbus-jose-jwt.version>
<scmBranch/>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<maven-source-plugin.version>3.3.0</maven-source-plugin.version>
<maven-release-plugin.version>3.0.1</maven-release-plugin.version>
<maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
<buildnumber-maven-plugin.version>3.2.0</buildnumber-maven-plugin.version>
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
<maven-javadoc-plugin.version>3.6.0</maven-javadoc-plugin.version>
</properties>

<modules>
Expand Down Expand Up @@ -441,7 +449,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<charset>${project.build.sourceEncoding}</charset>
<encoding>${project.build.sourceEncoding}</encoding>
Expand All @@ -451,7 +459,7 @@
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M1</version>
<version>${maven-release-plugin.version}</version>
<configuration>
<releaseProfiles>release</releaseProfiles>
<autoVersionSubmodules>true</autoVersionSubmodules>
Expand All @@ -468,7 +476,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
Expand All @@ -492,7 +500,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
<version>${buildnumber-maven-plugin.version}</version>
<executions>
<execution>
<phase>validate</phase>
Expand Down Expand Up @@ -531,15 +539,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<version>${maven-deploy-plugin.version}</version>
<configuration>
<deployAtEnd>true</deployAtEnd>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<version>${nexus-staging-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype</serverId>
Expand All @@ -550,7 +558,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -563,13 +571,8 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<version>${maven-gpg-plugin.version}</version>
<configuration>
<keyname>[email protected]</keyname>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
Expand All @@ -578,18 +581,13 @@
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<source>17</source>
<doclint>none</doclint>
Expand Down
10 changes: 5 additions & 5 deletions postgres.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@ services:
- SPRING_PROFILES_INCLUDE=debug
command: config-cli
sts-db:
image: postgres:9.6-alpine
image: postgres:latest
container_name: sts_db
environment:
POSTGRES_USER: db_user
POSTGRES_PASSWORD: db_user@123
POSTGRES_DB: sts
volumes:
- "./.docker/sts-db/postgres:/var/lib/postgresql/data"
# volumes:
# - "./.docker/sts-db/postgres:/var/lib/postgresql/data"
ports:
- 5432:5432
networks:
- sts_network
# networks:
# - sts_network
sts:
build: ./sts-example
image: "local/sts-example:latest"
Expand Down
2 changes: 1 addition & 1 deletion scripts/mvn_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e
echo "$GPG_SECRET_KEY" | base64 --decode | $GPG_EXECUTABLE --import --no-tty --batch --yes || true
echo "$GPG_OWNERTRUST" | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --no-tty --batch --yes || true

mvn --no-transfer-progress --settings scripts/settings.xml package gpg:sign deploy -Prelease -DskipTests -B -U || exit 1
mvn clean deploy -ntp --settings scripts/settings.xml gpg:sign -Prelease -DskipTests -U || exit 1
2 changes: 1 addition & 1 deletion sts-client-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sts-client-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sts-client-example",
"version": "1.1.0-SNAPSHOT",
"version": "1.1.20",
"license": "MIT",
"scripts": {
"ng": "npx ng ",
Expand Down
13 changes: 12 additions & 1 deletion sts-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys.sts</groupId>
<artifactId>secure-token-service</artifactId>
<version>1.1.0</version>
<version>1.1.20</version>
</parent>

<artifactId>sts-common</artifactId>
Expand Down Expand Up @@ -94,6 +94,17 @@
<configuration>
<jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=10022</jvmArguments>
</configuration>
<executions>
<execution>
<id>fat-jar</id>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<classifier>exec</classifier>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
6 changes: 5 additions & 1 deletion sts-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.0</version>
<version>1.1.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -36,9 +36,13 @@
<version>${spring-boot.version}</version>
<executions>
<execution>
<id>fat-jar</id>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<classifier>exec</classifier>
</configuration>
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class SecurityConfiguration {

@Bean
protected SecurityFilterChain securityFilterChain(HttpSecurity http, TokenAuthenticationService tokenAuthenticationService) throws Exception {


http.cors().and()
.csrf().disable()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,11 @@
@EnableResourceServerInitialization
@EnableEncryption
@EnablePOP
@EnableKeyRotation
//@EnableKeyRotation
@EnableTokenAuthentication
@EnableSecretServerClient
public class StsConfiguration {

@Bean
public TaskScheduler taskExecutor() {
return new ConcurrentTaskScheduler();
}

@Bean
ResourceServerRepository resourceServerRepository() {
return new InMemoryResourceServerRepository();
Expand Down
7 changes: 7 additions & 0 deletions sts-example/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ spring:
default-schema: public

sts:
secret-server-client:
audience: moped-client
secret-server-uri: http://localhost:8885/secret-server/token-exchange
cache:
enabled: true
maximum-size: 1000
expire-after-access: 10
resource-server-management:
resource-retriever:
http-connect-timeout: 10000
Expand Down
2 changes: 1 addition & 1 deletion sts-keymanagement/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.0</version>
<version>1.1.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions sts-keymanagement/sts-keymanagement-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>sts-keymanagement</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.0</version>
<version>1.1.20</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -30,7 +30,7 @@
<dependency>
<groupId>de.adorsys.keymanagement</groupId>
<artifactId>api</artifactId>
<version>0.0.7</version>
<version>0.0.9</version>
</dependency>

</dependencies>
Expand Down
Loading