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

Merge to master #296

Merged
merged 28 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3d831ff
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Sep 25, 2023
3943ddd
Fix #273: Set develop version to 1.6.0-SNAPSHOT
banterCZ Oct 6, 2023
f4025b6
Fix #272: Filter jboss descriptor with bouncycastle version from pom
banterCZ Oct 6, 2023
ff4fe9b
Fix #276: Exclude servlet-api from war
banterCZ Oct 6, 2023
39da96a
Merge pull request #274 from wultra/issues/273-version-1.6.0-SNAPSHOT
banterCZ Oct 6, 2023
b82ce3c
Merge pull request #267 from wultra/dependabot/maven/powerauth-data-a…
dependabot[bot] Oct 6, 2023
cfc233a
Merge pull request #275 from wultra/issues/272-filter-jboss-descriptor
banterCZ Oct 6, 2023
0a4e315
Merge pull request #277 from wultra/issues/276-exclude-servlet-api
banterCZ Oct 6, 2023
f01e6f5
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Oct 23, 2023
72d08e4
Merge pull request #279 from wultra/dependabot/maven/powerauth-data-a…
dependabot[bot] Oct 23, 2023
2144346
Fix #278: Executable war (#280)
jnpsk Oct 24, 2023
6edccf1
Add GitHub action for SCP deploy
banterCZ Nov 8, 2023
e317153
Fix #281: HHH90000025: PostgreSQLDialect does not need to be specifie…
jnpsk Nov 8, 2023
e8fc3d1
Bump org.bouncycastle:bcprov-jdk18on in /powerauth-data-adapter
dependabot[bot] Nov 20, 2023
c4fc9cd
Merge pull request #284 from wultra/dependabot/maven/powerauth-data-a…
dependabot[bot] Nov 20, 2023
a1ef228
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Nov 27, 2023
7dbaea6
Merge pull request #286 from wultra/dependabot/maven/powerauth-data-a…
dependabot[bot] Nov 27, 2023
be3b690
Bump org.springdoc:springdoc-openapi-starter-webmvc-ui
dependabot[bot] Dec 4, 2023
0ae9ef7
Merge pull request #287 from wultra/dependabot/maven/powerauth-data-a…
dependabot[bot] Dec 4, 2023
d0db254
Fix #288: Update logback
banterCZ Dec 8, 2023
92a2425
Merge pull request #289 from wultra/issues/288-update-logback
banterCZ Dec 12, 2023
7bb6a44
Fix #290: Custom Spring Boot Banner
banterCZ Dec 15, 2023
fb297f5
Merge pull request #283 from wultra/issues/scp-deploy
banterCZ Dec 18, 2023
93773ca
Bump io.getlime.security:powerauth-java-crypto
dependabot[bot] Dec 18, 2023
bb4e939
Merge pull request #291 from wultra/issues/290-custom-banner
banterCZ Dec 18, 2023
daa61d1
Merge pull request #292 from wultra/dependabot/maven/powerauth-data-a…
dependabot[bot] Jan 2, 2024
15a8f36
Fix #294: Set release version to 1.6.0
zcgandcomp Jan 18, 2024
71ca75b
Merge pull request #295 from wultra/issues/294-version-1.6.0
zcgandcomp Jan 18, 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
35 changes: 35 additions & 0 deletions .github/workflows/scp-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run SCP deploy

on:
workflow_dispatch:

jobs:
scp-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 21
distribution: 'temurin'
server-id: jfrog-central
server-username: INTERNAL_USERNAME
server-password: INTERNAL_PASSWORD
cache: maven
- name: Run Maven Package Step
run: |
mvn -B -U package -Dmaven.test.skip=true -DuseInternalRepo=true
env:
INTERNAL_USERNAME: ${{ secrets.JFROG_USERNAME }}
INTERNAL_PASSWORD: ${{ secrets.JFROG_PASSWORD }}
- name: Set up SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SCP_CERTIFICATE }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -t rsa ${{ secrets.SCP_HOST }} >> ~/.ssh/known_hosts
- name: Deploy powerauth-data-adapter.war
shell: bash
run: |
scp -i ~/.ssh/id_rsa **/target/powerauth-data-adapter-*.war ${{ secrets.SCP_USERNAME }}@${{ secrets.SCP_HOST }}:/opt/apache-tomcat/webapps/powerauth-data-adapter.war
1 change: 0 additions & 1 deletion doc-private/Developer-How-To-Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

### Standalone Run

- Enable maven profile `standalone`
- Use IntelliJ Idea run configuration at `../.run/DataAdapterApplication.run.xml`
- Open [http://localhost:9090/powerauth-data-adapter/actuator/health](http://localhost:9090/powerauth-data-adapter/actuator/health) and you should get `{"status":"UP"}`

Expand Down
67 changes: 46 additions & 21 deletions powerauth-data-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<artifactId>powerauth-data-adapter</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.5.0</version>
<version>1.6.0</version>
<packaging>war</packaging>

<name>powerauth-data-adapter</name>
Expand All @@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.3</version>
<version>3.1.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -62,13 +62,31 @@
</issueManagement>

<properties>
<springdoc-openapi-starter-webmvc-ui.version>2.2.0</springdoc-openapi-starter-webmvc-ui.version>
<springdoc-openapi-starter-webmvc-ui.version>2.3.0</springdoc-openapi-starter-webmvc-ui.version>
<logstash.version>7.4</logstash.version>
<bcprov-jdk18on.version>1.77</bcprov-jdk18on.version>
<!-- TODO (racansky, 2023-12-08) temporarily override the version 1.4.11 from spring boot version because of CVE -->
<logback.version>1.4.14</logback.version>

<powerauth-crypto.version>1.5.1</powerauth-crypto.version>
<powerauth-webflow.version>1.5.0</powerauth-webflow.version>
<powerauth-crypto.version>1.6.0</powerauth-crypto.version>
<powerauth-webflow.version>1.6.0</powerauth-webflow.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-el</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<!-- Spring Dependencies -->
<dependency>
Expand All @@ -79,10 +97,6 @@
<artifactId>log4j-to-slf4j</artifactId>
<groupId>org.apache.logging.log4j</groupId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -131,7 +145,7 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.76</version>
<version>${bcprov-jdk18on.version}</version>
</dependency>

<!-- Logging -->
Expand Down Expand Up @@ -162,6 +176,28 @@
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<webResource>
<directory>src/main/webapp/WEB-INF</directory>
<targetPath>WEB-INF</targetPath>
<filtering>true</filtering>
</webResource>
</webResources>
</configuration>
</plugin>

<plugin>
Expand Down Expand Up @@ -239,17 +275,6 @@
</properties>
</profile>

<profile>
<id>standalone</id>
<dependencies>
<dependency>
<artifactId>tomcat-embed-websocket</artifactId>
<groupId>org.apache.tomcat.embed</groupId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>

<profile>
<id>liquibase</id>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ spring.datasource.username=powerauth
spring.datasource.password=
spring.datasource.hikari.auto-commit=false
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.connection.characterEncoding=utf8
spring.jpa.properties.hibernate.connection.useUnicode=true

Expand All @@ -34,6 +33,11 @@ powerauth.dataAdapter.service.applicationEnvironment=
# Disable open session in view to avoid startup warning of Spring boot
spring.jpa.open-in-view=false

spring.application.name=powerauth-data-adapter

banner.application.name=${spring.application.name}
[email protected]@

# Disable swagger-ui default petstore url
springdoc.swagger-ui.disable-swagger-default-url=true

Expand Down
9 changes: 9 additions & 0 deletions powerauth-data-adapter/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
____ _ _ _ _
| _ \ __ _| |_ __ _ / \ __| | __ _ _ __ | |_ ___ _ __
| | | |/ _` | __/ _` | / _ \ / _` |/ _` | '_ \| __/ _ \ '__|
| |_| | (_| | || (_| | / ___ \ (_| | (_| | |_) | || __/ |
|____/ \__,_|\__\__,_| /_/ \_\__,_|\__,_| .__/ \__\___|_|
|_|
${AnsiColor.GREEN} :: ${banner.application.name} (${banner.application.version}) :: ${AnsiColor.GREEN}
${AnsiColor.RED} :: Spring Boot${spring-boot.formatted-version} :: ${AnsiColor.RED}
${AnsiColor.DEFAULT}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<resources>
<!-- use WAR provided Bouncy Castle -->
<resource-root path="WEB-INF/lib/bcprov-jdk18on-1.76.jar" use-physical-code-source="true"/>
<resource-root path="WEB-INF/lib/bcprov-jdk18on-${bcprov-jdk18on.version}.jar" use-physical-code-source="true"/>
</resources>

<local-last value="true"/>
Expand Down
Loading