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 develop to master #1577

Merged
merged 118 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
b59f7ad
Bump org.bouncycastle:bcprov-jdk18on from 1.77 to 1.78
dependabot[bot] Apr 8, 2024
1bf5671
Fix #1321: Set develop version to 1.8.0-SNAPSHOT
banterCZ Apr 8, 2024
9454b8c
Merge pull request #1452 from wultra/issues/1321-version-1.8.0-SNAPSHOT
banterCZ Apr 8, 2024
22f1c03
Merge pull request #1449 from wultra/dependabot/maven/org.bouncycastl…
dependabot[bot] Apr 8, 2024
82f95ae
Fix #1453: DocuCheck Warnings
banterCZ Apr 11, 2024
7782a58
Merge pull request #1454 from wultra/issues/1453-doc-warnings
banterCZ Apr 12, 2024
30cb8b0
Fix #1456: Documentation for Monitoring and Observability not Rendere…
jandusil Apr 12, 2024
0cd73fd
Fix #1438: powerauth-client-model classes are duplicated in powerauth…
banterCZ Apr 15, 2024
5ba9f68
Disable CodeQL GitHub Action on pull requests
banterCZ Apr 15, 2024
7cfbae3
Fix #1458: FIDO2: Concat operation data to credentialId (#1460)
jnpsk Apr 15, 2024
765c794
Merge pull request #1459 from wultra/issues/limit-codeql
banterCZ Apr 16, 2024
e3c94e8
Fix #1464: Improve the error message for RP ID mismatch (#1465)
petrdvorak Apr 17, 2024
2214395
Fix #1437: Change ActivationRecordEntity#protocol into enum (#1463)
banterCZ Apr 18, 2024
2c873a2
Fix failing OperationTemplateServiceBehaviorTest (#1466)
banterCZ Apr 18, 2024
c0230c8
Fix #1461: Implement proper sanitization of credential ID (#1462)
petrdvorak Apr 18, 2024
267d08b
Fix #1468: Improve performance of deleting values in table pa_unique_…
romanstrobl Apr 18, 2024
0b9ab03
Bump org.bouncycastle:bcprov-jdk18on from 1.78 to 1.78.1
dependabot[bot] Apr 22, 2024
123edd4
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Apr 22, 2024
d429335
Bump org.apache.commons:commons-text from 1.11.0 to 1.12.0
dependabot[bot] Apr 22, 2024
77c0819
Merge pull request #1475 from wultra/dependabot/maven/org.apache.comm…
dependabot[bot] Apr 22, 2024
db2a1b9
Merge pull request #1474 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Apr 22, 2024
f49971c
Merge pull request #1473 from wultra/dependabot/maven/org.bouncycastl…
dependabot[bot] Apr 22, 2024
0efaa5a
Fix #1399: Validate activation ID when creating operation (#1470)
banterCZ Apr 22, 2024
3d5fb71
Fix #1478: Update Wultra dependencies
banterCZ Apr 22, 2024
ca71a81
Merge pull request #1479 from wultra/issues/1478-wultra-dependencies
banterCZ Apr 22, 2024
354043a
Update the minimal version of WildFly to 27 to support Spring Boot 3
banterCZ Apr 23, 2024
64bfaa5
Merge pull request #1481 from wultra/issues/1480-wildfly-version
banterCZ Apr 26, 2024
dfba914
Fix #1483: Revise Migration Documentation for additionalData Field Co…
jandusil Apr 29, 2024
99c6cec
Fix #1480: Improve WildFly documentation and configuration (#1486)
banterCZ May 2, 2024
a8c56d2
Fix #1476: Refactor BouncyCastle dependency (#1477)
banterCZ May 2, 2024
238fc80
Fix #1502: FIDO2: Return excludeCredentials in RegistrationChallenge …
jnpsk May 3, 2024
b92869e
Fix #1505: Edit scp-deploy workflow to use internal repo (#1506)
jnpsk May 3, 2024
1c1d8d3
Bump com.webauthn4j:webauthn4j-test
dependabot[bot] May 6, 2024
c499748
Merge pull request #1509 from wultra/dependabot/maven/com.webauthn4j-…
dependabot[bot] May 6, 2024
f7c3b71
Fix #1508: Validate ValidateTokenRequest#protocolVersion parameter
banterCZ May 7, 2024
fc1fbf9
Merge pull request #1511 from wultra/issues/1508-protocolVersion-migr…
banterCZ May 7, 2024
d30959e
Fix #1482: Optimization: Operation expiration optimization (#1510)
jnpsk May 7, 2024
71ff0e1
Fix #1472: Investigate @Scheduled methods with @Transactional annotation
banterCZ May 9, 2024
70d8ff0
Merge pull request #1512 from wultra/issues/1472-scheduled-transactional
banterCZ May 10, 2024
645a0f6
Fix #1514: Superfluous combination of Date and Instance
banterCZ May 10, 2024
cfa5c79
Merge pull request #1515 from wultra/issues/1514-date-instant
banterCZ May 13, 2024
06c6571
Add dependabot configuration for github-actions
banterCZ May 16, 2024
cb25c0f
Merge pull request #1518 from wultra/issues/dependabot-gha
banterCZ May 16, 2024
458ba07
Bump io.swagger.core.v3:swagger-annotations-jakarta
dependabot[bot] May 16, 2024
8c13d85
Merge pull request #1519 from wultra/dependabot/maven/io.swagger.core…
dependabot[bot] May 16, 2024
706ca4f
Fix #1517: FIDO2: Enforce USB transport hint for WAU authenticators (…
jnpsk May 22, 2024
fa553fc
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] May 27, 2024
36bdb46
Merge pull request #1525 from wultra/dependabot/maven/org.springframe…
dependabot[bot] May 27, 2024
7a58ff6
Fix #1526: Improve logging of TOKEN_TIMESTAMP_TOO_IN_FUTURE
banterCZ May 27, 2024
156718b
Merge pull request #1527 from wultra/issues/1526-improve-logging
banterCZ May 28, 2024
d66f88f
Fix #1529: FIDO2: Missing external ID in activation
romanstrobl May 28, 2024
47bdb6a
Merge pull request #1530 from wultra/issues/1529-missing-external-id-…
romanstrobl May 28, 2024
a1ce552
Fix #1539: Invalid import for Arrays
romanstrobl May 30, 2024
1daf140
Fix #1541: Name Hikari Pool
banterCZ May 30, 2024
fd0485e
Merge pull request #1540 from wultra/issues/1539-arrays-import
romanstrobl May 30, 2024
3cdaea7
Merge pull request #1542 from wultra/issues/1541-hikari-pool-name
banterCZ May 31, 2024
1ddcdfc
Fix #1528: Add STATUS_REASON to operations for Cancel of the operatio…
banterCZ May 31, 2024
b496cb7
Bump org.springframework.cloud:spring-cloud-starter-vault-config
dependabot[bot] Jun 3, 2024
4a1c4d4
Bump com.webauthn4j:webauthn4j-test
dependabot[bot] Jun 3, 2024
d2672d4
Merge pull request #1546 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Jun 3, 2024
b7b9344
Merge pull request #1547 from wultra/dependabot/maven/com.webauthn4j-…
dependabot[bot] Jun 3, 2024
b365837
Fix #534: Break down the RESTful API controller (#1534)
petrdvorak Jun 3, 2024
75c6510
Fix #1548: Refactor ErrorCodeBehavior to stream API
banterCZ Jun 3, 2024
6813bdb
Merge pull request #1549 from wultra/issues/1548-stream-api
banterCZ Jun 3, 2024
5c8ce5f
Fix #1538: DB migration issue (MS SQL, possible Oracle) (#1543)
banterCZ Jun 3, 2024
bcb60de
Merge pull request #1550 from wultra/issues/1538-mssql-default-value
banterCZ Jun 3, 2024
527074b
Fix #1535: Use Lombok Getter and Setter in Entities (#1553)
banterCZ Jun 4, 2024
e17f6f6
Fix #1560: Create Operation does not return proximity OTP (#1561)
banterCZ Jun 5, 2024
7209058
Fix #1564: Missing signature version in vault unlock mapping (#1565)
petrdvorak Jun 5, 2024
ee76ddb
Fix #1566: VerifyECDSASignature returns bad request for non existing …
banterCZ Jun 6, 2024
b15c8d0
Merge pull request #1567 from wultra/issues/1566-VerifyECDSASignature…
banterCZ Jun 6, 2024
203069d
Fix JSON (de)serialization of VerifyECDSASignatureResponse
banterCZ Jun 6, 2024
12b25c4
Merge pull request #1568 from wultra/issues/1566-VerifyECDSASignature…
banterCZ Jun 6, 2024
e27dcb5
Fix #1569: Missing timeout options for PowerAuth REST clients
banterCZ Jun 10, 2024
f791b91
Merge pull request #1570 from wultra/issues/1569-rest-client-timeouts
banterCZ Jun 11, 2024
e9a8443
Fix #1571: Use Lombok Getter and Setter for RestClientConfiguration
banterCZ Jun 11, 2024
f6314b0
Merge pull request #1572 from wultra/issues/1571-lombok-rest-client-c…
banterCZ Jun 11, 2024
bb0f658
Fix How-To generate SQL from Liquibase for PostgreSQL
banterCZ Jun 20, 2024
2823f7f
Merge pull request #1573 from wultra/issues/fix-postgres-liquibase-doc
banterCZ Jun 20, 2024
8b46b9e
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Jun 21, 2024
28d502c
Merge pull request #1574 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Jun 21, 2024
62bde32
Fix #1552: Enable to lookup the userId if operation is created with a…
banterCZ Jun 24, 2024
a4d8949
Document pa_fido2_authenticator.transports
banterCZ Jun 25, 2024
46e9398
Merge pull request #1580 from wultra/issues/1517-doc-pa_fido2_authent…
banterCZ Jun 25, 2024
58609c7
Remove commented out code
banterCZ Jun 25, 2024
fde64ea
Merge pull request #1581 from wultra/issues/534-commented-out-code
banterCZ Jun 25, 2024
418c56d
Remove superfluous transactional annotation
banterCZ Jun 25, 2024
ca70d2f
Merge pull request #1582 from wultra/issues/1472-transactional-scheduled
banterCZ Jun 25, 2024
78af600
Fix #1584: Add liquibase tag 1.8.0
banterCZ Jun 25, 2024
3635aa5
Bump org.springdoc:springdoc-openapi-starter-webmvc-ui
dependabot[bot] Jul 1, 2024
62c48e8
Bump com.webauthn4j:webauthn4j-test
dependabot[bot] Jul 8, 2024
b65ab37
Fix #1590: Missing signatureVersion attribute in API documentation (#…
petrdvorak Jul 11, 2024
91855d2
Bump org.springframework.cloud:spring-cloud-starter-vault-config
dependabot[bot] Jul 15, 2024
9e0cfd0
Merge pull request #1594 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Jul 15, 2024
ab421dd
Merge pull request #1587 from wultra/dependabot/maven/com.webauthn4j-…
dependabot[bot] Jul 15, 2024
29a4bcf
Merge pull request #1586 from wultra/dependabot/maven/org.springdoc-s…
dependabot[bot] Jul 15, 2024
ddf8c32
Fix #1532: Add lockAtLeastFor to the scheduler configuration
banterCZ Jul 16, 2024
7501ace
Merge pull request #1597 from wultra/issues/1532-lockAtLeastFor
banterCZ Jul 16, 2024
19feda3
Fix #1375: Allow fetching assertion challenge related to existing ope…
banterCZ Jul 18, 2024
a314ed1
Remove scheduler lock from Fido2CleaningTask
banterCZ Jul 18, 2024
7fea4d8
Merge pull request #1601 from wultra/issues/1532-remove-scheduler-lock
banterCZ Jul 18, 2024
4859fb9
Fix #1603: Schema diagram how to (#1604)
jnpsk Jul 19, 2024
cf133b7
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Jul 22, 2024
56aaa29
Merge pull request #1605 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Jul 22, 2024
d05efea
Fix #1523: Data escaping in operation template
banterCZ Jul 22, 2024
cafed8c
Fix #1592: Implement procedure sp_getapplock for locking activations …
romanstrobl Jul 23, 2024
d2868af
Fix #1610: Remove schema creation form Database-Structure.md
banterCZ Jul 23, 2024
af3fd5f
Merge pull request #1611 from wultra/issues/1610-remove-schema
banterCZ Jul 23, 2024
a75b6d2
Merge pull request #1606 from wultra/issues/1523-data-escaping
banterCZ Jul 24, 2024
8d09fc1
Fix OperationServiceBehaviorTest
banterCZ Jul 24, 2024
7209ff5
Fix #1607: Extract common code into EncryptionService
banterCZ Jul 23, 2024
fda014f
Merge pull request #1612 from wultra/issues/1606-fix-test
banterCZ Jul 24, 2024
30f5c93
Merge pull request #1608 from wultra/issues/1607-encryption-service
banterCZ Jul 24, 2024
6bdb7ff
Fix #1615: Get recovery configuration fails
banterCZ Jul 25, 2024
5f19827
Merge pull request #1616 from wultra/issues/1615-recovery-transaction
banterCZ Jul 25, 2024
ee510e5
Merge pull request #1585 from wultra/issues/1584-liquibase-tag
banterCZ Jul 26, 2024
0829556
Avoid deadlock during expiration of operations (#1621)
romanstrobl Jul 26, 2024
2bbe65f
Fix #1578: Set release version to 1.8.0 (#1583)
banterCZ Jul 26, 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
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
directory: "/"
schedule:
interval: "weekly"
3 changes: 0 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
workflow_dispatch:
push:
branches: [ 'develop', 'master', 'releases/**' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ 'develop', 'master', 'releases/**' ]
schedule:
- cron: '0 2 * * 4'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
cache: maven
- name: Run Maven Package Step
run: |
mvn -B -U package -Dmaven.test.skip=true
mvn -B -U package -Dmaven.test.skip=true -DuseInternalRepo=true
env:
INTERNAL_USERNAME: ${{ secrets.JFROG_USERNAME }}
INTERNAL_PASSWORD: ${{ secrets.JFROG_PASSWORD }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist/

### JRebel
rebel.xml

docs-private/schema_crawler/
70 changes: 70 additions & 0 deletions docs-private/Developer-How-To-Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,81 @@ liquibase --changelog-file=./docs/db/changelog/changesets/powerauth-java-server/

To generate SQL script run this command.


#### Oracle

```shell
liquibase --changeLogFile=./docs/db/changelog/changesets/powerauth-java-server/db.changelog-module.xml --output-file=./docs/sql/oracle/generated-oracle-script.sql updateSQL --url=offline:oracle
```


#### MS SQL

```shell
liquibase --changeLogFile=./docs/db/changelog/changesets/powerauth-java-server/db.changelog-module.xml --output-file=./docs/sql/mssql/generated-mssql-script.sql updateSQL --url=offline:mssql
```


#### PostgreSQL

```shell
liquibase --changeLogFile=./docs/db/changelog/changesets/powerauth-java-server/db.changelog-module.xml --output-file=./docs/sql/postgresql/generated-postgresql-script.sql updateSQL --url=offline:postgresql
```

### Schema Diagram

To generate diagram of the database schema, use [SchemaCrawler](https://www.schemacrawler.com/) tool. Unfortunately,
the SchemaCrawler cannot be installed via a package manager for MacOS. You can either use the [docker image](https://www.schemacrawler.com/docker-image.html)
or get the tool from their [releases page](https://github.com/schemacrawler/SchemaCrawler/releases). Note, that
the SchemaCrawler diagram generation depends on `graphviz`, which is available via `brew` package manager.

To install graphviz and download SchemaCrawler run:

```shell
SC_VERSION='16.21.4' && \
brew install graphviz && \
curl -Lo schemacrawler.zip "https://github.com/schemacrawler/SchemaCrawler/releases/download/v${SC_VERSION}/schemacrawler-${SC_VERSION}-distribution.zip" && \
unzip schemacrawler.zip && \
rm schemacrawler.zip && \
mv "schemacrawler-${SC_VERSION}-distribution" schema_crawler
```

There are two config files for the SchemaCrawler, which should be modified.
To modify the configuration, run:

```shell
SC_CONFIG_DIR="./schema_crawler/_schemacrawler/config" && \
SC_CONFIG='
# Hide public. prefix from the table names
schemacrawler.format.show_unqualified_names=true
# Hide SchemaCrawler details
schemacrawler.format.no_schemacrawler_info=true
# Output PNG resolution
schemacrawler.graph.graphviz_opts=-Gsize=7 -Gdpi=300' && \
SC_COLORMAP='
# Set header color for all tables
0099FF=.*' && \
echo "$SC_CONFIG" >> "${SC_CONFIG_DIR}/schemacrawler.config.properties" && \
echo "$SC_COLORMAP" >> "${SC_CONFIG_DIR}/schemacrawler.colormap.properties"
```

Then to generate the schema diagram, run following:

```shell
./schema_crawler/_schemacrawler/bin/schemacrawler.sh \
--server=postgresql \
--host=localhost \
--port=5432 \
--database=powerauth \
--schemas=public \
--user=powerauth \
--info-level=standard \
--command=schema \
--output-format=png \
--output-file="../docs/images/arch_db_structure.png" \
--tables='public.pa_(?!cloud|test).*'
```

## PowerAuth Admin Server


Expand Down
2 changes: 1 addition & 1 deletion docs/Admin-Deploying-Wildfly.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PowerAuth Admin contains the following configuration in `jboss-deployment-struct

```xml
<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.3">
<deployment>
<exclude-subsystems>
<!-- disable the logging subsystem because the application manages its own logging independently -->
Expand Down
4 changes: 4 additions & 0 deletions docs/Configuration-Properties-Admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ The PowerAuth Admin application uses the following public configuration properti

## Monitoring and Observability

| Property | Default | Note |
|-------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `management.tracing.sampling.probability` | `1.0` | Specifies the proportion of requests that are sampled for tracing. A value of 1.0 means that 100% of requests are sampled, while a value of 0 effectively disables tracing. |

The WAR file includes the `micrometer-registry-prometheus` dependency.
Discuss its configuration with the [Spring Boot documentation](https://docs.spring.io/spring-boot/docs/3.1.x/reference/html/actuator.html#actuator.metrics).
2 changes: 2 additions & 0 deletions docs/Configuration-Properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ The PowerAuth Server uses the following public configuration properties:


## Monitoring and Observability

| Property | Default | Note |
|-------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `management.tracing.sampling.probability` | `1.0` | Specifies the proportion of requests that are sampled for tracing. A value of 1.0 means that 100% of requests are sampled, while a value of 0 effectively disables tracing. |
Expand All @@ -82,6 +83,7 @@ Discuss its configuration with the [Spring Boot documentation](https://docs.spri
| Property | Default | Note |
|-----------------------------------------------------------------------------|-----------|----------------------------------------------------------------------------------------------------|
| `powerauth.service.scheduled.job.operationCleanup` | `5000` | Time delay in milliseconds between two consecutive tasks that expire long pending operations. |
| `powerauth.service.scheduled.job.expireOperationsLimit` | `100` | Number of long pending operations that will be set expired in single scheduled job run. |
| `powerauth.service.scheduled.job.activationsCleanup` | `5000` | Time delay in milliseconds between two consecutive tasks that expire abandoned activations. |
| `powerauth.service.scheduled.job.activationsCleanup.lookBackInMilliseconds` | `3600000` | Number of milliseconds to look back in the past when looking for abandoned activations. |
| `powerauth.service.scheduled.job.uniqueValueCleanup` | `60000` | Time delay in milliseconds between two consecutive tasks that delete expired unique values. |
Expand Down
Loading
Loading