From 72e2c7a59db9545982161d7bc12a0ea85e1bce94 Mon Sep 17 00:00:00 2001 From: Juraj Veverka Date: Fri, 29 Jan 2021 01:17:36 +0100 Subject: [PATCH 1/2] bumping springboot version to 2.4.2 --- iam-common/iam-client-spring/build.gradle | 12 ++++++------ iam-common/iam-client/build.gradle | 6 +++--- iam-common/iam-model/build.gradle | 6 +++--- iam-common/iam-service-client/build.gradle | 6 +++--- iam-core/build.gradle | 6 +++--- iam-examples/spring-method-security/build.gradle | 4 ++-- iam-examples/spring-resource-server/build.gradle | 4 ++-- iam-examples/spring-webflux-secured/build.gradle | 4 ++-- iam-persistence/iam-caches-redis/build.gradle | 6 +++--- .../iam-persistence-file-system/build.gradle | 6 +++--- iam-persistence/iam-persistence-mongo/build.gradle | 8 ++++---- iam-service/build.gradle | 4 ++-- 12 files changed, 36 insertions(+), 36 deletions(-) diff --git a/iam-common/iam-client-spring/build.gradle b/iam-common/iam-client-spring/build.gradle index 272c6b5c..21cfeb01 100644 --- a/iam-common/iam-client-spring/build.gradle +++ b/iam-common/iam-client-spring/build.gradle @@ -17,16 +17,16 @@ repositories { dependencies { implementation('org.slf4j:slf4j-api:1.7.30') implementation('org.apache.tomcat.embed:tomcat-embed-core:9.0.41') - implementation('org.springframework:spring-context:5.3.2') - implementation('org.springframework.boot:spring-boot:2.4.1') - implementation('org.springframework:spring-web:5.3.2') + implementation('org.springframework:spring-context:5.3.3') + implementation('org.springframework.boot:spring-boot:2.4.2') + implementation('org.springframework:spring-web:5.3.3') implementation('org.springframework.security:spring-security-core:5.4.2') implementation('io.jsonwebtoken:jjwt-api:0.11.2') implementation('io.jsonwebtoken:jjwt-impl:0.11.2') - implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-core:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-databind:2.11.3') + implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-core:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4') testImplementation('org.junit.jupiter:junit-jupiter:5.7.0') testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0') diff --git a/iam-common/iam-client/build.gradle b/iam-common/iam-client/build.gradle index 9836f99a..d3108d64 100644 --- a/iam-common/iam-client/build.gradle +++ b/iam-common/iam-client/build.gradle @@ -19,9 +19,9 @@ dependencies { implementation('io.jsonwebtoken:jjwt-api:0.11.2') implementation('io.jsonwebtoken:jjwt-impl:0.11.2') implementation('com.squareup.okhttp3:okhttp:4.9.0') - implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-core:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-databind:2.11.3') + implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-core:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4') implementation 'org.bouncycastle:bcpg-jdk15on:1.68' implementation 'org.bouncycastle:bcpkix-jdk15on:1.68' diff --git a/iam-common/iam-model/build.gradle b/iam-common/iam-model/build.gradle index 81d23e16..11f0e8de 100644 --- a/iam-common/iam-model/build.gradle +++ b/iam-common/iam-model/build.gradle @@ -15,9 +15,9 @@ repositories { } dependencies { - implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-core:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-databind:2.11.3') + implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-core:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4') testImplementation('org.junit.jupiter:junit-jupiter:5.7.0') testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0') diff --git a/iam-common/iam-service-client/build.gradle b/iam-common/iam-service-client/build.gradle index 80e89ce0..f1bab642 100644 --- a/iam-common/iam-service-client/build.gradle +++ b/iam-common/iam-service-client/build.gradle @@ -19,9 +19,9 @@ dependencies { implementation('io.jsonwebtoken:jjwt-api:0.11.2') implementation('io.jsonwebtoken:jjwt-impl:0.11.2') implementation('com.squareup.okhttp3:okhttp:4.9.0') - implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-core:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-databind:2.11.3') + implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-core:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4') implementation 'org.bouncycastle:bcpg-jdk15on:1.68' implementation 'org.bouncycastle:bcpkix-jdk15on:1.68' diff --git a/iam-core/build.gradle b/iam-core/build.gradle index 79035096..120bc442 100644 --- a/iam-core/build.gradle +++ b/iam-core/build.gradle @@ -22,9 +22,9 @@ dependencies { } implementation('org.bouncycastle:bcpg-jdk15on:1.68') implementation('org.bouncycastle:bcpkix-jdk15on:1.68') - implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-core:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-databind:2.11.3') + implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-core:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4') testImplementation('org.slf4j:slf4j-simple:1.7.30') testImplementation('org.junit.jupiter:junit-jupiter:5.7.0') diff --git a/iam-examples/spring-method-security/build.gradle b/iam-examples/spring-method-security/build.gradle index 4be6c16b..6fb58677 100644 --- a/iam-examples/spring-method-security/build.gradle +++ b/iam-examples/spring-method-security/build.gradle @@ -1,6 +1,6 @@ plugins { - id 'org.springframework.boot' version '2.4.1' - id 'io.spring.dependency-management' version '1.0.10.RELEASE' + id 'org.springframework.boot' version '2.4.2' + id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } diff --git a/iam-examples/spring-resource-server/build.gradle b/iam-examples/spring-resource-server/build.gradle index 8bc9a6cb..909d5bd7 100644 --- a/iam-examples/spring-resource-server/build.gradle +++ b/iam-examples/spring-resource-server/build.gradle @@ -1,6 +1,6 @@ plugins { - id 'org.springframework.boot' version '2.4.1' - id 'io.spring.dependency-management' version '1.0.10.RELEASE' + id 'org.springframework.boot' version '2.4.2' + id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } diff --git a/iam-examples/spring-webflux-secured/build.gradle b/iam-examples/spring-webflux-secured/build.gradle index a2f15206..95660765 100644 --- a/iam-examples/spring-webflux-secured/build.gradle +++ b/iam-examples/spring-webflux-secured/build.gradle @@ -1,6 +1,6 @@ plugins { - id 'org.springframework.boot' version '2.4.1' - id 'io.spring.dependency-management' version '1.0.10.RELEASE' + id 'org.springframework.boot' version '2.4.2' + id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } diff --git a/iam-persistence/iam-caches-redis/build.gradle b/iam-persistence/iam-caches-redis/build.gradle index 60860333..0251b2b0 100644 --- a/iam-persistence/iam-caches-redis/build.gradle +++ b/iam-persistence/iam-caches-redis/build.gradle @@ -12,9 +12,9 @@ repositories { dependencies { implementation('org.slf4j:slf4j-api:1.7.30') - implementation('com.fasterxml.jackson.core:jackson-core:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-databind:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.3') + implementation('com.fasterxml.jackson.core:jackson-core:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.4') implementation('redis.clients:jedis:3.3.0') testImplementation('org.slf4j:slf4j-simple:1.7.30') diff --git a/iam-persistence/iam-persistence-file-system/build.gradle b/iam-persistence/iam-persistence-file-system/build.gradle index 3ca1b5d6..a13f4cf4 100644 --- a/iam-persistence/iam-persistence-file-system/build.gradle +++ b/iam-persistence/iam-persistence-file-system/build.gradle @@ -12,9 +12,9 @@ repositories { dependencies { implementation('org.slf4j:slf4j-api:1.7.30') - implementation('com.fasterxml.jackson.core:jackson-core:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-databind:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.3') + implementation('com.fasterxml.jackson.core:jackson-core:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.4') implementation('org.bouncycastle:bcpg-jdk15on:1.68') implementation('org.bouncycastle:bcpkix-jdk15on:1.68') testImplementation('org.slf4j:slf4j-simple:1.7.30') diff --git a/iam-persistence/iam-persistence-mongo/build.gradle b/iam-persistence/iam-persistence-mongo/build.gradle index 06f7e499..e848e69f 100644 --- a/iam-persistence/iam-persistence-mongo/build.gradle +++ b/iam-persistence/iam-persistence-mongo/build.gradle @@ -12,10 +12,10 @@ repositories { dependencies { implementation('org.slf4j:slf4j-api:1.7.30') - implementation('com.fasterxml.jackson.core:jackson-core:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-databind:2.11.3') - implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.3') - implementation('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.3') + implementation('com.fasterxml.jackson.core:jackson-core:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4') + implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.4') + implementation('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.4') implementation('org.bouncycastle:bcpg-jdk15on:1.68') implementation('org.bouncycastle:bcpkix-jdk15on:1.68') diff --git a/iam-service/build.gradle b/iam-service/build.gradle index e54f6fe2..04700f4d 100644 --- a/iam-service/build.gradle +++ b/iam-service/build.gradle @@ -1,6 +1,6 @@ plugins { - id 'org.springframework.boot' version '2.4.1' - id 'io.spring.dependency-management' version '1.0.10.RELEASE' + id 'org.springframework.boot' version '2.4.2' + id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } From f3a2a3a5cf44d155df22626f128788423f8289c8 Mon Sep 17 00:00:00 2001 From: Juraj Veverka Date: Fri, 29 Jan 2021 21:30:25 +0100 Subject: [PATCH 2/2] version bumped to 2.5.1 --- README.md | 2 +- docker-compose.yml | 8 +++--- .../01a-standalone-server-config.md | 16 ++++++------ iam-common/iam-client-spring/README.md | 4 +-- iam-common/iam-client-spring/build.gradle | 2 +- iam-common/iam-client/README.md | 4 +-- iam-common/iam-client/build.gradle | 2 +- iam-common/iam-model/build.gradle | 2 +- iam-common/iam-service-client/README.md | 4 +-- iam-common/iam-service-client/build.gradle | 2 +- iam-core/build.gradle | 2 +- .../iamservice/core/utils/ModelUtils.java | 2 +- iam-examples/integration-tests/build.gradle | 2 +- .../spring-method-security/Dockerfile | 2 +- iam-examples/spring-method-security/README.md | 8 +++--- .../spring-method-security/build.gradle | 2 +- .../spring-method-security/start-service.sh | 2 +- .../spring-resource-server/Dockerfile | 2 +- iam-examples/spring-resource-server/README.md | 8 +++--- .../spring-resource-server/build.gradle | 2 +- .../spring-resource-server/start-service.sh | 2 +- .../spring-webflux-secured/Dockerfile | 2 +- .../spring-webflux-secured/build.gradle | 2 +- .../spring-webflux-secured/start-service.sh | 2 +- iam-persistence/iam-caches-redis/build.gradle | 2 +- .../iam-persistence-file-system/build.gradle | 2 +- .../iam-persistence-mongo/build.gradle | 2 +- iam-service/Dockerfile | 2 +- iam-service/README.md | 26 +++++++++---------- iam-service/build.gradle | 2 +- iam-service/iam-service-start.sh | 4 +-- release/Dockerfile.amd64 | 2 +- release/Dockerfile.arm32v7 | 2 +- release/Dockerfile.arm64v8 | 2 +- release/README-release.md | 10 +++---- release/RELEASE-CHECKLIST.md | 6 ++--- release/RELEASE-NOTES.md | 8 +++--- release/create-release.sh | 2 +- release/docker-create-image.sh | 2 +- release/version-upgrade.sh | 4 +-- 40 files changed, 82 insertions(+), 82 deletions(-) diff --git a/README.md b/README.md index bfdb129f..235016a2 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ and [OAuth2](https://tools.ietf.org/html/rfc6749) and [other](https://github.com * Please check [__User's Guide__](docs/IAM-user-manual/README.md) and [__Examples__](iam-examples) for more details. * Check [__Docker Hub releases__](https://hub.docker.com/r/jurajveverka/iam-service). ``` - docker run -d -p 8080:8080 jurajveverka/iam-service:2.5.0-RELEASE-amd64 + docker run -d -p 8080:8080 jurajveverka/iam-service:2.5.1-RELEASE-amd64 curl 'http://localhost:8080/services/discovery' curl 'http://localhost:8080/services/oauth2/iam-admins/iam-admins/.well-known/openid-configuration' ``` diff --git a/docker-compose.yml b/docker-compose.yml index f713f810..654c2812 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: iam-service: - image: iam-service:2.5.0-RELEASE + image: iam-service:2.5.1-RELEASE build: context: iam-service dockerfile: Dockerfile @@ -9,7 +9,7 @@ services: ports: - "8080:8080" spring-method-security: - image: spring-method-security:2.5.0-RELEASE + image: spring-method-security:2.5.1-RELEASE build: context: iam-examples/spring-method-security dockerfile: Dockerfile @@ -19,7 +19,7 @@ services: depends_on: - iam-service spring-resource-server: - image: spring-resource-server:2.5.0-RELEASE + image: spring-resource-server:2.5.1-RELEASE build: context: iam-examples/spring-resource-server dockerfile: Dockerfile @@ -29,7 +29,7 @@ services: depends_on: - iam-service spring-webflux-secured: - image: spring-webflux-secured:2.5.0-RELEASE + image: spring-webflux-secured:2.5.1-RELEASE build: context: iam-examples/spring-webflux-secured dockerfile: Dockerfile diff --git a/docs/IAM-user-manual/01a-standalone-server-config.md b/docs/IAM-user-manual/01a-standalone-server-config.md index 07b37a8e..b4ed9718 100644 --- a/docs/IAM-user-manual/01a-standalone-server-config.md +++ b/docs/IAM-user-manual/01a-standalone-server-config.md @@ -13,7 +13,7 @@ ``` * Start __iam-service__ as standalone server. You can skip this step if you would like to use *iam-service* in docker container. ``` - java -Xms32m -Xmx128m -jar iam-service-2.5.0-RELEASE.jar \ + java -Xms32m -Xmx128m -jar iam-service-2.5.1-RELEASE.jar \ --spring.config.location=file:application.yml ``` * Build Docker Image locally and run, in case you prefer downloading image from dockerhub please skip this step. @@ -23,19 +23,19 @@ ``` * Use public docker dockerhub image [jurajveverka/iam-service](https://hub.docker.com/r/jurajveverka/iam-service) ``` - docker run -d --name iam-service-2.5.0-RELEASE \ + docker run -d --name iam-service-2.5.1-RELEASE \ --restart unless-stopped \ -e APP_CONFIG_PATH=/opt/data/application.yml \ -e XMX=128m \ -v '${IAM_DATA_DIR}':/opt/data \ - -p 8080:8080 jurajveverka/iam-service:2.5.0-RELEASE-amd64 + -p 8080:8080 jurajveverka/iam-service:2.5.1-RELEASE-amd64 ``` ``IAM_DATA_DIR`` points to directory where customized ``application.yml`` file is located. * Check docker status and logs ``` docker ps -a - docker exec -ti iam-service-2.5.0-RELEASE /bin/sh - docker logs --follow iam-service-2.5.0-RELEASE + docker exec -ti iam-service-2.5.1-RELEASE /bin/sh + docker logs --follow iam-service-2.5.1-RELEASE ``` * Verify Service state, check OpenAPI documentation. ``` @@ -48,9 +48,9 @@ ``` * Stop and cleanup Docker ``` - docker stop iam-service-2.5.0-RELEASE - docker rm iam-service-2.5.0-RELEASE - docker image rm -f iam-service:2.5.0-RELEASE + docker stop iam-service-2.5.1-RELEASE + docker rm iam-service-2.5.1-RELEASE + docker image rm -f iam-service:2.5.1-RELEASE ``` * [next step: Setup Persistence Layer](01b_setup-persitence-layer.md) diff --git a/iam-common/iam-client-spring/README.md b/iam-common/iam-client-spring/README.md index c825c1b7..9e61788a 100644 --- a/iam-common/iam-client-spring/README.md +++ b/iam-common/iam-client-spring/README.md @@ -8,12 +8,12 @@ This client library makes JWT verification easier for springboot micro-services one.microproject.iamservice iam-client-spring - 2.5.0-RELEASE + 2.5.1-RELEASE ``` * gradle dependency ``` - implementation 'one.microproject.iamservice:iam-client-spring:2.5.0-RELEASE' + implementation 'one.microproject.iamservice:iam-client-spring:2.5.1-RELEASE' ``` 2. See [this spring-method-security example](../../iam-examples/spring-method-security) * How to configure http security. diff --git a/iam-common/iam-client-spring/build.gradle b/iam-common/iam-client-spring/build.gradle index 21cfeb01..3910bda5 100644 --- a/iam-common/iam-client-spring/build.gradle +++ b/iam-common/iam-client-spring/build.gradle @@ -6,7 +6,7 @@ plugins { group = 'one.microproject.iamservice' archivesBaseName = "iam-client-spring" -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' diff --git a/iam-common/iam-client/README.md b/iam-common/iam-client/README.md index 2c288de5..7d422945 100644 --- a/iam-common/iam-client/README.md +++ b/iam-common/iam-client/README.md @@ -8,12 +8,12 @@ This client library makes JWT verification easier for clients and micro-services one.microproject.iamservice iam-client - 2.5.0-RELEASE + 2.5.1-RELEASE ``` * gradle dependency ``` - implementation 'one.microproject.iamservice:iam-client:2.5.0-RELEASE' + implementation 'one.microproject.iamservice:iam-client:2.5.1-RELEASE' ``` 2. Create client instance programmatically. ``` diff --git a/iam-common/iam-client/build.gradle b/iam-common/iam-client/build.gradle index d3108d64..5ba28439 100644 --- a/iam-common/iam-client/build.gradle +++ b/iam-common/iam-client/build.gradle @@ -6,7 +6,7 @@ plugins { group = 'one.microproject.iamservice' archivesBaseName = "iam-client" -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' diff --git a/iam-common/iam-model/build.gradle b/iam-common/iam-model/build.gradle index 11f0e8de..9aea54a7 100644 --- a/iam-common/iam-model/build.gradle +++ b/iam-common/iam-model/build.gradle @@ -6,7 +6,7 @@ plugins { group = 'one.microproject.iamservice' archivesBaseName = "iam-model" -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' diff --git a/iam-common/iam-service-client/README.md b/iam-common/iam-service-client/README.md index 8b2b98ef..af430039 100644 --- a/iam-common/iam-service-client/README.md +++ b/iam-common/iam-service-client/README.md @@ -8,12 +8,12 @@ Java client library providing APIs for all iam-service management functions. one.microproject.iamservice iam-service-client - 2.5.0-RELEASE + 2.5.1-RELEASE ``` * gradle dependency ``` - implementation 'one.microproject.iamservice:iam-service-client:2.5.0-RELEASE' + implementation 'one.microproject.iamservice:iam-service-client:2.5.1-RELEASE' ``` 2. Create client instance programmatically. ``` diff --git a/iam-common/iam-service-client/build.gradle b/iam-common/iam-service-client/build.gradle index f1bab642..ba4da745 100644 --- a/iam-common/iam-service-client/build.gradle +++ b/iam-common/iam-service-client/build.gradle @@ -6,7 +6,7 @@ plugins { group = 'one.microproject.iamservice' archivesBaseName = "iam-service-client" -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' diff --git a/iam-core/build.gradle b/iam-core/build.gradle index 120bc442..f45e11de 100644 --- a/iam-core/build.gradle +++ b/iam-core/build.gradle @@ -6,7 +6,7 @@ plugins { group = 'one.microproject.iamservice' archivesBaseName = "iam-core" -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' repositories { diff --git a/iam-core/src/main/java/one/microproject/iamservice/core/utils/ModelUtils.java b/iam-core/src/main/java/one/microproject/iamservice/core/utils/ModelUtils.java index 9c92e921..9b643b58 100644 --- a/iam-core/src/main/java/one/microproject/iamservice/core/utils/ModelUtils.java +++ b/iam-core/src/main/java/one/microproject/iamservice/core/utils/ModelUtils.java @@ -56,7 +56,7 @@ public final class ModelUtils { private static final Logger LOG = LoggerFactory.getLogger(ModelUtils.class); - public static final String MODEL_VERSION = "2.5.0-RELEASE"; + public static final String MODEL_VERSION = "2.5.1-RELEASE"; public static final Model DEFAULT_MODEL = new ModelImpl(ModelId.from("default-model-001"), "Default Model"); public static final String IAM_ADMINS_NAME = "iam-admins"; public static final OrganizationId IAM_ADMINS_ORG = OrganizationId.from(IAM_ADMINS_NAME); diff --git a/iam-examples/integration-tests/build.gradle b/iam-examples/integration-tests/build.gradle index e788d567..1c5281f6 100644 --- a/iam-examples/integration-tests/build.gradle +++ b/iam-examples/integration-tests/build.gradle @@ -3,7 +3,7 @@ plugins { } group = 'one.microproject.iamservice' -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' repositories { diff --git a/iam-examples/spring-method-security/Dockerfile b/iam-examples/spring-method-security/Dockerfile index c5846636..74e3c742 100644 --- a/iam-examples/spring-method-security/Dockerfile +++ b/iam-examples/spring-method-security/Dockerfile @@ -1,5 +1,5 @@ FROM adoptopenjdk/openjdk11:alpine-jre -COPY build/libs/spring-method-security-2.5.0-RELEASE.jar /spring-method-security-2.5.0-RELEASE.jar +COPY build/libs/spring-method-security-2.5.1-RELEASE.jar /spring-method-security-2.5.1-RELEASE.jar COPY start-service.sh /start-service.sh RUN chmod +x /start-service.sh RUN apk --no-cache add curl diff --git a/iam-examples/spring-method-security/README.md b/iam-examples/spring-method-security/README.md index cfcd3508..5a091ef0 100644 --- a/iam-examples/spring-method-security/README.md +++ b/iam-examples/spring-method-security/README.md @@ -36,14 +36,14 @@ JWT tokens issued by __iam-service__ are used to get access to resources hosted ## Build and Run ``` gradle clean build -java -jar build/libs/spring-method-security-2.5.0-RELEASE.jar +java -jar build/libs/spring-method-security-2.5.1-RELEASE.jar ``` ### Build Docker image ``` -docker build . -t spring-method-security:2.5.0-RELEASE +docker build . -t spring-method-security:2.5.1-RELEASE docker image list -docker save --output="build/spring-method-security:2.5.0-RELEASE.tar" spring-method-security:2.5.0-RELEASE +docker save --output="build/spring-method-security:2.5.1-RELEASE.tar" spring-method-security:2.5.1-RELEASE docker image rm -f -docker run -p 8082:8082 spring-method-security:2.5.0-RELEASE +docker run -p 8082:8082 spring-method-security:2.5.1-RELEASE ``` diff --git a/iam-examples/spring-method-security/build.gradle b/iam-examples/spring-method-security/build.gradle index 6fb58677..96b1c0dd 100644 --- a/iam-examples/spring-method-security/build.gradle +++ b/iam-examples/spring-method-security/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'one.microproject.iamservice' -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' repositories { diff --git a/iam-examples/spring-method-security/start-service.sh b/iam-examples/spring-method-security/start-service.sh index 1d39844c..d0e6b999 100755 --- a/iam-examples/spring-method-security/start-service.sh +++ b/iam-examples/spring-method-security/start-service.sh @@ -7,4 +7,4 @@ until $(curl --silent --output /dev/null -f http://127.0.0.1:8080/services/oauth sleep 1 done -java -Xms32m -Xmx128M -jar /spring-method-security-2.5.0-RELEASE.jar +java -Xms32m -Xmx128M -jar /spring-method-security-2.5.1-RELEASE.jar diff --git a/iam-examples/spring-resource-server/Dockerfile b/iam-examples/spring-resource-server/Dockerfile index 4f0bf3b1..0ee52e3a 100644 --- a/iam-examples/spring-resource-server/Dockerfile +++ b/iam-examples/spring-resource-server/Dockerfile @@ -1,5 +1,5 @@ FROM adoptopenjdk/openjdk11:alpine-jre -COPY build/libs/spring-resource-server-2.5.0-RELEASE.jar /spring-resource-server-2.5.0-RELEASE.jar +COPY build/libs/spring-resource-server-2.5.1-RELEASE.jar /spring-resource-server-2.5.1-RELEASE.jar COPY start-service.sh /start-service.sh RUN chmod +x /start-service.sh RUN apk --no-cache add curl diff --git a/iam-examples/spring-resource-server/README.md b/iam-examples/spring-resource-server/README.md index 2d5dd2ad..cffdc724 100644 --- a/iam-examples/spring-resource-server/README.md +++ b/iam-examples/spring-resource-server/README.md @@ -12,15 +12,15 @@ JWT tokens issues by __iam-service__ are used to get access to resources hosted ## Build and Run ``` gradle clean build -java -jar build/libs/spring-resource-server-2.5.0-RELEASE.jar +java -jar build/libs/spring-resource-server-2.5.1-RELEASE.jar ``` ### Build Docker image ``` -docker build . -t spring-resource-server:2.5.0-RELEASE +docker build . -t spring-resource-server:2.5.1-RELEASE docker image list -docker save --output="build/spring-resource-server:2.5.0-RELEASE.tar" spring-resource-server:2.5.0-RELEASE +docker save --output="build/spring-resource-server:2.5.1-RELEASE.tar" spring-resource-server:2.5.1-RELEASE docker image rm -f -docker run -p 8081:8081 spring-resource-server:2.5.0-RELEASE +docker run -p 8081:8081 spring-resource-server:2.5.1-RELEASE ``` ### Reference Documentation diff --git a/iam-examples/spring-resource-server/build.gradle b/iam-examples/spring-resource-server/build.gradle index 909d5bd7..59cc51d5 100644 --- a/iam-examples/spring-resource-server/build.gradle +++ b/iam-examples/spring-resource-server/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'one.microproject.iamservice' -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' repositories { diff --git a/iam-examples/spring-resource-server/start-service.sh b/iam-examples/spring-resource-server/start-service.sh index e79de5dc..28b39e12 100755 --- a/iam-examples/spring-resource-server/start-service.sh +++ b/iam-examples/spring-resource-server/start-service.sh @@ -7,4 +7,4 @@ until $(curl --silent --output /dev/null -f http://127.0.0.1:8080/services/oauth sleep 1 done -java -Xms32m -Xmx128M -jar /spring-resource-server-2.5.0-RELEASE.jar +java -Xms32m -Xmx128M -jar /spring-resource-server-2.5.1-RELEASE.jar diff --git a/iam-examples/spring-webflux-secured/Dockerfile b/iam-examples/spring-webflux-secured/Dockerfile index ea3c6fe1..8a397eda 100644 --- a/iam-examples/spring-webflux-secured/Dockerfile +++ b/iam-examples/spring-webflux-secured/Dockerfile @@ -1,5 +1,5 @@ FROM adoptopenjdk/openjdk11:alpine-jre -COPY build/libs/spring-webflux-secured-2.5.0-RELEASE.jar /spring-webflux-secured-2.5.0-RELEASE.jar +COPY build/libs/spring-webflux-secured-2.5.1-RELEASE.jar /spring-webflux-secured-2.5.1-RELEASE.jar COPY start-service.sh /start-service.sh RUN chmod +x /start-service.sh RUN apk --no-cache add curl diff --git a/iam-examples/spring-webflux-secured/build.gradle b/iam-examples/spring-webflux-secured/build.gradle index 95660765..e3c3c0e2 100644 --- a/iam-examples/spring-webflux-secured/build.gradle +++ b/iam-examples/spring-webflux-secured/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'one.microproject.iamservice' -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' repositories { diff --git a/iam-examples/spring-webflux-secured/start-service.sh b/iam-examples/spring-webflux-secured/start-service.sh index 7c7e2ee6..704ee619 100755 --- a/iam-examples/spring-webflux-secured/start-service.sh +++ b/iam-examples/spring-webflux-secured/start-service.sh @@ -7,4 +7,4 @@ until $(curl --silent --output /dev/null -f http://127.0.0.1:8080/services/oauth sleep 1 done -java -Xms32m -Xmx128M -jar /spring-webflux-secured-2.5.0-RELEASE.jar +java -Xms32m -Xmx128M -jar /spring-webflux-secured-2.5.1-RELEASE.jar diff --git a/iam-persistence/iam-caches-redis/build.gradle b/iam-persistence/iam-caches-redis/build.gradle index 0251b2b0..e9e309cb 100644 --- a/iam-persistence/iam-caches-redis/build.gradle +++ b/iam-persistence/iam-caches-redis/build.gradle @@ -3,7 +3,7 @@ plugins { } group = 'one.microproject.iamservice' -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' repositories { diff --git a/iam-persistence/iam-persistence-file-system/build.gradle b/iam-persistence/iam-persistence-file-system/build.gradle index a13f4cf4..8ec6e779 100644 --- a/iam-persistence/iam-persistence-file-system/build.gradle +++ b/iam-persistence/iam-persistence-file-system/build.gradle @@ -3,7 +3,7 @@ plugins { } group = 'one.microproject.iamservice' -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' repositories { diff --git a/iam-persistence/iam-persistence-mongo/build.gradle b/iam-persistence/iam-persistence-mongo/build.gradle index e848e69f..bab24b64 100644 --- a/iam-persistence/iam-persistence-mongo/build.gradle +++ b/iam-persistence/iam-persistence-mongo/build.gradle @@ -3,7 +3,7 @@ plugins { } group = 'one.microproject.iamservice' -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' repositories { diff --git a/iam-service/Dockerfile b/iam-service/Dockerfile index f6e0fcb5..aa273248 100644 --- a/iam-service/Dockerfile +++ b/iam-service/Dockerfile @@ -2,7 +2,7 @@ # https://hub.docker.com/r/adoptopenjdk/openjdk11 FROM adoptopenjdk/openjdk11:alpine-jre -COPY build/libs/iam-service-2.5.0-RELEASE.jar /iam-service-2.5.0-RELEASE.jar +COPY build/libs/iam-service-2.5.1-RELEASE.jar /iam-service-2.5.1-RELEASE.jar COPY iam-service-start.sh /iam-service-start.sh COPY src/main/resources/application.yml /application.yml RUN chmod +x /iam-service-start.sh diff --git a/iam-service/README.md b/iam-service/README.md index 58373ee3..d1dd9111 100644 --- a/iam-service/README.md +++ b/iam-service/README.md @@ -4,40 +4,40 @@ IAM as microservice. Standalone OAuth2/OpenID-connect authorization and authenti ## Build and Run ``` gradle clean build -java -jar build/libs/iam-service-2.5.0-RELEASE.jar +java -jar build/libs/iam-service-2.5.1-RELEASE.jar # run using customized configutation -java -jar build/libs/iam-service-2.5.0-RELEASE.jar --spring.config.location=file:/path/to/application.yml +java -jar build/libs/iam-service-2.5.1-RELEASE.jar --spring.config.location=file:/path/to/application.yml ``` ### Build Docker Image ``` -docker build -t iam-service:2.5.0-RELEASE . +docker build -t iam-service:2.5.1-RELEASE . docker image list -docker save --output="build/iam-service:2.5.0-RELEASE.tar" iam-service:2.5.0-RELEASE +docker save --output="build/iam-service:2.5.1-RELEASE.tar" iam-service:2.5.1-RELEASE ``` ### Run Docker Container ``` -docker run -d --name iam-service-2.5.0-RELEASE \ +docker run -d --name iam-service-2.5.1-RELEASE \ -e SERVER_PORT=8080 \ -e ADMIN_PASSWORD=secret \ -e ADMIN_SECRET=top-secret \ -e XMX=128m \ - -p 8080:8080 iam-service:2.5.0-RELEASE + -p 8080:8080 iam-service:2.5.1-RELEASE -docker run -d --name iam-service-2.5.0-RELEASE \ +docker run -d --name iam-service-2.5.1-RELEASE \ -e APP_CONFIG_PATH=/opt/data/application.yml \ -e XMX=128m \ -v /custom/data/dir:/opt/data \ - -p 8080:8080 iam-service:2.5.0-RELEASE + -p 8080:8080 iam-service:2.5.1-RELEASE -docker attach iam-service-2.5.0-RELEASE -docker logs iam-service-2.5.0-RELEASE +docker attach iam-service-2.5.1-RELEASE +docker logs iam-service-2.5.1-RELEASE ``` ### Docker Cleanup ``` -docker stop iam-service-2.5.0-RELEASE -docker rm iam-service-2.5.0-RELEASE -docker image rm -f iam-service:2.5.0-RELEASE +docker stop iam-service-2.5.1-RELEASE +docker rm iam-service-2.5.1-RELEASE +docker image rm -f iam-service:2.5.1-RELEASE ``` \ No newline at end of file diff --git a/iam-service/build.gradle b/iam-service/build.gradle index 04700f4d..65d52a01 100644 --- a/iam-service/build.gradle +++ b/iam-service/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'one.microproject.iamservice' -version = '2.5.0-RELEASE' +version = '2.5.1-RELEASE' sourceCompatibility = '11' repositories { diff --git a/iam-service/iam-service-start.sh b/iam-service/iam-service-start.sh index a47dbcf1..3c83007d 100644 --- a/iam-service/iam-service-start.sh +++ b/iam-service/iam-service-start.sh @@ -7,7 +7,7 @@ if [ "${APP_CONFIG_PATH}" = "false" ]; then echo "using default configuration" echo "SERVER_PORT=${SERVER_PORT}" echo "XMX=${XMX}" - java -Xms32m -Xmx${XMX} -Djava.security.egd=file:/dev/./urandom -jar /iam-service-2.5.0-RELEASE.jar \ + java -Xms32m -Xmx${XMX} -Djava.security.egd=file:/dev/./urandom -jar /iam-service-2.5.1-RELEASE.jar \ --server.port=${SERVER_PORT} \ --iam-service.data-model.default-admin-password=${ADMIN_PASSWORD} \ --iam-service.data-model.default-admin-secret=${ADMIN_SECRET} @@ -15,6 +15,6 @@ else echo "using custom configuration" echo "APP_CONFIG_PATH=${APP_CONFIG_PATH}" echo "XMX=${XMX}" - java -Xms32m -Xmx${XMX} -Djava.security.egd=file:/dev/./urandom -jar /iam-service-2.5.0-RELEASE.jar \ + java -Xms32m -Xmx${XMX} -Djava.security.egd=file:/dev/./urandom -jar /iam-service-2.5.1-RELEASE.jar \ --spring.config.location=file:${APP_CONFIG_PATH} fi diff --git a/release/Dockerfile.amd64 b/release/Dockerfile.amd64 index c0e4412b..7602c5ee 100644 --- a/release/Dockerfile.amd64 +++ b/release/Dockerfile.amd64 @@ -2,7 +2,7 @@ # https://hub.docker.com/r/adoptopenjdk/openjdk11 FROM adoptopenjdk/openjdk11:alpine-jre -COPY iam-service-2.5.0-RELEASE.jar /iam-service-2.5.0-RELEASE.jar +COPY iam-service-2.5.1-RELEASE.jar /iam-service-2.5.1-RELEASE.jar COPY iam-service-start.sh /iam-service-start.sh COPY application-filesystem.yml /application.yml RUN chmod +x /iam-service-start.sh diff --git a/release/Dockerfile.arm32v7 b/release/Dockerfile.arm32v7 index 149ce685..bdd1f3e4 100644 --- a/release/Dockerfile.arm32v7 +++ b/release/Dockerfile.arm32v7 @@ -3,7 +3,7 @@ #https://hub.docker.com/r/arm32v7/adoptopenjdk FROM arm32v7/adoptopenjdk:11-jre-hotspot-focal -COPY iam-service-2.5.0-RELEASE.jar /iam-service-2.5.0-RELEASE.jar +COPY iam-service-2.5.1-RELEASE.jar /iam-service-2.5.1-RELEASE.jar COPY iam-service-start.sh /iam-service-start.sh COPY application-filesystem.yml /application.yml RUN chmod +x /iam-service-start.sh diff --git a/release/Dockerfile.arm64v8 b/release/Dockerfile.arm64v8 index 4e0b1985..b130a9af 100644 --- a/release/Dockerfile.arm64v8 +++ b/release/Dockerfile.arm64v8 @@ -3,7 +3,7 @@ #https://hub.docker.com/r/arm64v8/adoptopenjdk FROM arm64v8/adoptopenjdk:11-jre-hotspot-focal -COPY iam-service-2.5.0-RELEASE.jar /iam-service-2.5.0-RELEASE.jar +COPY iam-service-2.5.1-RELEASE.jar /iam-service-2.5.1-RELEASE.jar COPY iam-service-start.sh /iam-service-start.sh COPY application-filesystem.yml /application.yml RUN chmod +x /iam-service-start.sh diff --git a/release/README-release.md b/release/README-release.md index c745247d..79988aef 100644 --- a/release/README-release.md +++ b/release/README-release.md @@ -1,6 +1,6 @@ -# IAM Service 2.5.0-RELEASE +# IAM Service 2.5.1-RELEASE Really simple standalone OAuth2/OIDC -[*Identity Access Management* (IAM) service](https://github.com/jveverka/iam-service/tree/2.5.0-RELEASE), +[*Identity Access Management* (IAM) service](https://github.com/jveverka/iam-service/tree/2.5.1-RELEASE), authentication and authorization server. ## Quick startup guide @@ -12,12 +12,12 @@ authentication and authorization server. ``` * Start __iam-service__ (Requires JVM installed). ``` - java -Xms32m -Xmx128m -jar iam-service-2.5.0-RELEASE.jar --spring.config.location=file:application.yml + java -Xms32m -Xmx128m -jar iam-service-2.5.1-RELEASE.jar --spring.config.location=file:application.yml ``` * Start __iam-service__ as docker container. ``` - docker run -d --name iam-service-2.5.0-RELEASE \ - -p 8080:8080 jurajveverka/iam-service:2.5.0-RELEASE-amd64 + docker run -d --name iam-service-2.5.1-RELEASE \ + -p 8080:8080 jurajveverka/iam-service:2.5.1-RELEASE-amd64 ``` ### Next Steps diff --git a/release/RELEASE-CHECKLIST.md b/release/RELEASE-CHECKLIST.md index 4a251c41..9ae5a983 100644 --- a/release/RELEASE-CHECKLIST.md +++ b/release/RELEASE-CHECKLIST.md @@ -3,7 +3,7 @@ * Make sure all changes are committed and pushed. * Make sure the documentation is up-to date. * Make sure all tests are passing. -* ``NEW_RELEASE_VERSION=2.5.0-RELEASE`` +* ``NEW_RELEASE_VERSION=2.5.1-RELEASE`` * Upgrade component version in script below. ``` ./version-upgrade.sh @@ -44,8 +44,8 @@ ``` * Test created docker image. ``` - docker logs --follow iam-service-2.5.0-RELEASE - docker exec -it iam-service-2.5.0-RELEASE /bin/sh + docker logs --follow iam-service-2.5.1-RELEASE + docker exec -it iam-service-2.5.1-RELEASE /bin/sh ``` * Publish docker image to dockerhub. ``` diff --git a/release/RELEASE-NOTES.md b/release/RELEASE-NOTES.md index 72e05582..dba02e7a 100644 --- a/release/RELEASE-NOTES.md +++ b/release/RELEASE-NOTES.md @@ -1,12 +1,12 @@ # IAM service - OAuth2 server -Simple standalone OAuth2/OIDC [*Identity Access Management* (IAM) service](https://github.com/jveverka/iam-service/tree/v2.5.0-RELEASE), authentication and authorization server. +Simple standalone OAuth2/OIDC [*Identity Access Management* (IAM) service](https://github.com/jveverka/iam-service/tree/v2.5.1-RELEASE), authentication and authorization server. ## Quick startup guide 1. Start OAuth2 server in default configuration [dockerhub project](https://hub.docker.com/r/jurajveverka/iam-service). ``` - docker run --name iam-service-2.5.0-RELEASE \ + docker run --name iam-service-2.5.1-RELEASE \ --restart unless-stopped \ - -d -p 8080:8080 jurajveverka/iam-service:2.5.0-RELEASE-amd64 + -d -p 8080:8080 jurajveverka/iam-service:2.5.1-RELEASE-amd64 curl 'http://localhost:8080/services/discovery' | json_pp curl 'http://localhost:8080/services/oauth2/iam-admins/iam-admins/.well-known/openid-configuration' | json_pp ``` @@ -15,6 +15,6 @@ Simple standalone OAuth2/OIDC [*Identity Access Management* (IAM) service](http http://localhost:8080/swagger-ui/index.html?url=/v3/api-docs#/ ``` ## Advanced configurations -1. Download release file ``iam-service-release-2.5.0-RELEASE.zip`` +1. Download release file ``iam-service-release-2.5.1-RELEASE.zip`` 2. Please check [__User's Guide__](https://github.com/jveverka/iam-service/tree/2.x.x/docs/IAM-user-manual) and [__Examples__](https://github.com/jveverka/iam-service/tree/2.x.x/iam-examples) for more details. diff --git a/release/create-release.sh b/release/create-release.sh index c258a925..63c5924f 100755 --- a/release/create-release.sh +++ b/release/create-release.sh @@ -15,7 +15,7 @@ else exit 1 fi -VERSION=2.5.0-RELEASE +VERSION=2.5.1-RELEASE RELEASE_DIR=build/iam-service-${VERSION} cd ${HOME_DIR} diff --git a/release/docker-create-image.sh b/release/docker-create-image.sh index 100c1512..39ae546d 100755 --- a/release/docker-create-image.sh +++ b/release/docker-create-image.sh @@ -4,7 +4,7 @@ NOCOLOR='\033[0m' RED='\033[0;31m' GREEN='\033[0;32m' -VERSION=2.5.0-RELEASE +VERSION=2.5.1-RELEASE DOCKER_IMAGE=jurajveverka/iam-service DOCKER_NAME=iam-service diff --git a/release/version-upgrade.sh b/release/version-upgrade.sh index 61967393..6443b842 100755 --- a/release/version-upgrade.sh +++ b/release/version-upgrade.sh @@ -1,7 +1,7 @@ #!/bin/bash -OLD_VERSION=2.4.3-RELEASE -NEW_VERSION=2.5.0-RELEASE +OLD_VERSION=2.5.0-RELEASE +NEW_VERSION=2.5.1-RELEASE cd ..