diff --git a/docs/src/.vuepress/data/releases.ts b/docs/src/.vuepress/data/releases.ts index 4688c2434..5dd674c07 100644 --- a/docs/src/.vuepress/data/releases.ts +++ b/docs/src/.vuepress/data/releases.ts @@ -44,12 +44,22 @@ export const releases: Record = { bpe_proxy: { digest: 'sha256:17078749f3fb3d2d489250221b7f6cca480d02e041d71abf4857aff72c924ae6' }, }, }, + '2.1.3': { + tag: '2.1.3', + previousTag: '2.1.2', + images: { + fhir: { digest: 'sha256:8c411d26561544787e5cbe68a159b6cdf0f046d01e2b12960317164e4da357b8' }, + fhir_proxy: { digest: 'sha256:266d4dd4f080d2069fd57ff6691fc0819bd9c1c9ede472fcd5b4fc0c8d324e70' }, + bpe: { digest: 'sha256:faea3800b035b0565f139b2c85fff3bb98fdba961dc4ad1759269e26fe63e703' }, + bpe_proxy: { digest: 'sha256:aaf8d6caad0a60f13885ed08d8f43431a552aeb7049eb8f1a93ff0c535719d2b' }, + }, + }, }; // --- Version registry (single source of truth) --- // Sidebar keys reference generator functions by name; mapped in theme.ts. // Ordered newest-first. -export type SidebarKey = 'v2_latest' | 'v2_1_0' | 'v2_0_0' | 'v1_latest' | 'v1_gte_1_7' | 'v1_gte_1_5' | 'v1_gte_1_0'; +export type SidebarKey = 'v2_latest' | 'v2_1_2' | 'v2_1_1' | 'v2_1_0' | 'v2_0_0' | 'v1_latest' | 'v1_gte_1_7' | 'v1_gte_1_5' | 'v1_gte_1_0'; export interface VersionEntry { tag: string; @@ -57,8 +67,9 @@ export interface VersionEntry { } export const allVersions: VersionEntry[] = [ - { tag: '2.1.2', sidebar: 'v2_latest' }, - { tag: '2.1.1', sidebar: 'v2_latest' }, + { tag: '2.1.3', sidebar: 'v2_latest' }, + { tag: '2.1.2', sidebar: 'v2_1_2' }, + { tag: '2.1.1', sidebar: 'v2_1_1' }, { tag: '2.1.0', sidebar: 'v2_1_0' }, { tag: '2.0.2', sidebar: 'v2_0_0' }, { tag: '2.0.1', sidebar: 'v2_0_0' }, @@ -80,7 +91,7 @@ export const allVersions: VersionEntry[] = [ { tag: '1.0.0', sidebar: 'v1_gte_1_0' }, ]; -export const latestVersion = '2.1.2'; +export const latestVersion = '2.1.3'; export function getReleaseFromPath(path: string): Release | undefined { const versionMatch = path.match(/(?:^|\/)operations\/v(\d+\.\d+\.\d+)\//); diff --git a/docs/src/.vuepress/public/download/dsf_bpe_2_1_3.tar.gz b/docs/src/.vuepress/public/download/dsf_bpe_2_1_3.tar.gz new file mode 100644 index 000000000..dd02182b4 Binary files /dev/null and b/docs/src/.vuepress/public/download/dsf_bpe_2_1_3.tar.gz differ diff --git a/docs/src/.vuepress/public/download/dsf_fhir_2_1_3.tar.gz b/docs/src/.vuepress/public/download/dsf_fhir_2_1_3.tar.gz new file mode 100644 index 000000000..fa00053e4 Binary files /dev/null and b/docs/src/.vuepress/public/download/dsf_fhir_2_1_3.tar.gz differ diff --git a/docs/src/.vuepress/public/llms-full.txt b/docs/src/.vuepress/public/llms-full.txt index 4cb04c34a..99ffb6713 100644 --- a/docs/src/.vuepress/public/llms-full.txt +++ b/docs/src/.vuepress/public/llms-full.txt @@ -432,8 +432,8 @@ Here is a quick overview of the expected network setup. Download and unpack the prepared DSF FHIR server config files and folder structure: ``` cd /opt - wget https://dsf.dev/download/dsf_fhir_2_1_1.tar.gz - sudo tar --same-owner -zxvf dsf_fhir_2_1_1.tar.gz + wget https://dsf.dev/download/dsf_fhir_2_1_3.tar.gz + sudo tar --same-owner -zxvf dsf_fhir_2_1_3.tar.gz ``` _The `tar` command will unpack the config files at `/opt/fhir` assuming you changed into the `/opt` directory._ @@ -507,8 +507,8 @@ Here is a quick overview of the expected network setup. Download and extract prepared DSF BPE server config files and folder structure: ``` cd /opt - wget https://dsf.dev/download/dsf_bpe_2_1_1.tar.gz - sudo tar --same-owner -zxvf dsf_bpe_2_1_1.tar.gz + wget https://dsf.dev/download/dsf_bpe_2_1_3.tar.gz + sudo tar --same-owner -zxvf dsf_bpe_2_1_3.tar.gz ``` _The `tar` command will unpack the config files at `/opt/bpe` assuming you changed into the `/opt` directory._ @@ -579,47 +579,38 @@ Have you found an error or is something unclear to you? Then please feel free to ## Release Notes Source: https://dsf.dev/operations/latest/release-notes.html -## [Release Notes for v2.1.1](https://github.com/datasharingframework/dsf/releases/tag/v2.1.1) +## [Release Notes for v2.1.3](https://github.com/datasharingframework/dsf/releases/tag/v2.1.3) ::: tip Release Notes You can access all release notes on our [GitHub](https://github.com/datasharingframework/dsf/releases). ::: -### 2.1.1 - Security and Maintenance Release +### 2.1.3 - Maintenance Release General remarks: - This is a maintenance update for DSF 2.x with security improvements. -- To Update from an existing 2.x installation, please see the [2.x -> 2.1.1 Upgrade Guide](/operations/v2.1.1/upgrade-from-2.html). -- For a fresh deployment, follow the [installation instructions](/operations/v2.1.1/install.html). - -Security Advisories: - -- Unbounded Memory Usage During Large File Decryption: [GHSA-xfv4-vhh2-m2j8](https://github.com/datasharingframework/dsf/security/advisories/GHSA-xfv4-vhh2-m2j8) -- Authorization Bypass Allows Authenticated Users to Access StructureDefinition Snapshots: [GHSA-xw2h-2xx5-j86q](https://github.com/datasharingframework/dsf/security/advisories/GHSA-xw2h-2xx5-j86q) -- Authorization Check Partially Rendered Ineffective for Conditional Updates: [GHSA-448w-h27c-w53m](https://github.com/datasharingframework/dsf/security/advisories/GHSA-448w-h27c-w53m) +- To Update from an existing 2.x installation, please see the [2.x -> 2.1.3 Upgrade Guide](/operations/v2.1.3/upgrade-from-2.html). +- For a fresh deployment, follow the [installation instructions](/operations/v2.1.3/install.html). Bug Fixes: -- Error handling code in the BPE process plugin API v2 `MessageSendTaskDelegate` class was fixed, to allow for correct handling of Error Boundary Events on Send Tasks. [#509](https://github.com/datasharingframework/dsf/issues/509) -- An encoding error in the BPE client connections OIDC provider client was corrected, the fixed implementation now follows [Section 2.3.1 of RFC 6749](https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1) correctly and allows`client-id` values to include colon characters. [#529](https://github.com/datasharingframework/dsf/issues/529) -- An incorrectly thrown `NullPointerException ` was fixed in the BPE process plugin API v2 `Variables#setJsonVariable` method, when called with a `null` value. [#535](https://github.com/datasharingframework/dsf/issues/535) -- Input fields of the FHIR server UI for draft Task resources are now correctly repopulated with already entered values, in case session expiration is only detected during upload of the Task to the FHIR server. [#547](https://github.com/datasharingframework/dsf/issues/547) +- A jetty dependency upgrade in the 2.1.2 release was missing corresponding code changes in the `dsf-common-jetty` module (fc22889), resulting in failed OIDC logins (HTTP status 500). [#615](https://github.com/datasharingframework/dsf/issues/615) Docker images for this release can be accessed via the GitHub Docker registry - ghcr.io: -* **bpe**: [ghcr.io/datasharingframework/bpe:2.1.1](https://github.com/datasharingframework/dsf/pkgs/container/bpe/1096774441?tag=2.1.1) - Digest: `sha256:cc88a676806e835b1b35ab7f1e5e231b537a10668b24bd8999180f6dc22b5513` -* **bpe_proxy**: [ghcr.io/datasharingframework/bpe_proxy:2.1.1](https://github.com/datasharingframework/dsf/pkgs/container/bpe_proxy/1096766410?tag=2.1.1) - Digest: `sha256:cabedb0ed04191ae82d9d64ad141ee9ef2a3420daba777ca223700a61cad9285` -* **fhir**: [ghcr.io/datasharingframework/fhir:2.1.1](https://github.com/datasharingframework/dsf/pkgs/container/fhir/1096772162?tag=2.1.1) - Digest: `sha256:708188c5f03224f4a5adf84ae2297c7161c86590d5b392eb7338a91e4fe7b5f3` -* **fhir_proxy**: [ghcr.io/datasharingframework/fhir_proxy:2.1.1](https://github.com/datasharingframework/dsf/pkgs/container/fhir_proxy/1096765684?tag=2.1.1) - Digest: `sha256:70792c0783b53a94a706ad671dae726e3a9b18bad1711042d700860edc544b36` +* **bpe**: [ghcr.io/datasharingframework/bpe:2.1.3](https://github.com/orgs/datasharingframework/packages/container/bpe/1619172005?tag=2.1.3) + Digest: `sha256:faea3800b035b0565f139b2c85fff3bb98fdba961dc4ad1759269e26fe63e703` +* **bpe_proxy**: [ghcr.io/datasharingframework/bpe_proxy:2.1.3](https://github.com/orgs/datasharingframework/packages/container/bpe_proxy/1619168829?tag=2.1.3) + Digest: `sha256:aaf8d6caad0a60f13885ed08d8f43431a552aeb7049eb8f1a93ff0c535719d2b` +* **fhir**: [ghcr.io/datasharingframework/fhir:2.1.3](https://github.com/orgs/datasharingframework/packages/container/fhir/1619171288?tag=2.1.3) + Digest: `sha256:8c411d26561544787e5cbe68a159b6cdf0f046d01e2b12960317164e4da357b8` +* **fhir_proxy**: [ghcr.io/datasharingframework/fhir_proxy:2.1.3](https://github.com/orgs/datasharingframework/packages/container/fhir_proxy/1619166219?tag=2.1.3) + Digest: `sha256:266d4dd4f080d2069fd57ff6691fc0819bd9c1c9ede472fcd5b4fc0c8d324e70` Process Plugin API v1 on Maven Central: ```xml dev.dsf dsf-bpe-process-api-v1 - 2.1.1 + 2.1.3 ``` Process Plugin API v2 on Maven Central: @@ -627,7 +618,7 @@ Process Plugin API v2 on Maven Central: dev.dsf dsf-bpe-process-api-v2 - 2.1.1 + 2.1.3 ``` DSF Maven Plugin on Maven Central: @@ -635,18 +626,14 @@ DSF Maven Plugin on Maven Central: dev.dsf dsf-maven-plugin - 2.1.1 + 2.1.3 ``` Issues closed: -- Backport Bugfixes to 2.1.1 [#560](https://github.com/datasharingframework/dsf/issues/560) -- Task Input Autofill After Session Timeout Not Working [#547](https://github.com/datasharingframework/dsf/issues/547) -- NullPointerException when using setJsonVariable with null value [#535](https://github.com/datasharingframework/dsf/issues/535) -- OIDC identity provider receives wrong client-id for client-id containing colon [#529](https://github.com/datasharingframework/dsf/issues/529) -- MessageSendTaskDelegate does not throw BPMN Error if ExceptionToErrorBoundaryEventTranslationErrorHandler is used [#509](https://github.com/datasharingframework/dsf/issues/509) +- OIDC Login Fails [#615](https://github.com/datasharingframework/dsf/issues/615) -This release contains contributions from [@EmteZogaf](https://github.com/EmteZogaf), [@hhund](https://github.com/hhund), [@jaboehri](https://github.com/jaboehri), [@schwzr](https://github.com/schwzr) and [@wetret](https://github.com/wetret). +This release contains contributions from [@hhund](https://github.com/hhund), [@jaboehri](https://github.com/jaboehri) and [@schwzr](https://github.com/schwzr). --- @@ -2448,7 +2435,7 @@ Source: https://dsf.dev/operations/latest/allowList-mgm.html You can read all about the concept of Allow Lists [in our introduction](/explore/concepts/allow-list.md). ## Overview -To simplify the DSF Allow List Management we have built a portal for administration. The portal is managed by the GECKO Institute at Heilbronn University. You as an DSF administrator can create or update your Allow List information. The information you provide on this portal will be transferred to us and will be used to built Allow List bundles that get distributed to the communication partners of the distributed processes. +To simplify the DSF Allow List Management we have built a portal for administration. The portal is managed by the GECKO Institute at Heilbronn University. You as a DSF administrator can create or update your Allow List information. The information you provide on this portal will be transferred to us and will be used to built Allow List bundles that get distributed to the communication partners of the distributed processes. The DSF Allow List management tool uses client certificates for authentication. You can either use a personal client certificate or the client certificate from your DSF BPE, which needs to be added to your web-browsers certificate store. @@ -2785,7 +2772,7 @@ Source: https://dsf.dev/operations/latest/image-verification.html # How to Verify Image Signatures -Starting with DSF 2.1.1, all official Docker images published to [ghcr.io/datasharingframework](https://github.com/orgs/datasharingframework/packages) are signed using [Cosign](https://docs.sigstore.dev/cosign/overview/) with [keyless signing](https://docs.sigstore.dev/cosign/signing/overview/) backed by GitHub's OIDC identity provider. Each image additionally has a CycloneDX SBOM attached to the registry, which is signed the same way. +Starting with DSF 2.1.3, all official Docker images published to [ghcr.io/datasharingframework](https://github.com/orgs/datasharingframework/packages) are signed using [Cosign](https://docs.sigstore.dev/cosign/overview/) with [keyless signing](https://docs.sigstore.dev/cosign/signing/overview/) backed by GitHub's OIDC identity provider. Each image additionally has a CycloneDX SBOM attached to the registry, which is signed the same way. Verifying signatures before pulling images into production is strongly recommended. It ensures that the image was built and published by the official DSF GitHub Actions release workflow and has not been tampered with. @@ -2800,7 +2787,7 @@ Verifying signatures before pulling images into production is strongly recommend ``` ::: warning Always pin the digest -Verifying by tag alone (`:2.1.1`) is not sufficient — tags can be reassigned. Always include the immutable `@sha256:` in the verification command and in your production `docker-compose.yml`. +Verifying by tag alone (`:2.1.3`) is not sufficient — tags can be reassigned. Always include the immutable `@sha256:` in the verification command and in your production `docker-compose.yml`. ::: ## Verify the Image Signature @@ -2815,7 +2802,7 @@ The commands below are pre-filled with the correct image tag for this release. R ```bash cosign verify \ - ghcr.io/datasharingframework/fhir:2.1.1@sha256:708188c5f03224f4a5adf84ae2297c7161c86590d5b392eb7338a91e4fe7b5f3 \ + ghcr.io/datasharingframework/fhir:2.1.3@sha256:8c411d26561544787e5cbe68a159b6cdf0f046d01e2b12960317164e4da357b8 \ --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" ``` @@ -2826,7 +2813,7 @@ cosign verify \ ```bash cosign verify \ - ghcr.io/datasharingframework/fhir_proxy:2.1.1@sha256:70792c0783b53a94a706ad671dae726e3a9b18bad1711042d700860edc544b36 \ + ghcr.io/datasharingframework/fhir_proxy:2.1.3@sha256:266d4dd4f080d2069fd57ff6691fc0819bd9c1c9ede472fcd5b4fc0c8d324e70 \ --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" ``` @@ -2837,7 +2824,7 @@ cosign verify \ ```bash cosign verify \ - ghcr.io/datasharingframework/bpe:2.1.1@sha256:cc88a676806e835b1b35ab7f1e5e231b537a10668b24bd8999180f6dc22b5513 \ + ghcr.io/datasharingframework/bpe:2.1.3@sha256:faea3800b035b0565f139b2c85fff3bb98fdba961dc4ad1759269e26fe63e703 \ --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" ``` @@ -2848,7 +2835,7 @@ cosign verify \ ```bash cosign verify \ - ghcr.io/datasharingframework/bpe_proxy:2.1.1@sha256:cabedb0ed04191ae82d9d64ad141ee9ef2a3420daba777ca223700a61cad9285 \ + ghcr.io/datasharingframework/bpe_proxy:2.1.3@sha256:aaf8d6caad0a60f13885ed08d8f43431a552aeb7049eb8f1a93ff0c535719d2b \ --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" ``` @@ -2860,7 +2847,7 @@ Each image has a signed CycloneDX SBOM attached. Substitute `` with one o ```bash cosign verify-attestation \ --type cyclonedx \ - ghcr.io/datasharingframework/:2.1.1@sha256: \ + ghcr.io/datasharingframework/:2.1.3@sha256: \ --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" ``` @@ -2870,7 +2857,7 @@ To extract the SBOM payload for further processing (e.g. dependency or vulnerabi ```bash cosign download attestation \ --predicate-type https://cyclonedx.org/bom \ - ghcr.io/datasharingframework/:2.1.1@sha256: \ + ghcr.io/datasharingframework/:2.1.3@sha256: \ | jq -r .payload | base64 -d | jq .predicate > sbom.cdx.json ``` @@ -2888,92 +2875,10 @@ cosign download attestation \ --- -## Security Advisories -Source: https://dsf.dev/operations/latest/security-advisories.html - -# Security Advisories - -The following security advisories have been published as part of the 2.1.1 release. - -## Unbounded Memory Usage During Large File Decryption -CVE ID: [not yet assigned](https://github.com/datasharingframework/dsf/security/advisories/GHSA-xfv4-vhh2-m2j8) -CVSS Score: Moderate, 6.0 / 10 -CVSS: 4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - -### Affected Components -- DSF BPE Server - -### Summary -API v2 process plugins using the included encryption/decryption service can create large files for transfer between DSF instances. An attacker can trigger unbounded memory usage by supplying a sufficiently large encrypted file for decryption, potentially causing the JVM of the DSF BPE to exhaust the available heap memory and resulting in a denial of service. - -### Impact -The API v2 process plugin encryption/decryption service uses a hybrid cryptosystem with AES-GCM as the symmetric encryption algorithm. Plaintext is encrypted as a single chunk, resulting in unbounded memory consumption during GCM tag verification while decrypting. The unbound memory consumption within the DSF BPE can exhaust the available heap memory, causing the process engine to stop. To our knowledge, no API v2 process plugins using this feature are currently in public circulation. - -### Fix (commit [a696810​](https://github.com/datasharingframework/dsf/commit/a696810)) -A limit of 250 MiB for the max allowed plain-text length in the dev.dsf.bpe.v2.service.CryptoService.Kem encrypt and decrypt methods was added. - - -## Authorization Bypass Allows Authenticated Users to Access StructureDefinition Snapshots -CVE ID: [not yet assigned](https://github.com/datasharingframework/dsf/security/advisories/GHSA-xw2h-2xx5-j86q) -CVSS Score: Moderate, 5.3 / 10 -CVSS: 4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - -### Affected Components -- DSF FHIR Server - -### Summary -Authenticated users can access [StructureDefinition](https://hl7.org/fhir/R4/structuredefinition.html) snapshots via the [$snapshot](https://hl7.org/fhir/R4/structuredefinition-operation-snapshot.html) operation regardless of read-access configuration. - -### Impact -[StructureDefinition](https://hl7.org/fhir/R4/structuredefinition.html) resources and their snapshots are typically configured to be readable by all authenticated users. However, setting a read-access tag to a subset of organizations or the local organization only has no effect on access via the [$snapshot](https://hl7.org/fhir/R4/structuredefinition-operation-snapshot.html) operation. Thus, a DSF FHIR Server may leak metadata that is intended to remain private to the organization. - -### Fix (commit [d29e157​](https://github.com/datasharingframework/dsf/commit/d29e157)) -Added missing read authorization rule checks. - - -## Authorization Check Partially Rendered Ineffective for Conditional Updates -CVE ID: [not yet assigned](https://github.com/datasharingframework/dsf/security/advisories/GHSA-448w-h27c-w53m) -CVSS Score: Moderate, 5.1 / 10 -CVSS: 4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:L/SA:N - -### Affected Components -- DSF FHIR Server - -### Summary -Authenticated local organization and practitioner users with [UPDATE](https://dsf.dev/operations/v2.1.1/fhir/access-control.html) role can bypass update authorization rules via conditional updates. The vulnerability can not be exploited by remote users. - -### Impact -Authorization, integrity, and uniqueness rules can be bypassed via conditional updates of individual resources. This allows authenticated local organization and practitioner users with [UPDATE](https://dsf.dev/operations/v2.1.1/fhir/access-control.html) role to change the state of existing FHIR resources to some illegal values. Examples: - -The `requester` organization of a `Task` resource can be changed to a new value, if the status of the updated Task resource is `in-progress`. -The `thumbprint` and `identifier` of an `Organization` resource could be changed to new values, a change that usually requires deleting an `Organization` resource and creating a new one. -Updates to resources guarded by [read-access tags](https://dsf.dev/fhir/ImplementationGuide/dev.dsf/readaccess.html) (e.g. `Organization`) still need to comply with the create rules for new resources, thereby mitigating the impact of this vulnerability. - -### Fix (commit [22743e1​​](https://github.com/datasharingframework/dsf/commit/22743e1)) -Fixed new resource being compared against itself when executing authorization rules for conditional updates. - - - -### Affected Components -- DSF FHIR Server - -### Summary -Authenticated local organization and practitioner users with UPDATE role can bypass update authorization rules via conditional updates. The vulnerability can not be exploited by remote users. - -### Impact -Authorization, integrity and uniqueness rules can be bypassed via conditional updates of single resources. This allows authenticated local organization and practitioner users with UPDATE roles to change the state of existing FHIR resources to some illegal values. Examples: - - - The `requester` organization of a `Task` resource could be changed to a new value, if the status of the new version of the Task resource is `in-progress`. - - The `thumbprint` and `identifier` of an `Organization` resource could be changed to new values, a change that usually requires deleting an `Organization` resource and creating a new one. - -Updates of resources guarded by [read access tags](https://dsf.dev/fhir/ImplementationGuide/dev.dsf/readaccess.html) (e.g. `Organization`) still need to comply with the create rules for new resources, thus mitigating the impact of this vulnerability. - ---- - ## Upgrade from DSF v1 Source: https://dsf.dev/operations/latest/upgrade-from-1.html -Upgrading the DSF from 1.9.0 to 2.1.1 involves modifying the docker-compose.yml files and recreating the containers. +Upgrading the DSF from 1.9.0 to 2.1.3 involves modifying the docker-compose.yml files and recreating the containers. ::: warning Update to DSF 1.9.0 first When upgrading from DSF version < 1.9.0 it is important to migrate to [DSF 1.9.0 first](../v1.9.0/upgrade-from-1). @@ -2998,20 +2903,20 @@ DSF 2 was designed to run DSF 1 (APIv1) process plugins, but due to stricter val ## Modify DSF FHIR Server Setup 1. Preparation / Backup * We recommend to create a backup of the `/opt/fhir` directory before proceeding with the upgrade. - For example using: `sudo cp -rp /opt/fhir /opt/fhir_backup_pre_2.1.1_upgrade` + For example using: `sudo cp -rp /opt/fhir /opt/fhir_backup_pre_2.1.3_upgrade` -2. Modify the DSF FHIR docker-compose.yml file, replace the version number with 2.1.1. +2. Modify the DSF FHIR docker-compose.yml file, replace the version number with 2.1.3. ```diff version: '3.8' services: proxy: - image: ghcr.io/datasharingframework/fhir_proxy:1.9.0 -+ image: ghcr.io/datasharingframework/fhir_proxy:2.1.1 ++ image: ghcr.io/datasharingframework/fhir_proxy:2.1.3 restart: on-failure ... app: - image: ghcr.io/datasharingframework/fhir:1.9.0 -+ image: ghcr.io/datasharingframework/fhir:2.1.1 ++ image: ghcr.io/datasharingframework/fhir:2.1.3 restart: on-failure ... environment: @@ -3031,15 +2936,15 @@ The environment variable `DEV_DSF_FHIR_SERVER_ORGANIZATION_THUMBPRINT` does not ## Modify DSF BPE Server Setup 1. Preparation / Backup * We recommend to create a backup of the `/opt/bpe` directory before proceeding with the upgrade. - For example using: `sudo cp -rp /opt/bpe /opt/bpe_backup_pre_2.1.1_upgrade` + For example using: `sudo cp -rp /opt/bpe /opt/bpe_backup_pre_2.1.3_upgrade` -2. Modify the DSF BPE docker-compose.yml file, replace the version number with 2.1.1. +2. Modify the DSF BPE docker-compose.yml file, replace the version number with 2.1.3. ```diff version: '3.8' services: app: - image: ghcr.io/datasharingframework/bpe:1.9.0 -+ image: ghcr.io/datasharingframework/bpe:2.1.1 ++ image: ghcr.io/datasharingframework/bpe:2.1.3 restart: on-failure ... environment: @@ -3056,12 +2961,12 @@ The environment variable `DEV_DSF_FHIR_SERVER_ORGANIZATION_THUMBPRINT` does not ``` 5. Verify your upgrade: - * Verify the DSF FHIR server is running in version 2.1.1. The log should contain a message: - `INFO main - BuildInfoReaderImpl.logBuildInfo(137) | Artifact: dsf-fhir-server-jetty, version: 2.1.1, [...]` + * Verify the DSF FHIR server is running in version 2.1.3. The log should contain a message: + `INFO main - BuildInfoReaderImpl.logBuildInfo(137) | Artifact: dsf-fhir-server-jetty, version: 2.1.3, [...]` * Verify the DSF FHIR server started without errors * Verify the DSF FHIR server is accessible via https, for example by browsing to https://your-dsf-endpoint.de/fhir/ (authentication with your client-certificate) - * Verify the DSF BPE server is running in version 2.1.1. The log should contain a message: - `INFO main - BuildInfoReaderImpl.logBuildInfo(137) | Artifact: dsf-bpe-server-jetty, version: 2.1.1, [...]` + * Verify the DSF BPE server is running in version 2.1.3. The log should contain a message: + `INFO main - BuildInfoReaderImpl.logBuildInfo(137) | Artifact: dsf-bpe-server-jetty, version: 2.1.3, [...]` * Verify the DSF BPE server started without errors * Verify your install with a ping/pong test @@ -3188,7 +3093,7 @@ Once you have ensured that DSF is working successfully with the new database, yo ## Upgrade within DSF v2 Source: https://dsf.dev/operations/latest/upgrade-from-2.html -Upgrading the DSF from 2.1.0 to 2.1.1 involves modifying the image versions in the docker-compose.yml files and recreating the containers. +Upgrading the DSF from 2.1.2 to 2.1.3 involves modifying the image versions in the docker-compose.yml files and recreating the containers. DSF 2 was designed to run DSF 1 (APIv1) process plugins, but due to stricter validation rules in DSF 2 we strongly recommend using the latest compatible plugin versions. Updates within the same major and minor version (e.g., from 1.2.3.4 to 1.2.9.9) are generally safe. An overview of the recommended MII/NUM versions can be found [here](./install-plugins.md). @@ -3197,19 +3102,19 @@ If you have installed the NUM Dashboard Process Plugin, you can [remove the work ## Modify DSF FHIR Server Setup 1. Preparation / Backup * We recommend to create a backup of the `/opt/fhir` directory before proceeding with the upgrade. - For example using: `sudo cp -rp /opt/fhir /opt/fhir_backup_pre_2.1.1_upgrade` + For example using: `sudo cp -rp /opt/fhir /opt/fhir_backup_pre_2.1.3_upgrade` -2. Modify the DSF FHIR docker-compose.yml file, replace the version number with 2.1.1. +2. Modify the DSF FHIR docker-compose.yml file, replace the version number with 2.1.3. ```diff services: proxy: -- image: ghcr.io/datasharingframework/fhir_proxy:2.1.0 -+ image: ghcr.io/datasharingframework/fhir_proxy:2.1.1 +- image: ghcr.io/datasharingframework/fhir_proxy:2.1.2 ++ image: ghcr.io/datasharingframework/fhir_proxy:2.1.3 restart: on-failure ... app: -- image: ghcr.io/datasharingframework/fhir:2.1.0 -+ image: ghcr.io/datasharingframework/fhir:2.1.1 +- image: ghcr.io/datasharingframework/fhir:2.1.2 ++ image: ghcr.io/datasharingframework/fhir:2.1.3 restart: on-failure ... ``` @@ -3223,14 +3128,14 @@ If you have installed the NUM Dashboard Process Plugin, you can [remove the work ## Modify DSF BPE Server Setup 1. Preparation / Backup * We recommend to create a backup of the `/opt/bpe` directory before proceeding with the upgrade. - For example using: `sudo cp -rp /opt/bpe /opt/bpe_backup_pre_2.1.1_upgrade` + For example using: `sudo cp -rp /opt/bpe /opt/bpe_backup_pre_2.1.3_upgrade` -2. Modify the DSF BPE docker-compose.yml file, replace the version number with 2.1.1. +2. Modify the DSF BPE docker-compose.yml file, replace the version number with 2.1.3. ```diff services: app: -- image: ghcr.io/datasharingframework/bpe:2.1.0 -+ image: ghcr.io/datasharingframework/bpe:2.1.1 +- image: ghcr.io/datasharingframework/bpe:2.1.2 ++ image: ghcr.io/datasharingframework/bpe:2.1.3 restart: on-failure ... ``` @@ -3242,12 +3147,12 @@ If you have installed the NUM Dashboard Process Plugin, you can [remove the work ``` 5. Verify your upgrade: - * Verify the DSF FHIR server is running in version 2.1.1. The log should contain a message: - `INFO main - BuildInfoReaderImpl.logBuildInfo(160) | Artifact: dsf-fhir-server-jetty, version: 2.1.1, [...]` + * Verify the DSF FHIR server is running in version 2.1.3. The log should contain a message: + `INFO main - BuildInfoReaderImpl.logBuildInfo(160) | Artifact: dsf-fhir-server-jetty, version: 2.1.3, [...]` * Verify the DSF FHIR server started without errors * Verify the DSF FHIR server is accessible via https, for example by browsing to https://your-dsf-endpoint.de/fhir/ (authentication with your client-certificate) - * Verify the DSF BPE server is running in version 2.1.1. The log should contain a message: - `INFO main - BuildInfoReaderImpl.logBuildInfo(160) | Artifact: dsf-bpe-server-jetty, version: 2.1.1, [...]` + * Verify the DSF BPE server is running in version 2.1.3. The log should contain a message: + `INFO main - BuildInfoReaderImpl.logBuildInfo(160) | Artifact: dsf-bpe-server-jetty, version: 2.1.3, [...]` * Verify the DSF BPE server started without errors * Verify your install with a ping/pong test @@ -3634,9 +3539,13 @@ This HTTP status code may be a result of an allow list mismatch. Either the requ # 403 Forbidden This HTTP status code may be encountered in different ways in the context of the DSF: -- Process plugin is not installed at FHIR server where the Task resource was posted +- Requesting instance is not in recipient's allow list +- Process is not installed by the recipient of the Task resource - Client certificate of the FHIR server where the Task resource was posted is invalid e.g. because it is expired +# 407 Proxy Authentication Required +A proxy server between the requester and receiver denied the request because of invalid authentication credentials for the proxy. + # 413 Content Too Large This HTTP status code is a result of trying to upload a resource that is too large for the server to handle. This might be due to a misconfiguration of the DSF FHIR server's reverse proxy not allowing this much data to be uploaded. @@ -3646,6 +3555,10 @@ This HTTP status may be a result of a connection timeout if a forward proxy is u # 502 Bad Gateway This HTTP status code is usually the response of a proxy because the upstream server sent an invalid response. +# 503 Service Unavailable +This HTTP status code might be the result of the target server being temporarily unavailable e.g. because of maintenance. +Some (forward) proxies might also respond with this status when they cannot establish a connection to the target server. + # 504 Gateway Timeout This HTTP status code is usually the response of a proxy because the upstream server did not send a response in time. @@ -6074,10 +5987,12 @@ A comprehensive linting tool for DSF (Data Sharing Framework) process plugins. V 2. [Quick Start](#quick-start) 3. [Installation](#installation) 4. [Usage](#usage) -5. [CLI Options](#cli-options) -6. [Report Generation](#report-generation) -7. [Architecture](#architecture) -8. [API Reference](#api-reference) +5. [Maven Plugin Integration](#maven-plugin-integration) +6. [CLI Options](#cli-options) +7. [Exclusion Rules](#exclusion-rules) +8. [Report Generation](#report-generation) +9. [Architecture](#architecture) +10. [API Reference](#api-reference) ## Overview @@ -6098,6 +6013,8 @@ The DSF Linter is a static analysis tool designed to validate DSF process plugin - ✅ CI/CD integration ready - ✅ Comprehensive error reporting with severity levels - ✅ Extensible architecture for custom validation rules +- ✅ Configurable exclusion rules (`dsf-linter-exclusions.json`) for CLI and Maven +- ✅ Maven plugin integration (`dsf-maven-plugin:lint`) via `linter-core` dependency in DSF ### What is DSF? @@ -6109,67 +6026,83 @@ The Data Sharing Framework (DSF) is a framework for implementing interoperable h ## Quick Start -### Build the Project +### Option A: Maven plugin (recommended for process plugin projects) -```bash -# Full build with tests -mvn clean package +DSF ships `dsf-maven-plugin` with a `lint` goal that depends on `dev.dsf.linter:linter-core` **0.1.3**. Bind the goal to validate the built plugin JAR during `verify` / `install`: -# Skip tests for faster build -mvn clean package -DskipTests +```xml + + dev.dsf + dsf-maven-plugin + + + lint-plugin + + lint + + + + +``` -# Verbose output -mvn clean package -X +```bash +mvn verify +# or directly: +mvn dsf-maven-plugin:lint ``` -### Basic Usage +Details: [Maven Plugin Integration](#maven-plugin-integration). + +### Option B: Download pre-built CLI JAR + +Download the latest `linter-cli-0.1.3.jar` from the [GitHub Releases page](https://github.com/datasharingframework/dsf-linter/releases) and run: ```bash # Lint a local JAR file -java -jar linter-cli/target/linter-cli-0.1.2.jar \ - --path your-plugin.jar --html +java -jar linter-cli-0.1.3.jar --path your-plugin.jar --html # Lint a remote JAR file -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli-0.1.3.jar \ --path https://github.com/datasharingframework/dsf-process-ping-pong/releases/download/v2.0.0.1/dsf-process-ping-pong-2.0.0.1.jar --html -# View report at: /tmp/dsf-linter-report-/dsf-linter-report/index.html +# View report at: /tmp/dsf-linter-report-/dsf-linter-report/report.html ``` -## Installation - -### Requirements - -- **Java**: 17 or higher (Java 25+ required for API Version 2 validation) -- **Maven**: 3.6 or higher -- **Operating System**: Windows, Linux, or macOS - -### Building from Source +### Option C: Build CLI from source ```bash -# Clone the repository -git clone +git clone https://github.com/datasharingframework/dsf-linter.git cd dsf-linter - -# Build the project mvn clean package -# The executable JAR will be at: -# linter-cli/target/linter-cli-0.1.2.jar +java -jar linter-cli/target/linter-cli-0.1.3.jar --path your-plugin.jar --html ``` +## Installation + +### Requirements + +- **Java**: 25 or higher (required to build and run the linter) +- **Maven**: 3.6 or higher (only when building from source or using the Maven plugin) +- **Operating System**: Windows, Linux, or macOS + +> **Note:** DSF API v1 and v2 refer to the **plugin target API**, not the JVM version. The linter itself requires Java 25. + ### Distribution -The linter is distributed as a single executable JAR file that includes all dependencies. After building, the JAR can be used standalone: +| Artifact | Use case | +|----------|----------| +| `dev.dsf.linter:linter-core:0.1.3` (Maven Central) | Consumed by DSF `dsf-maven-plugin` for the `lint` goal | +| `linter-cli-0.1.3.jar` ([GitHub Releases](https://github.com/datasharingframework/dsf-linter/releases)) | Standalone executable CLI (all dependencies shaded) | ```bash -# Copy to a convenient location -cp linter-cli/target/linter-cli-0.1.2.jar ~/bin/dsf-linter.jar - -# Use from anywhere +# CLI: copy to a convenient location +cp linter-cli-0.1.3.jar ~/bin/dsf-linter.jar java -jar ~/bin/dsf-linter.jar --path plugin.jar --html ``` +Process plugin projects should prefer the Maven goal; the CLI remains useful for ad-hoc linting of local or remote JARs. + ## Usage ### Input Types @@ -6216,11 +6149,11 @@ plugin.jar ```bash # Local JAR file -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli/target/linter-cli-0.1.3.jar \ --path C:\path\to\plugin.jar --html # Remote JAR file -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli/target/linter-cli-0.1.3.jar \ --path https://github.com/datasharingframework/dsf-process-ping-pong/releases/download/v2.0.0.1/dsf-process-ping-pong-2.0.0.1.jar --html ``` @@ -6228,11 +6161,11 @@ java -jar linter-cli/target/linter-cli-0.1.2.jar \ ```bash # Multiple report formats with custom path -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli/target/linter-cli-0.1.3.jar \ --path plugin.jar --html --json --report-path ./reports # Verbose output (colors enabled by default, use --no-color to disable) -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli/target/linter-cli-0.1.3.jar \ --path plugin.jar --html --verbose # Lint Maven project (two-step process) @@ -6240,7 +6173,7 @@ java -jar linter-cli/target/linter-cli-0.1.2.jar \ cd /path/to/project && mvn clean package # Step 2: Lint the resulting JAR -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli/target/linter-cli-0.1.3.jar \ --path /path/to/project/target/my-plugin-1.0.0.jar --html ``` @@ -6248,19 +6181,100 @@ java -jar linter-cli/target/linter-cli-0.1.2.jar \ ```bash # GitHub Actions / GitLab CI -FORCE_COLOR=1 java -jar linter-cli/target/linter-cli-0.1.2.jar \ +FORCE_COLOR=1 java -jar linter-cli/target/linter-cli-0.1.3.jar \ --path plugin.jar --html --json --verbose # Jenkins (fail on errors) -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli/target/linter-cli-0.1.3.jar \ --path plugin.jar --html # Exit code: 0 = success, 1 = errors # Don't fail build (gradual adoption) -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli/target/linter-cli-0.1.3.jar \ --path plugin.jar --html --no-fail ``` +## Maven Plugin Integration + +The DSF Maven plugin (`dsf-maven-plugin`) integrates the linter into the Maven build lifecycle. This is the **recommended approach** for DSF process plugin projects: it validates the **built plugin JAR** automatically, fails the build on ERROR findings by default, and supports **exclusion rules** out of the box. + +**How it is wired:** DSF declares `dev.dsf.linter:linter-core` (**0.1.3**) as a dependency of `dsf-maven-plugin`. The `lint` goal (`LintPluginMojo`, default phase `verify`) resolves `${project.build.directory}/${project.build.finalName}.jar`, runs `DsfLinter`, and writes reports under `target/dsf-linter-report` by default. + +### Enable in `pom.xml` + +```xml + + dev.dsf + dsf-maven-plugin + + + lint-plugin + + lint + + + + +``` + +### Run + +The `lint` goal runs automatically during: + +- `mvn verify` +- `mvn install` +- `mvn deploy` + +Or invoke it directly: + +```bash +mvn dsf-maven-plugin:lint +``` + +### Maven Parameters + +| Property | Default | Description | +|----------|---------|-------------| +| `dsf.lint.skip` | `false` | Skip linting entirely | +| `dsf.lint.failOnErrors` | `true` | Fail the build when ERROR-severity findings exist | +| `dsf.lint.html` | `false` | Generate HTML report | +| `dsf.lint.json` | `false` | Generate JSON report | +| `dsf.lint.verbose` | `false` | Enable verbose logging | +| `dsf.lint.reportPath` | `target/dsf-linter-report` | Report output directory | +| `dsf.lint.exclusionsFile` | *(auto-discover)* | Path to exclusion JSON file | + +**Examples:** + +```bash +# Lint with HTML report, do not fail build +mvn verify -Ddsf.lint.html=true -Ddsf.lint.failOnErrors=false + +# Use explicit exclusion file +mvn verify -Ddsf.lint.exclusionsFile=ci/dsf-linter-exclusions.json +``` + +### Permanent configuration in `pom.xml` + +```xml + + dev.dsf + dsf-maven-plugin + + true + ${project.build.directory}/dsf-linter-report + ${project.basedir}/dsf-linter-exclusions.json + + + + lint-plugin + lint + + + +``` + +Exclusion file format and rule semantics are described in [Exclusion Rules](#exclusion-rules). + ## CLI Options | Option | Short | Description | Required | @@ -6269,12 +6283,15 @@ java -jar linter-cli/target/linter-cli-0.1.2.jar \ | `--html` | | Generate HTML report | No | | `--json` | | Generate JSON report | No | | `--report-path ` | `-r` | Custom report directory (default: `/dsf-linter-report-/dsf-linter-report`) | No | +| `--exclusions ` | | Path to a JSON exclusion config (see [Exclusion Rules](#exclusion-rules)) | No | | `--verbose` | `-v` | Enable verbose logging output | No | | `--no-color` | | Disable colored console output (default: enabled) | No | | `--no-fail` | | Exit with code 0 even if linter errors are found | No | | `--help` | `-h` | Display help message | No | | `--version` | | Display version information | No | +When `--exclusions` is omitted, the CLI auto-discovers `dsf-linter-exclusions.json` in the project/extracted root if present. + ### Environment Variables | Variable | Effect | @@ -6292,6 +6309,90 @@ java -jar linter-cli/target/linter-cli-0.1.2.jar \ | 1 | Failure (errors found, or fatal error occurred) | +## Exclusion Rules + +The exclusion feature allows you to suppress specific lint findings from reports and optionally from the build/CLI exit status. This is useful for accepting known issues, ignoring findings in legacy files, or gradually rolling out stricter linting rules. + +**Where exclusions are supported (v0.1.3):** + +| Integration | How to configure | +|-------------|------------------| +| `dsf-maven-plugin:lint` | `-Ddsf.lint.exclusionsFile=...` or auto-discovery of `dsf-linter-exclusions.json` | +| Standalone CLI | `--exclusions ` or auto-discovery of `dsf-linter-exclusions.json` | + +### Configuration File + +Exclusion rules are defined in a JSON file named `dsf-linter-exclusions.json`. When no explicit path is set, the loader auto-discovers that file in the **resolved project root** (extracted JAR contents). Explicit configuration always wins and is the reliable choice for Maven module roots that are not packaged into the JAR: + +```bash +# CLI +java -jar linter-cli-0.1.3.jar --path plugin.jar --html \ + --exclusions path/to/dsf-linter-exclusions.json + +# Maven (recommended: point at the module basedir) +mvn verify -Ddsf.lint.exclusionsFile=${project.basedir}/dsf-linter-exclusions.json +``` + + +```json +{ + "affectsExitStatus": false, + "rules": [ + { "type": "BPMN_PROCESS_HISTORY_TIME_TO_LIVE_MISSING" }, + { "severity": "WARN", "file": "update-allow-list.bpmn" }, + { "messageContains": "optional field" } + ] +} +``` + +### Top-Level Fields + +| Field | Type | Default | Description | +|-------|------|---------|-------------| +| `affectsExitStatus` | `boolean` | `false` | When `false`, excluded items are fully suppressed — they do not contribute to error/warning counts or the exit code. When `true`, items are hidden from reports but still count toward the exit status. | +| `rules` | `array` | `[]` | List of exclusion rules. An item is excluded if it matches **any** rule. | + +### Rule Fields + +All fields within a single rule are **AND-combined** — all specified criteria must match for the item to be suppressed. Multiple rules are **OR-combined**. + +| Field | Match Semantics | Example | +|-------|-----------------|---------| +| `type` | Exact, case-insensitive match against the lint item's `LintingType` name | `"BPMN_PROCESS_HISTORY_TIME_TO_LIVE_MISSING"` | +| `severity` | Exact, case-insensitive match against `LinterSeverity` name | `"WARN"`, `"ERROR"`, `"INFO"` | +| `file` | Case-insensitive **substring** match against the item's file name | `"update-allow-list.bpmn"` | +| `messageContains` | Case-insensitive **substring** match against the item's message | `"optional field"` | + +Each rule must have **at least one** non-blank field. An empty rule is rejected. + +### Examples + +```json +{ + "affectsExitStatus": false, + "rules": [ + { "type": "BPMN_PROCESS_HISTORY_TIME_TO_LIVE_MISSING" }, + + { "severity": "WARN", "file": "legacy-process.bpmn" }, + + { "messageContains": "optional field" }, + + { "type": "BPMN_END_EVENT_NOT_PART_OF_SUB_PROCESS", "file": "subprocess.bpmn" } + ] +} +``` + +### Using Exclusions in CI/CD + +```bash +# Maven plugin with explicit exclusion file +mvn verify -Ddsf.lint.exclusionsFile=ci-exclusions.json -Ddsf.lint.html=true + +# Standalone CLI with exclusions +java -jar linter-cli-0.1.3.jar --path plugin.jar --html --json \ + --exclusions ci-exclusions.json +``` + ## Report Generation ### Report Structure @@ -6300,18 +6401,22 @@ Reports are generated in the following structure: ``` / -├── index.html # Summary report (all plugins) -├── plugin-name.html # Detailed report for each plugin -└── plugin-name.json # JSON report (if --json specified) +├── report.html # Master summary report (all plugins) +├── report.json # Master JSON report (if --json specified) +└── / + ├── lints.html # Detailed HTML report for the plugin + └── lints.json # Detailed JSON report (if --json specified) ``` The default `` resolves to `/dsf-linter-report-/dsf-linter-report`, for example: ``` /tmp/dsf-linter-report-my-plugin/dsf-linter-report/ -├── index.html -├── my-plugin.html -└── my-plugin.json +├── report.html +├── report.json +└── my-plugin/ + ├── lints.html + └── lints.json ``` Use `--report-path` to override this location. @@ -6320,136 +6425,156 @@ Use `--report-path` to override this location. The HTML report provides a comprehensive, human-readable view of all linting results. -#### Summary Page (`index.html`) +#### Master Report (`report.html`) -The summary page includes: +The master report includes: - **Header**: - - DSF Linter version - - Execution timestamp - - Project path + - DSF Linter version + - Execution timestamp + - Project path - **Overall Statistics**: - - Total number of plugins - - Total errors - - Total warnings - - Execution time + - Total number of plugins + - Total errors, warnings, info, and success counts + - Resource discovery summary - **Plugin Summary Table**: - - Plugin name - - API version - - Error count - - Warning count - - Link to detailed report + - Plugin name + - API version + - Error and warning counts + - Link to per-plugin report (`/lints.html`) - **Leftover Resource Summary**: - - Unreferenced BPMN files - - Unreferenced FHIR resources + - Unreferenced BPMN files + - Unreferenced FHIR resources -#### Plugin Report (`plugin-name.html`) +- **Source navigation** (v0.1.3+): + - Embedded BPMN and FHIR source files + - Source viewer modal with highlighting of the affected location + - Jump from a finding to the corresponding source context + +#### Plugin Report (`/lints.html`) Each plugin has a detailed report page containing: - **Plugin Metadata**: - - Plugin name - - Plugin class name - - API version (v1 or v2) + - Plugin name + - Plugin class name + - API version (v1 or v2) - **BPMN Validation Results**: - - List of all BPMN files - - Errors and warnings per file - - Detailed error messages with file and line references + - List of all BPMN files + - Errors and warnings per file + - Detailed error messages with file and line references - **FHIR Validation Results**: - - List of all FHIR resources by type - - Errors and warnings per resource - - Detailed error messages with element paths + - List of all FHIR resources by type + - Errors and warnings per resource + - Detailed error messages with element paths - **Plugin Configuration Results**: - - ServiceLoader registration status - - Resource reference validation results + - ServiceLoader registration status + - Resource reference validation results - **Leftover Resource Analysis**: - - Unreferenced BPMN files - - Unreferenced FHIR resources + - Unreferenced BPMN files + - Unreferenced FHIR resources - **Severity Indicators**: - - Color-coded severity levels (ERROR, WARNING, INFO, SUCCESS) - - Expandable/collapsible sections + - Color-coded severity levels (ERROR, WARN, INFO, SUCCESS) + - Expandable/collapsible sections + - Back link to master report (`report.html`) ### JSON Report The JSON report provides machine-readable output for CI/CD integration and automated processing. -#### Structure +#### Master Report Structure (`report.json`) ```json { - "version": "0.1.1", - "timestamp": "2025-06-15T10:30:00Z", - "projectPath": "/path/to/plugin.jar", - "executionTimeMs": 2300, - "success": true, + "projectName": "my-plugin.jar", + "projectPath": "/path/to/my-plugin.jar", + "timestamp": "2026-06-15T10:30:00Z", "summary": { "totalPlugins": 1, "totalErrors": 0, "totalWarnings": 1, - "totalLeftoverBpmn": 0, - "totalLeftoverFhir": 0 + "totalInfos": 0, + "totalSuccesses": 42 + }, + "discovery": { + "bpmnFilesFound": 2, + "fhirFilesFound": 15, + "missingBpmn": 0, + "missingFhir": 0 }, - "plugins": { - "plugin-name": { - "name": "plugin-name", - "class": "dev.dsf.bpe.plugin.ExamplePlugin", + "leftoverAnalysis": { + "totalLeftovers": 0, + "leftoverBpmn": [], + "leftoverFhir": [] + }, + "plugins": [ + { + "pluginName": "my-plugin", + "pluginClass": "dev.dsf.bpe.plugin.ExamplePlugin", "apiVersion": "V1", - "errors": 0, - "warnings": 1, - "bpmnFiles": [ - { - "path": "bpe/process.bpmn", - "errors": 0, - "warnings": 1, - "items": [...] - } - ], - "fhirResources": { - "ActivityDefinition": [...], - "Task": [...], - "StructureDefinition": [...] - }, - "pluginConfig": { - "serviceLoaderRegistered": true, - "items": [...] - } + "errorCount": 0, + "warningCount": 1, + "reportPath": "./my-plugin/lints.json" } + ] +} +``` + +#### Plugin Report Structure (`/lints.json`) + +```json +{ + "pluginName": "my-plugin", + "pluginClass": "dev.dsf.bpe.plugin.ExamplePlugin", + "apiVersion": "V1", + "timestamp": "2026-06-15T10:30:00Z", + "summary": { + "errorCount": 0, + "warningCount": 1, + "infoCount": 0, + "successCount": 42, + "totalItems": 43 }, - "leftoverAnalysis": { - "unreferencedBpmn": [], - "unreferencedFhir": [] + "items": { + "ERROR": [], + "WARN": [ { "...": "..." } ], + "INFO": [], + "SUCCESS": [ { "...": "..." } ] } } ``` #### Lint Item Structure -Each lint item in the JSON report has the following structure: +Each lint item in the JSON report has the following structure (fields vary by item type): ```json { - "severity": "ERROR", - "type": "BpmnServiceTaskNameEmptyLintItem", - "message": "Service task must have a non-empty name", - "file": "bpe/process.bpmn", - "element": "ServiceTask_1", - "line": 42, - "column": 10 + "severity": "WARN", + "type": "BpmnElementLintItem", + "elementId": "ServiceTask_1", + "processId": "testorg_myprocess", + "description": "Service task name is empty.", + "bpmnFile": "bpe/process.bpmn", + "issueType": "BPMN_SERVICE_TASK_NAME_EMPTY", + "fullMessage": "..." } ``` +`BPMN_FLOW_ELEMENT` items additionally include `flowElementType` (the sequence-flow subtype, e.g. `SEQUENCE_FLOW_HAS_NO_SOURCE_NODE`). + ### Example Console Output ``` -DSF Linter v0.1.1 +DSF Linter v0.1.3 ================================================================= Project: /path/to/plugin.jar Report: /tmp/dsf-linter-report-plugin/dsf-linter-report @@ -6473,7 +6598,7 @@ Phase 3: Linting Phase 4: Report Generation ✓ HTML report generated -Summary +Phase 5: Summary ================================================================= ✓ SUCCESS - No errors found Plugins: 1 @@ -6489,11 +6614,16 @@ Summary ``` dsf-linter/ -├── linter-core/ # Core linting logic +├── linter-core/ # Core linting logic (Maven artifact: linter-core) │ ├── src/main/java/dev/dsf/linter/ │ │ ├── DsfLinter.java # Main orchestrator │ │ ├── analysis/ # Resource analysis │ │ │ └── LeftoverResourceDetector.java +│ │ ├── exclusion/ # Exclusion config & filter +│ │ │ ├── ExclusionConfig.java +│ │ │ ├── ExclusionConfigLoader.java +│ │ │ ├── ExclusionFilter.java +│ │ │ └── ExclusionRule.java │ │ ├── bpmn/ # BPMN parsing & validation │ │ │ ├── BpmnLinter.java │ │ │ ├── BpmnModelLinter.java @@ -6652,6 +6782,8 @@ dsf-linter/ | `InputResolver` | Resolves and downloads remote JAR files | | `BpmnModelLinter` | Validates BPMN model structure and elements | | `FhirResourceLinter` | Validates FHIR resources using pluggable linters | +| `ExclusionConfigLoader` / `ExclusionFilter` | Loads `dsf-linter-exclusions.json` and filters matched findings (CLI + Maven) | +| `SpringConfigurationLinter` | Validates Spring `@Bean` / `ActivityPrototypeBeanCreator` registration and bean scope | ### Design Patterns @@ -6696,6 +6828,7 @@ DsfLinter.Config config = new DsfLinter.Config( generateHtmlReport, generateJsonReport, failOnErrors, + exclusionConfig, // nullable — null means no exclusions logger ); @@ -6703,16 +6836,19 @@ DsfLinter linter = new DsfLinter(config); DsfLinter.OverallLinterResult result = linter.lint(); ``` +A backward-compatible constructor without `exclusionConfig` still exists (passes `null`). + #### `DsfLinter.Config` Configuration record for the linter. **Fields**: -- `Path projectPath`: Path to the project root +- `Path projectPath`: Path to the project root (extracted JAR directory) - `Path reportPath`: Path for report generation - `boolean generateHtmlReport`: Whether to generate HTML report - `boolean generateJsonReport`: Whether to generate JSON report - `boolean failOnErrors`: Whether to fail on errors +- `ExclusionConfig exclusionConfig`: Optional exclusion rules (`null` = none) - `Logger logger`: Logger instance #### `DsfLinter.OverallLinterResult` @@ -6724,7 +6860,7 @@ Result record containing all linting results. - `LeftoverResourceDetector.AnalysisResult leftoverAnalysis`: Leftover resource analysis - `Path masterReportPath`: Path to master report - `long executionTimeMs`: Execution time in milliseconds -- `boolean success`: Whether linting succeeded +- `boolean success`: Whether linting succeeded (`false` only when `failOnErrors` is set and errors remain after exclusions) **Methods**: - `int getPluginErrors()`: Total error count from plugins @@ -6740,9 +6876,13 @@ Linting result for a single plugin. - `String pluginName`: Name of the plugin - `String pluginClass`: Fully qualified class name - `ApiVersion apiVersion`: DSF API version (V1 or V2) -- `LintingOutput output`: Detailed linting output +- `LintingOutput output`: Detailed linting output **after** exclusions have been applied +- `int excludedErrorCount`: Number of ERROR items suppressed by exclusion rules - `Path reportPath`: Path to generated report +### No plugin found + +If no `ProcessPluginDefinition` is discovered (empty/broken JAR, missing or invalid `META-INF/services` registration), the linter does **not** abort. It emits ERROR `PLUGIN_DEFINITION_NO_PLUGIN_FOUND`, still writes the regular HTML/JSON reports, and sets `success = !failOnErrors` (CLI: exit 1 by default, exit 0 with `--no-fail`). ### Linting Services #### `BpmnLintingService` @@ -6803,9 +6943,11 @@ LintingResult lintPlugin( PluginAdapter pluginAdapter, ApiVersion apiVersion, List collectedPluginItems -) throws MissingServiceRegistrationException +) ``` +Missing or invalid ServiceLoader registrations are reported as ERROR lint items (e.g. `PLUGIN_DEFINITION_MISSING_SERVICE_LOADER_REGISTRATION`, `PLUGIN_DEFINITION_NO_PLUGIN_FOUND`) rather than aborting the run. + ### Lint Items All lint items extend `AbstractLintItem` and implement specific interfaces. @@ -6820,7 +6962,7 @@ All lint items extend `AbstractLintItem` and implement specific interfaces. #### Severity Levels - `ERROR`: Critical issue that **must be fixed**. Will cause the plugin to fail at deployment or runtime. -- `WARNING`: Violation of DSF best practices, or something that **could be an error depending on context**. +- `WARN`: Violation of DSF best practices, or something that **could be an error depending on context**. - `INFO`: Technically valid, but something looks unusual or incomplete. Worth a second look — no immediate action required. - `SUCCESS`: Validation passed. Shown to confirm what was checked and give confidence in the covered areas. @@ -6868,6 +7010,13 @@ Discovers plugins and resources. DiscoveryResult discover(ProjectContext context) ``` +### Exclusion Configuration + +Exclusion rules are configured via `dsf-linter-exclusions.json` (or an explicit path). See [Exclusion Rules](#exclusion-rules) for the file format. + +- Maven: `dsf.lint.exclusionsFile` / auto-discovery +- CLI: `--exclusions` / auto-discovery + --- ## Validation Rules @@ -6897,23 +7046,23 @@ The linter performs comprehensive validation on BPMN 2.0 process definitions usi ##### Process ID Pattern Validation - **Pattern Requirement**: - - Process ID must follow the pattern: `domain_processname` - - Domain and process name must consist only of alphanumeric characters (a-z, A-Z, 0-9) and hyphens (-) - - Exactly one underscore must separate domain and process name - - Error: `BPMN_PROCESS_ID_PATTERN_MISMATCH` - - Error: `BPMN_PROCESS_ID_EMPTY` - - Success: `SUCCESS` when the pattern is matched + - Process ID must follow the pattern: `domain_processname` + - Domain and process name must consist only of alphanumeric characters (a-z, A-Z, 0-9) and hyphens (-) + - Exactly one underscore must separate domain and process name + - Error: `BPMN_PROCESS_ID_PATTERN_MISMATCH` + - Error: `BPMN_PROCESS_ID_EMPTY` + - Success: `SUCCESS` when the pattern is matched - **Valid Examples**: - - ✅ `testorg_myprocess` - - ✅ `dsf-dev_download-allowlist` - - ✅ `example123_process456` + - ✅ `testorg_myprocess` + - ✅ `dsf-dev_download-allowlist` + - ✅ `example123_process456` - **Invalid Examples**: - - ❌ `myProcess` (missing underscore) - - ❌ `test.org_myprocess` (dots not allowed) - - ❌ `test_my_process` (multiple underscores not allowed) - - ❌ `test_process_name` (only one underscore allowed) + - ❌ `myProcess` (missing underscore) + - ❌ `test.org_myprocess` (dots not allowed) + - ❌ `test_my_process` (multiple underscores not allowed) + - ❌ `test_process_name` (only one underscore allowed) - **Pattern Definition**: ```regex @@ -6921,88 +7070,107 @@ The linter performs comprehensive validation on BPMN 2.0 process definitions usi ``` - **DSF Framework Reference**: - - This validation is based on the DSF Framework requirement defined in: - - `dsf-bpe/dsf-bpe-process-api/src/main/java/dev/dsf/bpe/api/plugin/AbstractProcessPlugin.java` + - This validation is based on the DSF Framework requirement defined in: + - `dsf-bpe/dsf-bpe-process-api/src/main/java/dev/dsf/bpe/api/plugin/AbstractProcessPlugin.java` ##### Process Count Validation - **Requirement**: - - Each BPMN file must contain **exactly one** process definition - - Error: `BPMN_FILE_NO_PROCESS` (when no process is found) - - Error: `BPMN_FILE_MULTIPLE_PROCESSES` (when more than one process is found) - - Success: `SUCCESS` when exactly one process is found + - Each BPMN file must contain **exactly one** process definition + - Error: `BPMN_FILE_NO_PROCESS` (when no process is found) + - Error: `BPMN_FILE_MULTIPLE_PROCESSES` (when more than one process is found) + - Success: `SUCCESS` when exactly one process is found - **Valid Examples**: - - ✅ BPMN file with 1 process definition + - ✅ BPMN file with 1 process definition - **Invalid Examples**: - - ❌ BPMN file with 0 process definitions - - ❌ BPMN file with 2 or more process definitions + - ❌ BPMN file with 0 process definitions + - ❌ BPMN file with 2 or more process definitions - **DSF Framework Reference**: - - This validation is based on the DSF Framework requirement defined in: - - `dsf-bpe/dsf-bpe-process-api/src/main/java/dev/dsf/bpe/api/plugin/AbstractProcessPlugin.java` - - DSF validates: `if (processes.size() != 1) { return false; }` + - This validation is based on the DSF Framework requirement defined in: + - `dsf-bpe/dsf-bpe-process-api/src/main/java/dev/dsf/bpe/api/plugin/AbstractProcessPlugin.java` + - DSF validates: `if (processes.size() != 1) { return false; }` ##### Process History Time To Live Validation - **Requirement**: - - Process should have `camunda:historyTimeToLive` attribute set - - If not set (null or empty), DSF automatically uses default value `P30D` (30 days) - - Warning: `BPMN_PROCESS_HISTORY_TIME_TO_LIVE_MISSING` - - Success: `SUCCESS` when historyTimeToLive is explicitly set + - Process should have `camunda:historyTimeToLive` attribute set + - If not set (null or empty), DSF automatically uses default value `P30D` (30 days) + - Warning: `BPMN_PROCESS_HISTORY_TIME_TO_LIVE_MISSING` + - Success: `SUCCESS` when historyTimeToLive is explicitly set - **Valid Examples**: - - ✅ `` - - ✅ `` + - ✅ `` + - ✅ `` - **Warning Example**: - - ⚠️ `` (no historyTimeToLive attribute) + - ⚠️ `` (no historyTimeToLive attribute) - **DSF Framework Reference**: - - DSF Framework sets default at runtime if not specified: - - `process.setOperatonHistoryTimeToLiveString("P30D")` - - Best practice: Set explicitly in BPMN file + - DSF Framework sets default at runtime if not specified: + - `process.setOperatonHistoryTimeToLiveString("P30D")` + - Best practice: Set explicitly in BPMN file ##### Process Executable Validation - **Requirement**: - - Process must have `isExecutable="true"` attribute set - - Processes without this attribute cannot be deployed and executed by the process engine - - Error: `BPMN_PROCESS_NOT_EXECUTABLE` - - Success: `SUCCESS` when isExecutable is true + - Process must have `isExecutable="true"` attribute set + - Processes without this attribute cannot be deployed and executed by the process engine + - Error: `BPMN_PROCESS_NOT_EXECUTABLE` + - Success: `SUCCESS` when isExecutable is true - **Valid Examples**: - - ✅ `` + - ✅ `` - **Invalid Examples**: - - ❌ `` (no isExecutable attribute, defaults to false) - - ❌ `` + - ❌ `` (no isExecutable attribute, defaults to false) + - ❌ `` - **Reason**: - - The process engine only deploys and executes processes marked as executable - - Non-executable processes are typically used for documentation or as templates + - The process engine only deploys and executes processes marked as executable + - Non-executable processes are typically used for documentation or as templates + +##### Message Start Event Validation (Process Level) + +- **Requirement**: + - The process must have at least one **message** start event as a **direct child** of the `` element + - Start events inside `` elements are **not** counted + - Error: `BPMN_MESSAGE_START_EVENT_NOT_FOUND` (reported on the process ID when none is found) + - Success: `SUCCESS` when at least one message start event exists on process level + +- **Valid Examples**: + - ✅ Process with `` and `` as direct child of `` + - ✅ Subprocess with only a generic or message start event (does not satisfy the process-level requirement by itself) + +- **Invalid Examples**: + - ❌ Process with only a generic start event (no `messageEventDefinition`) + - ❌ Process with a message start event only inside a subprocess + +- **DSF Framework Reference**: + - DSF processes are started via incoming messages; see [DSF BPMN Messaging](https://dsf.dev/process-development/api-v2/bpmn/messaging.html) ##### Process Version Tag Validation - **Requirement**: - - Process must define `camunda:versionTag` - - Expected placeholder value in DSF process plugins: `#{version}` - - Error: `BPMN_PROCESS_VERSION_TAG_MISSING_OR_EMPTY` (missing, empty/blank, or literal `"null"`) - - Warning: `BPMN_PROCESS_VERSION_TAG_NO_PLACEHOLDER` (present but without `#{version}`) - - Success: `SUCCESS` when `camunda:versionTag` contains `#{version}` + - Process must define `camunda:versionTag` + - Expected placeholder value in DSF process plugins: `#{version}` + - Error: `BPMN_PROCESS_VERSION_TAG_MISSING_OR_EMPTY` (missing, empty/blank, or literal `"null"`) + - Warning: `BPMN_PROCESS_VERSION_TAG_NO_PLACEHOLDER` (present but without `#{version}`) + - Success: `SUCCESS` when `camunda:versionTag` contains `#{version}` - **Valid Example**: - - ✅ `` + - ✅ `` - **Error Examples**: - - ❌ `` (missing `camunda:versionTag`) - - ❌ `` (empty value) - - ❌ `` (literal `null`) + - ❌ `` (missing `camunda:versionTag`) + - ❌ `` (empty value) + - ❌ `` (literal `null`) - **Warning Examples**: - - ⚠️ `` - - ⚠️ `` + - ⚠️ `` + - ⚠️ `` #### Task Validation @@ -7010,375 +7178,321 @@ The linter performs comprehensive validation on BPMN 2.0 process definitions usi ##### Service Tasks - **Name Validation**: - - Task must have a non-empty name - - Error: `BPMN_SERVICE_TASK_NAME_EMPTY` + - Task must have a non-empty name + - Error: `BPMN_SERVICE_TASK_NAME_EMPTY` - **Implementation Class Validation**: - - `camunda:class` or `camunda:delegateExpression` must be specified - - Error: `BPMN_SERVICE_TASK_IMPLEMENTATION_NOT_EXIST` - - Error: `BPMN_SERVICE_TASK_IMPLEMENTATION_CLASS_EMPTY` - - Implementation class must exist in the classpath - - Error: `BPMN_SERVICE_TASK_IMPLEMENTATION_CLASS_NOT_FOUND` + - `camunda:class` or `camunda:delegateExpression` must be specified + - Error: `BPMN_SERVICE_TASK_IMPLEMENTATION_NOT_EXIST` + - Error: `BPMN_SERVICE_TASK_IMPLEMENTATION_CLASS_EMPTY` + - Implementation class must exist in the classpath + - Error: `BPMN_SERVICE_TASK_IMPLEMENTATION_CLASS_NOT_FOUND` - **API Version-Specific Requirements**: - - **V1 API**: - - Both checks are performed separately: - - Class must extend `dev.dsf.bpe.v1.activity.AbstractServiceDelegate` - - Error: `BPMN_SERVICE_TASK_IMPLEMENTATION_CLASS_NOT_EXTENDING_ABSTRACT_SERVICE_DELEGATE` (if not extending) - - Class must implement `org.camunda.bpm.engine.delegate.JavaDelegate` - - Error: `BPMN_SERVICE_TASK_IMPLEMENTATION_CLASS_NOT_IMPLEMENTING_JAVA_DELEGATE` (if not implementing) - - Note: Both conditions are checked independently. A class should ideally satisfy both, but the linter reports separate errors for each missing requirement. - - **V2 API**: - - Class must implement `dev.dsf.bpe.v2.activity.ServiceTask` - - Error: `BPMN_SERVICE_TASK_NO_INTERFACE_CLASS_IMPLEMENTING` + - **V1 API** (both checks are independent): + - Class should extend `dev.dsf.bpe.v1.activity.AbstractServiceDelegate` + - Warning: `BPMN_SERVICE_TASK_IMPLEMENTATION_CLASS_NOT_EXTENDING_ABSTRACT_SERVICE_DELEGATE` (if not extending) + - Class must implement `org.camunda.bpm.engine.delegate.JavaDelegate` + - Error: `BPMN_SERVICE_TASK_IMPLEMENTATION_CLASS_NOT_IMPLEMENTING_JAVA_DELEGATE` (if not implementing) + - **V2 API**: + - Class must implement `dev.dsf.bpe.v2.activity.ServiceTask` + - Error: `BPMN_SERVICE_TASK_NO_INTERFACE_CLASS_IMPLEMENTING` ##### User Tasks - **Name Validation**: - - Task must have a non-empty name - - Error: `BPMN_USER_TASK_NAME_EMPTY` + - Task should have a non-empty name + - Warning: `BPMN_USER_TASK_NAME_EMPTY` - **Form Key Validation**: - - `camunda:formKey` must be present and non-empty - - Error: `BPMN_USER_TASK_FORM_KEY_EMPTY` - - Must reference an external form (starting with "external:", "http://", or "https://") - - Error: `BPMN_USER_TASK_FORM_KEY_IS_NOT_AN_EXTERNAL_FORM` - - Must reference a valid Questionnaire resource - - Referenced Questionnaire must exist in the plugin - - Error: `BPMN_USER_TASK_QUESTIONNAIRE_NOT_FOUND` + - `camunda:formKey` must be present and non-empty + - Error: `BPMN_USER_TASK_FORM_KEY_EMPTY` + - Must reference an external form (starting with "external:", "http://", or "https://") + - Error: `BPMN_USER_TASK_FORM_KEY_IS_NOT_AN_EXTERNAL_FORM` + - Must reference a valid Questionnaire resource + - Referenced Questionnaire must exist in the plugin + - Error: `BPMN_USER_TASK_QUESTIONNAIRE_NOT_FOUND` - **Listener Validation**: - - Listener classes must exist - - Error: `BPMN_USER_TASK_LISTENER_JAVA_CLASS_NOT_FOUND` - - Listener must have class attribute - - Error: `BPMN_USER_TASK_LISTENER_MISSING_CLASS_ATTRIBUTE` + - Listener classes must exist + - Error: `BPMN_USER_TASK_LISTENER_JAVA_CLASS_NOT_FOUND` + - Listener must have class attribute + - Error: `BPMN_USER_TASK_LISTENER_MISSING_CLASS_ATTRIBUTE` - **API Version-Specific Requirements**: - - **V1 API**: - - Listener must extend `dev.dsf.bpe.v1.activity.DefaultUserTaskListener` OR implement `org.camunda.bpm.engine.delegate.TaskListener` - - Error: `BPMN_USER_TASK_LISTENER_NOT_EXTENDING_OR_IMPLEMENTING_REQUIRED_CLASS` - - **V2 API**: - - Listener must extend `dev.dsf.bpe.v2.activity.DefaultUserTaskListener` OR implement `dev.dsf.bpe.v2.activity.UserTaskListener` - - Error: `BPMN_USER_TASK_LISTENER_NOT_EXTENDING_OR_IMPLEMENTING_REQUIRED_CLASS` + - **V1 API**: + - Listener must extend `dev.dsf.bpe.v1.activity.DefaultUserTaskListener` OR implement `org.camunda.bpm.engine.delegate.TaskListener` + - Error: `BPMN_USER_TASK_LISTENER_NOT_EXTENDING_OR_IMPLEMENTING_REQUIRED_CLASS` + - **V2 API**: + - Listener must extend `dev.dsf.bpe.v2.activity.DefaultUserTaskListener` OR implement `dev.dsf.bpe.v2.activity.UserTaskListener` + - Error: `BPMN_USER_TASK_LISTENER_NOT_EXTENDING_OR_IMPLEMENTING_REQUIRED_CLASS` - **Task Listener Input Parameter Validation (V2 API only)**: - - Validates input parameters (`camunda:inputParameter`) within task listeners for API v2 - - Applies to all task listeners in API v2, with severity based on whether the listener extends `DefaultUserTaskListener` - - - **`practitionerRole` Parameter**: - - If a `practitionerRole` input parameter is defined in the task listener's `extensionElements`, its value must not be null or empty - - **Severity**: - - **ERROR**: When the task listener extends `dev.dsf.bpe.v2.activity.DefaultUserTaskListener` - - **WARN**: When the task listener does not extend `DefaultUserTaskListener` - - Error/Warning: `BPMN_PRACTITIONER_ROLE_HAS_NO_VALUE_OR_NULL` - - Success: `SUCCESS` (when value is present and non-empty) - - - **`practitioners` Parameter**: - - If a `practitioners` input parameter is defined in the task listener's `extensionElements`, its value must not be null or empty - - **Severity**: - - **ERROR**: When the task listener extends `dev.dsf.bpe.v2.activity.DefaultUserTaskListener` - - **WARN**: When the task listener does not extend `DefaultUserTaskListener` - - Error/Warning: `BPMN_PRACTITIONERS_HAS_NO_VALUE_OR_NULL` - - Success: `SUCCESS` (when value is present and non-empty) - - - **Validation Behavior**: - - Only validates input parameters if they are explicitly defined in the BPMN file - - Supports various value formats: direct text content, ``, or `` with `` elements - - Validation is skipped if the input parameter is not present (no lint items generated) - - Validation only applies to API v2 task listeners + - Validates input parameters (`camunda:inputParameter`) within task listeners for API v2 + - Applies to all task listeners in API v2, with severity based on whether the listener extends `DefaultUserTaskListener` + + - **`practitionerRole` Parameter**: + - If a `practitionerRole` input parameter is defined in the task listener's `extensionElements`, its value must not be null or empty + - **Severity**: + - **ERROR**: When the task listener extends `dev.dsf.bpe.v2.activity.DefaultUserTaskListener` + - **WARN**: When the task listener does not extend `DefaultUserTaskListener` + - Error/Warning: `BPMN_PRACTITIONER_ROLE_HAS_NO_VALUE_OR_NULL` + - Success: `SUCCESS` (when value is present and non-empty) + + - **`practitioners` Parameter**: + - If a `practitioners` input parameter is defined in the task listener's `extensionElements`, its value must not be null or empty + - **Severity**: + - **ERROR**: When the task listener extends `dev.dsf.bpe.v2.activity.DefaultUserTaskListener` + - **WARN**: When the task listener does not extend `DefaultUserTaskListener` + - Error/Warning: `BPMN_PRACTITIONERS_HAS_NO_VALUE_OR_NULL` + - Success: `SUCCESS` (when value is present and non-empty) + + - **Validation Behavior**: + - Only validates input parameters if they are explicitly defined in the BPMN file + - Supports various value formats: direct text content, ``, or `` with `` elements + - Validation is skipped if the input parameter is not present (no lint items generated) + - Validation only applies to API v2 task listeners - **Task Listener TaskOutput Field Injections Validation (V2 API only)**: - - Validates the taskOutput field injections (`taskOutputSystem`, `taskOutputCode`, `taskOutputVersion`) used to configure output parameters for UserTask listeners - - Applies to all task listeners in API v2 - - - **Completeness Check**: - - If any of the three fields (`taskOutputSystem`, `taskOutputCode`, `taskOutputVersion`) is set, all three must be set - - Error: `BPMN_USER_TASK_LISTENER_INCOMPLETE_TASK_OUTPUT_FIELDS` - - Message: "If taskOutputSystem, taskOutputCode, or taskOutputVersion is set, all three must be set" - - Validation is skipped if none of the fields are set - - - **FHIR Resource Validation**: - - **`taskOutputSystem`**: Should reference a valid CodeSystem URL - - Uses `FhirAuthorizationCache.containsSystem()` to check if the CodeSystem exists - - Error: `BPMN_USER_TASK_LISTENER_TASK_OUTPUT_SYSTEM_INVALID_FHIR_RESOURCE` if CodeSystem is unknown - - Success: `SUCCESS` when CodeSystem is valid - - - **`taskOutputCode`**: Should be a valid code in the referenced CodeSystem - - Uses `FhirAuthorizationCache.isUnknown()` to check if the code exists in the CodeSystem - - Error: `BPMN_USER_TASK_LISTENER_TASK_OUTPUT_CODE_INVALID_FHIR_RESOURCE` if code is unknown - - Success: `SUCCESS` when code is valid - - - **`taskOutputVersion`**: Must contain a placeholder (e.g., `#{version}`) - - Uses `LintingUtils.containsPlaceholder()` to check for placeholders - - Warning: `BPMN_USER_TASK_LISTENER_TASK_OUTPUT_VERSION_NO_PLACEHOLDER` if no placeholder found - - Success: `SUCCESS` when placeholder is present - - - **Validation Behavior**: - - Only validates field injections if they are explicitly defined in the task listener's `extensionElements` - - Field values are read from `camunda:field` elements with `camunda:stringValue` or nested `` elements - - Validation is skipped if none of the fields are set (no lint items generated) - - Validation only applies to API v2 task listeners - - FHIR resource validation is only performed if all three fields are set (completeness check passes) + - Validates the taskOutput field injections (`taskOutputSystem`, `taskOutputCode`, `taskOutputVersion`) used to configure output parameters for UserTask listeners + - Applies to all task listeners in API v2 + + - **Completeness Check**: + - If any of the three fields (`taskOutputSystem`, `taskOutputCode`, `taskOutputVersion`) is set, all three must be set + - Error: `BPMN_USER_TASK_LISTENER_INCOMPLETE_TASK_OUTPUT_FIELDS` + - Message: "If taskOutputSystem, taskOutputCode, or taskOutputVersion is set, all three must be set" + - Validation is skipped if none of the fields are set + + - **FHIR Resource Validation**: + - **`taskOutputSystem`**: Should reference a valid CodeSystem URL + - Uses `FhirAuthorizationCache.containsSystem()` to check if the CodeSystem exists + - Error: `BPMN_USER_TASK_LISTENER_TASK_OUTPUT_SYSTEM_INVALID_FHIR_RESOURCE` if CodeSystem is unknown + - Success: `SUCCESS` when CodeSystem is valid + + - **`taskOutputCode`**: Should be a valid code in the referenced CodeSystem + - Uses `FhirAuthorizationCache.isUnknown()` to check if the code exists in the CodeSystem + - Error: `BPMN_USER_TASK_LISTENER_TASK_OUTPUT_CODE_INVALID_FHIR_RESOURCE` if code is unknown + - Success: `SUCCESS` when code is valid + + - **`taskOutputVersion`**: Must contain a placeholder (e.g., `#{version}`) + - Uses `LintingUtils.containsPlaceholder()` to check for placeholders + - Warning: `BPMN_USER_TASK_LISTENER_TASK_OUTPUT_VERSION_NO_PLACEHOLDER` if no placeholder found + - Success: `SUCCESS` when placeholder is present + + - **Validation Behavior**: + - Only validates field injections if they are explicitly defined in the task listener's `extensionElements` + - Field values are read from `camunda:field` elements with `camunda:stringValue` or nested `` elements + - Validation is skipped if none of the fields are set (no lint items generated) + - Validation only applies to API v2 task listeners + - FHIR resource validation is only performed if all three fields are set (completeness check passes) ##### Send Tasks - **Name Validation**: - - Task must have a non-empty name + - Task should have a non-empty name + - Warning: `BPMN_EVENT_NAME_EMPTY` (when empty; same type as other unnamed events) - **Implementation Class Validation**: - - Implementation class must exist - - Error: `BPMN_MESSAGE_SEND_TASK_IMPLEMENTATION_CLASS_EMPTY` - - Error: `BPMN_MESSAGE_SEND_TASK_IMPLEMENTATION_CLASS_NOT_FOUND` - + - Implementation class must exist + - Error: `BPMN_MESSAGE_SEND_TASK_IMPLEMENTATION_CLASS_EMPTY` + - Error: `BPMN_MESSAGE_SEND_TASK_IMPLEMENTATION_CLASS_NOT_FOUND` + - **API Version-Specific Requirements**: - - **V1 API**: - - Both checks are performed separately: - - Class must extend `dev.dsf.bpe.v1.activity.AbstractTaskMessageSend` - - Error: `BPMN_SEND_TASK_IMPLEMENTATION_CLASS_NOT_EXTENDING_ABSTRACT_TASK_MESSAGE_SEND` (if not extending) - - Class must implement `org.camunda.bpm.engine.delegate.JavaDelegate` - - Error: `BPMN_MESSAGE_SEND_EVENT_IMPLEMENTATION_CLASS_NOT_IMPLEMENTING_JAVA_DELEGATE` (if not implementing) - - Note: Both conditions are checked independently. A class should ideally satisfy both, but the linter reports separate errors for each missing requirement. - - **V2 API**: - - Class must implement `dev.dsf.bpe.v2.activity.MessageSendTask` - - Error: `BPMN_SEND_TASK_NO_INTERFACE_CLASS_IMPLEMENTING` + - **V1 API** (both checks are independent): + - Class should extend `dev.dsf.bpe.v1.activity.AbstractTaskMessageSend` + - Warning: `BPMN_SEND_TASK_IMPLEMENTATION_CLASS_NOT_EXTENDING_ABSTRACT_TASK_MESSAGE_SEND` (if not extending) + - Class must implement `org.camunda.bpm.engine.delegate.JavaDelegate` + - Error: `BPMN_MESSAGE_SEND_EVENT_IMPLEMENTATION_CLASS_NOT_IMPLEMENTING_JAVA_DELEGATE` (if not implementing) + - **V2 API**: + - Class must implement `dev.dsf.bpe.v2.activity.MessageSendTask` + - Error: `BPMN_SEND_TASK_NO_INTERFACE_CLASS_IMPLEMENTING` -- **Field Injection Validation**: - - Same field injections as Message Send Events are validated: `profile`, `messageName`, and `instantiatesCanonical` - - `profile` field injection: - - Must be non-empty - - Error: `BPMN_FIELD_INJECTION_PROFILE_EMPTY` - - Must contain version placeholder `#{version}` - - Error: `BPMN_FIELD_INJECTION_PROFILE_NO_VERSION_PLACEHOLDER` - - Must reference existing StructureDefinition - - Error: `BPMN_NO_STRUCTURE_DEFINITION_FOUND_FOR_MESSAGE` - - `messageName` field injection: - - Must be non-empty - - Error: `BPMN_FIELD_INJECTION_MESSAGE_VALUE_EMPTY` - - Must be a string literal - - Error: `BPMN_FIELD_INJECTION_NOT_STRING_LITERAL` - - `instantiatesCanonical` field injection: - - Must be non-empty - - Error: `BPMN_FIELD_INJECTION_INSTANTIATES_CANONICAL_EMPTY` - - Must end with version placeholder `|#{version}` - - Error: `BPMN_FIELD_INJECTION_INSTANTIATES_CANONICAL_NO_VERSION_PLACEHOLDER` - - Must reference existing ActivityDefinition - - Error: `BPMN_NO_ACTIVITY_DEFINITION_FOUND_FOR_MESSAGE` - - Unknown field injections are reported - - Error: `BPMN_UNKNOWN_FIELD_INJECTION` +- **Field Injection Validation**: see [Field Injection Validation](#field-injection-validation-message-send--start--throw--end--send-task) ##### Receive Tasks - **Name Validation**: - - Task must have a non-empty name - - Warning: `BPMN_EVENT_NAME_EMPTY` + - Task should have a non-empty name + - Warning: `BPMN_EVENT_NAME_EMPTY` (when empty) - **Message Definition Validation**: - - Message definition must be present and have a non-empty message name - - Error: `BPMN_MESSAGE_START_EVENT_MESSAGE_NAME_EMPTY` + - `messageRef` / message name must be set and non-empty + - Error: `BPMN_MESSAGE_START_EVENT_MESSAGE_NAME_EMPTY` (same type is also used for receive tasks) -- **FHIR Resource Validation**: - - Message name must reference an existing ActivityDefinition - - Error: `BPMN_NO_ACTIVITY_DEFINITION_FOUND_FOR_MESSAGE` - - Message name must reference an existing StructureDefinition - - Error: `BPMN_NO_STRUCTURE_DEFINITION_FOUND_FOR_MESSAGE` +- **FHIR Resource Validation** (via `checkMessageName` when message name is set): + - Error: `BPMN_NO_ACTIVITY_DEFINITION_FOUND_FOR_MESSAGE` + - Error: `BPMN_NO_STRUCTURE_DEFINITION_FOUND_FOR_MESSAGE` + +- **Execution Listeners**: same as other tasks (see [Execution Listeners](#execution-listeners)) #### Event Validation -##### Message Events (Start/Intermediate/End) +##### Message Start Events -- **Event Name Validation**: - - Event must have a non-empty name - - Error: `BPMN_EVENT_NAME_EMPTY` - - Error: `BPMN_MESSAGE_START_EVENT_MESSAGE_NAME_EMPTY` - - Error: `BPMN_MESSAGE_INTERMEDIATE_CATCH_EVENT_NAME_EMPTY` - - Error: `BPMN_MESSAGE_INTERMEDIATE_CATCH_EVENT_MESSAGE_NAME_EMPTY` - - Error: `BPMN_MESSAGE_BOUNDARY_EVENT_NAME_EMPTY` +- **Event Name**: should be set — Warning: `BPMN_EVENT_NAME_EMPTY` +- **Message Name**: must be set — Error: `BPMN_MESSAGE_START_EVENT_MESSAGE_NAME_EMPTY` +- **FHIR**: ActivityDefinition / StructureDefinition via message name — Errors: `BPMN_NO_ACTIVITY_DEFINITION_FOUND_FOR_MESSAGE`, `BPMN_NO_STRUCTURE_DEFINITION_FOUND_FOR_MESSAGE` +- **Field Injections**: same as send task (`profile`, `messageName`, `instantiatesCanonical`) +- **Implementation Class**: not required (no `camunda:class` on start events) -- **Implementation Class Validation**: - - For send events, implementation class must exist - - Error: `BPMN_MESSAGE_SEND_EVENT_IMPLEMENTATION_CLASS_EMPTY` - - Error: `BPMN_MESSAGE_SEND_EVENT_IMPLEMENTATION_CLASS_NOT_FOUND` - - Intermediate throw events should not have message definitions - - Error: `BPMN_MESSAGE_INTERMEDIATE_THROW_EVENT_HAS_MESSAGE` - -- **API Version-Specific Requirements**: - - **V1 API**: - - Class must implement `org.camunda.bpm.engine.delegate.JavaDelegate` - - Error: `BPMN_MESSAGE_SEND_EVENT_IMPLEMENTATION_CLASS_NOT_IMPLEMENTING_JAVA_DELEGATE` - - Throw events must implement `org.camunda.bpm.engine.delegate.JavaDelegate` - - Error: `BPMN_END_EVENT_NO_INTERFACE_CLASS_IMPLEMENTING` - - **V2 API**: - - Message Intermediate Throw Events must implement `dev.dsf.bpe.v2.activity.MessageIntermediateThrowEvent` - - Message End Events must implement `dev.dsf.bpe.v2.activity.MessageEndEvent` - - Error: `BPMN_END_EVENT_NO_INTERFACE_CLASS_IMPLEMENTING` +##### Message Intermediate Catch Events -- **Field Injection Validation**: - - `profile` field injection: - - Must be non-empty - - Error: `BPMN_FIELD_INJECTION_PROFILE_EMPTY` - - Must contain version placeholder `#{version}` - - Error: `BPMN_FIELD_INJECTION_PROFILE_NO_VERSION_PLACEHOLDER` - - Must reference existing StructureDefinition - - Error: `BPMN_NO_STRUCTURE_DEFINITION_FOUND_FOR_MESSAGE` - - - `messageName` field injection: - - Must be non-empty - - Error: `BPMN_FIELD_INJECTION_MESSAGE_VALUE_EMPTY` - - Must be a string literal - - Error: `BPMN_FIELD_INJECTION_NOT_STRING_LITERAL` - - - `instantiatesCanonical` field injection: - - Must be non-empty - - Error: `BPMN_FIELD_INJECTION_INSTANTIATES_CANONICAL_EMPTY` - - Must end with version placeholder `|#{version}` - - Error: `BPMN_FIELD_INJECTION_INSTANTIATES_CANONICAL_NO_VERSION_PLACEHOLDER` - - Must reference existing ActivityDefinition - - Error: `BPMN_NO_ACTIVITY_DEFINITION_FOUND_FOR_MESSAGE` +- **Event Name**: Warning: `BPMN_MESSAGE_INTERMEDIATE_CATCH_EVENT_NAME_EMPTY` +- **Message Name**: Error: `BPMN_MESSAGE_INTERMEDIATE_CATCH_EVENT_MESSAGE_NAME_EMPTY` +- **FHIR**: same as message start (ActivityDefinition / StructureDefinition) + +##### Message Intermediate Throw Events + +- **Event Name**: Warning: `BPMN_EVENT_NAME_EMPTY` +- **Implementation Class** (required): + - Error: `BPMN_MESSAGE_SEND_EVENT_IMPLEMENTATION_CLASS_EMPTY` (missing) + - Error: `BPMN_MESSAGE_SEND_EVENT_IMPLEMENTATION_CLASS_NOT_FOUND` (not on classpath) + - **V1**: Error: `BPMN_MESSAGE_SEND_EVENT_IMPLEMENTATION_CLASS_NOT_IMPLEMENTING_JAVA_DELEGATE` + - **V2**: Error: `BPMN_END_EVENT_NO_INTERFACE_CLASS_IMPLEMENTING` (expects `MessageIntermediateThrowEvent`) +- **Message Reference**: message intermediate throw events should **not** have a message definition in the BPMN + - Info: `BPMN_MESSAGE_INTERMEDIATE_THROW_EVENT_HAS_MESSAGE_REFERENCE` (with or without message ref) +- **Field Injections**: same as send task + +##### Message End Events -##### Timer Events +- **Event Name**: Warning: `BPMN_EVENT_NAME_EMPTY` +- **Implementation Class**: same as message intermediate throw (element-specific; V2: `MessageEndEvent`) +- **Field Injections**: same as send task -- **Timer Type Validation**: - - At least one of `timeDate`, `timeCycle`, or `timeDuration` must be set - - Error: `BPMN_FLOATING_ELEMENT` (`TIMER_TYPE_IS_EMPTY`) +##### Message Boundary Events -- **Fixed Date Warning**: - - `timeDate` expressions are flagged with an informational message to verify if a fixed date is intended - - Info: `BPMN_FLOATING_ELEMENT` (`TIMER_TYPE_IS_A_FIXED_DATE_TIME`) +- **Event Name**: Warning: `BPMN_MESSAGE_BOUNDARY_EVENT_NAME_EMPTY` +- **Message Name**: Error: `BPMN_MESSAGE_BOUNDARY_EVENT_MESSAGE_NAME_EMPTY` +- **FHIR**: via `BpmnMessageLinter.lintMessageEventDefinition` (ActivityDefinition / StructureDefinition) -- **Placeholder Validation**: - - `timeCycle` and `timeDuration` values should contain a placeholder (e.g., `#{interval}`) - - Warning: `BPMN_FLOATING_ELEMENT` (`TIMER_VALUE_APPEARS_FIXED_NO_PLACEHOLDER_FOUND`) +##### Field Injection Validation (Message Send / Start / Throw / End / Send Task) + +Applies to all elements with message-send field injections (`BpmnFieldInjectionLinter`): + +- `profile`: empty → Error `BPMN_FIELD_INJECTION_PROFILE_EMPTY`; missing `#{version}` placeholder → Warning `BPMN_FIELD_INJECTION_PROFILE_NO_VERSION_PLACEHOLDER`; StructureDefinition not found → Warning `BPMN_NO_STRUCTURE_DEFINITION_FOUND_FOR_MESSAGE` +- `messageName`: empty → Error `BPMN_FIELD_INJECTION_MESSAGE_VALUE_EMPTY`; not a string literal → Error `BPMN_FIELD_INJECTION_NOT_STRING_LITERAL` +- `instantiatesCanonical`: empty → Error `BPMN_FIELD_INJECTION_INSTANTIATES_CANONICAL_EMPTY`; missing version placeholder → Warning `BPMN_FIELD_INJECTION_INSTANTIATES_CANONICAL_NO_VERSION_PLACEHOLDER`; ActivityDefinition not found → Warning `BPMN_NO_ACTIVITY_DEFINITION_FOUND_FOR_MESSAGE` (cross-check; `messageName` mismatch on ActivityDefinition → Error) +- Unknown fields → Warning `BPMN_UNKNOWN_FIELD_INJECTION` + +##### Timer Events (Intermediate Catch) + +All timer findings use `BPMN_FLOATING_ELEMENT` with a **context-specific message** (not the enum default text). + +- **Event Name** (timer intermediate catch): empty name — Warning, message: *"Timer Intermediate Catch Event name is empty"* +- **Timer Type**: at least one of `timeDate`, `timeCycle`, `timeDuration` — Error, message: *"Timer type is empty (no timeDate, timeCycle, or timeDuration)"* +- **Fixed `timeDate`**: Info, message: *"Timer type is a fixed date/time (timeDate) – please verify if this is intended"* +- **Placeholder** (`timeCycle` / `timeDuration`): no placeholder — Warning, message: *"Timer value appears fixed (no placeholder found)"* ##### Error Boundary Events -- **Error Configuration Validation**: - - Error reference must be present - - Error code must not be empty - - Error: `BPMN_ERROR_BOUNDARY_EVENT_ERROR_CODE_EMPTY` - - Error name must not be empty (warning) - - Error: `BPMN_ERROR_BOUNDARY_EVENT_ERROR_NAME_EMPTY` - - Error: `BPMN_ERROR_BOUNDARY_EVENT_NAME_EMPTY` - - Error code variable must not be empty - - Error: `BPMN_ERROR_BOUNDARY_EVENT_ERROR_CODE_VARIABLE_EMPTY` +- **Boundary Event Name**: empty — Warning: `BPMN_ERROR_BOUNDARY_EVENT_NAME_EMPTY` +- **Error Name** (on the error element): empty — Warning: `BPMN_ERROR_BOUNDARY_EVENT_ERROR_NAME_EMPTY` +- **Error Code**: empty — Error: `BPMN_ERROR_BOUNDARY_EVENT_ERROR_CODE_EMPTY` +- **Error Code Variable** (`camunda:errorCodeVariable`): empty — Warning: `BPMN_ERROR_BOUNDARY_EVENT_ERROR_CODE_VARIABLE_EMPTY` ##### Signal Events -- **Signal Definition Validation**: - - Signal end events must have a non-empty name - - Error: `BPMN_SIGNAL_END_EVENT_NAME_EMPTY` - - Signal end events must have a signal definition - - Error: `BPMN_SIGNAL_END_EVENT_SIGNAL_EMPTY` - - Signal intermediate throw events must have a non-empty name - - Error: `BPMN_SIGNAL_INTERMEDIATE_THROW_EVENT_NAME_EMPTY` - - Signal intermediate throw events must have a signal definition - - Error: `BPMN_SIGNAL_INTERMEDIATE_THROW_EVENT_SIGNAL_EMPTY` - - Signal definitions must be valid - - Signal references must be correct +**Signal End Event** -##### Conditional Events +- Empty name — Warning: `BPMN_SIGNAL_END_EVENT_NAME_EMPTY` +- Missing/empty signal definition — Error: `BPMN_SIGNAL_END_EVENT_SIGNAL_EMPTY` -- **Event Name Validation**: - - Conditional Intermediate Catch Event should have a non-empty name - - Warning: `BPMN_FLOATING_ELEMENT` (`CONDITIONAL_INTERMEDIATE_CATCH_EVENT_NAME_IS_EMPTY`) +**Signal Intermediate Throw Event** -- **Variable Name Validation**: - - `camunda:variableName` attribute must not be empty - - Error: `BPMN_FLOATING_ELEMENT` (`CONDITIONAL_INTERMEDIATE_CATCH_EVENT_VARIABLE_NAME_IS_EMPTY`) +- Empty name — Warning: `BPMN_SIGNAL_INTERMEDIATE_THROW_EVENT_NAME_EMPTY` +- Missing/empty signal definition — Error: `BPMN_SIGNAL_INTERMEDIATE_THROW_EVENT_SIGNAL_EMPTY` -- **Variable Events Validation**: - - `camunda:variableEvents` attribute must not be empty - - Error: `BPMN_FLOATING_ELEMENT` (`CONDITIONAL_INTERMEDIATE_CATCH_EVENT_VARIABLE_EVENTS_IS_EMPTY`) +**Signal Intermediate Catch Event** -- **Condition Type Validation**: - - `camunda:conditionType` must be set, or a condition expression must be provided (in which case `"expression"` is assumed) - - Error: `BPMN_FLOATING_ELEMENT` (`CONDITIONAL_INTERMEDIATE_CATCH_EVENT_CONDITION_TYPE_IS_EMPTY`) +- Empty name — Warning: `BPMN_FLOATING_ELEMENT` (*"Signal Intermediate Catch Event name is empty"*) +- Missing/empty signal — Error: `BPMN_FLOATING_ELEMENT` (*"Signal is empty in Signal Intermediate Catch Event"*) -- **Condition Expression Validation**: - - When condition type is `"expression"`, the condition expression must not be empty - - Error: `BPMN_FLOATING_ELEMENT` (`CONDITIONAL_INTERMEDIATE_CATCH_EVENT_CONDITION_TYPE_IS_NOT_EXPRESSION`) +##### Conditional Events (Intermediate Catch) -#### Gateway and Flow Validation +All findings use `BPMN_FLOATING_ELEMENT` with a context-specific message. -##### Flow Structure +| Check | Severity | Message (excerpt) | +|-------|----------|-------------------| +| Empty event name | WARN | *"Conditional Intermediate Catch Event name is empty"* | +| Empty `camunda:variableName` | ERROR | *"... variable name is empty"* | +| Empty `camunda:variableEvents` | ERROR | *"... variableEvents is empty"* | +| Empty `conditionType` (no condition expression) | ERROR | *"... condition type is empty"* | +| `conditionType` set but not `expression` | INFO | *"... condition type is not 'expression': …"* | +| `conditionType` = `expression`, empty expression | ERROR | *"... expression is empty"* | -- **Message Start Event**: - - Message-triggered processes must have a message start event - - Error: `BPMN_MESSAGE_START_EVENT_NOT_FOUND` +If a condition expression is present but `conditionType` is missing, `expression` is assumed internally (success item). + +#### Gateway and Flow Validation ##### Exclusive Gateways -- **Sequence Flow Validation**: - - Outgoing sequence flows must have appropriate names - - When multiple outgoing flows exist, gateway must have a name - - Error: `BPMN_EXCLUSIVE_GATEWAY_HAS_MULTIPLE_OUTGOING_FLOWS_BUT_NAME_IS_EMPTY` - - Conditional expressions required when multiple paths exist - - Default flow validation +- When there are **multiple** outgoing sequence flows: gateway name should be set + - Warning: `BPMN_EXCLUSIVE_GATEWAY_HAS_MULTIPLE_OUTGOING_FLOWS_BUT_NAME_IS_EMPTY` +- Execution listeners: see [Execution Listeners](#execution-listeners) ##### Inclusive Gateways -- **Sequence Flow Validation**: - - Similar requirements as exclusive gateways - - When multiple outgoing flows exist, gateway must have a name - - Error: `BPMN_INCLUSIVE_GATEWAY_HAS_MULTIPLE_OUTGOING_FLOWS_BUT_NAME_IS_EMPTY` - - Multiple path handling +- When there are **multiple** outgoing sequence flows: gateway name should be set + - Warning: `BPMN_INCLUSIVE_GATEWAY_HAS_MULTIPLE_OUTGOING_FLOWS_BUT_NAME_IS_EMPTY` +- Execution listeners: see [Execution Listeners](#execution-listeners) ##### Event-Based Gateways -- **Configuration Validation**: - - Proper configuration required - - Outgoing flow setup validation +- Only **execution listeners** are validated (classpath / API version); no additional gateway naming or flow rules. ##### Sequence Flows -- **Naming and Conditions**: - - Naming conventions - - Conditional expressions for non-default flows from splitting gateways - - Error: `BPMN_FLOW_ELEMENT` +Type `BPMN_FLOW_ELEMENT` with `FlowElementType` in the message: + +| Situation | Severity | FlowElementType (internal) | +|-----------|----------|----------------------------| +| No source node | ERROR | `SEQUENCE_FLOW_HAS_NO_SOURCE_NODE` | +| Source with multiple outgoing flows, flow without name | WARN | `SEQUENCE_FLOW_ORIGINATES_FROM_A_SOURCE_WITH_MULTIPLE_OUTGOING_FLOWS_AND_NAME_IS_EMPTY` | +| Default flow from exclusive/inclusive gateway **with** condition | WARN | `DEFAULT_SEQUENCE_FLOW_HAS_CONDITION_EXPRESSION` | +| Non-default flow from exclusive/inclusive gateway **without** condition | WARN | `NON_DEFAULT_SEQUENCE_FLOW_IS_MISSING_A_CONDITION_EXPRESSION` | + +JSON reports include `flowElementType` for these items. Process-level message start events are validated separately — see [Message Start Event Validation (Process Level)](#message-start-event-validation-process-level) (`BPMN_MESSAGE_START_EVENT_NOT_FOUND`). #### SubProcess Validation ##### Multi-Instance SubProcesses - **Asynchronous Execution**: - - `asyncBefore` must be set to `true` for proper asynchronous execution - - Required for multi-instance subprocesses - - Error: `BPMN_SUB_PROCESS_HAS_MULTI_INSTANCE_BUT_IS_NOT_ASYNC_BEFORE_TRUE` + - Multi-instance subprocesses should have `asyncBefore="true"` + - Warning: `BPMN_SUB_PROCESS_HAS_MULTI_INSTANCE_BUT_IS_NOT_ASYNC_BEFORE_TRUE` -##### Start/End Events in SubProcesses +##### Start/End Events (outside / inside subprocesses) -- **Structural Validation**: - - Start events must be part of subprocess - - Error: `BPMN_START_EVENT_NOT_PART_OF_SUB_PROCESS` - - End events must be part of subprocess - - Error: `BPMN_END_EVENT_NOT_PART_OF_SUB_PROCESS` - - End events inside subprocesses should have `asyncAfter` set to `true` - - Error: `BPMN_END_EVENT_INSIDE_SUB_PROCESS_SHOULD_HAVE_ASYNC_AFTER_TRUE` +- **Generic Start Event** (not in a subprocess): name should be set + - Warning: `BPMN_START_EVENT_NOT_PART_OF_SUB_PROCESS` (empty name; the type name refers to start events **outside** a subprocess) +- **Generic End Event** (not in a subprocess): name should be set + - Warning: `BPMN_END_EVENT_NOT_PART_OF_SUB_PROCESS` +- **End Event in subprocess**: should have `asyncAfter="true"` + - Warning: `BPMN_END_EVENT_INSIDE_SUB_PROCESS_SHOULD_HAVE_ASYNC_AFTER_TRUE` -#### Floating Elements +#### `BPMN_FLOATING_ELEMENT` (note) -- **Element Placement**: - - Elements must be properly connected - - Error: `BPMN_FLOATING_ELEMENT` +The type `BPMN_FLOATING_ELEMENT` has the default text *"BPMN element is outside of message start event triggered flow."*, but the code **reuses** it for timer, conditional, and signal catch configuration (see above). There is **no** separate graph/reachability analysis for “floating” elements. #### Execution Listeners - **Execution Listener Validation**: - - Execution listener classes must exist in the classpath - - Error: `BPMN_EXECUTION_LISTENER_CLASS_NOT_FOUND` + - Execution listener classes must exist in the classpath + - Error: `BPMN_EXECUTION_LISTENER_CLASS_NOT_FOUND` - **API Version-Specific Requirements**: - - **V1 API**: - - Execution listener classes must implement `org.camunda.bpm.engine.delegate.ExecutionListener` - - Error: `BPMN_EXECUTION_LISTENER_NOT_IMPLEMENTING_REQUIRED_INTERFACE` - - **V2 API**: - - Execution listener classes must implement `dev.dsf.bpe.v2.activity.ExecutionListener` - - Error: `BPMN_EXECUTION_LISTENER_NOT_IMPLEMENTING_REQUIRED_INTERFACE` + - **V1 API**: + - Execution listener classes must implement `org.camunda.bpm.engine.delegate.ExecutionListener` + - Error: `BPMN_EXECUTION_LISTENER_NOT_IMPLEMENTING_REQUIRED_INTERFACE` + - **V2 API**: + - Execution listener classes must implement `dev.dsf.bpe.v2.activity.ExecutionListener` + - Error: `BPMN_EXECUTION_LISTENER_NOT_IMPLEMENTING_REQUIRED_INTERFACE` #### Unknown Field Injections - **Field Injection Validation**: - - Only known field injections are allowed - - Error: `BPMN_UNKNOWN_FIELD_INJECTION` + - Only known field injections (`profile`, `messageName`, `instantiatesCanonical`, …) are allowed + - Warning: `BPMN_UNKNOWN_FIELD_INJECTION` ### FHIR Resource Validation @@ -7389,8 +7503,8 @@ The linter validates FHIR resources against DSF-specific profiles and HL7 FHIR s #### Unparsable FHIR Resources - **Resource Parsing**: - - FHIR resources must be valid XML or JSON - - Error: `PLUGIN_DEFINITION_UNPARSABLE_FHIR_RESOURCE` + - FHIR resources must be valid XML or JSON + - Error: `PLUGIN_DEFINITION_UNPARSABLE_FHIR_RESOURCE` #### Task Resources @@ -7399,74 +7513,74 @@ Task resources are validated against the DSF Task base profile (`http://dsf.dev/ ##### Metadata and Profile Validation - **Profile Validation**: - - `meta.profile` must be present and point to a DSF Task profile - - Error: `FHIR_TASK_MISSING_PROFILE` - - Profile must be loadable - - Error: `FHIR_TASK_COULD_NOT_LOAD_PROFILE` + - `meta.profile` must be present and point to a DSF Task profile + - Error: `FHIR_TASK_MISSING_PROFILE` + - Profile must be loadable + - Error: `FHIR_TASK_COULD_NOT_LOAD_PROFILE` - **InstantiatesCanonical Validation**: - - `instantiatesCanonical` must be present - - Error: `FHIR_TASK_MISSING_INSTANTIATES_CANONICAL` - - Must end with version placeholder `|#{version}` - - Error: `FHIR_TASK_INSTANTIATES_CANONICAL_PLACEHOLDER` - - Must reference existing ActivityDefinition - - Error: `FHIR_TASK_UNKNOWN_INSTANTIATES_CANONICAL` + - `instantiatesCanonical` must be present + - Error: `FHIR_TASK_MISSING_INSTANTIATES_CANONICAL` + - Must end with version placeholder `|#{version}` + - Error: `FHIR_TASK_INSTANTIATES_CANONICAL_PLACEHOLDER` + - Must reference existing ActivityDefinition + - Error: `FHIR_TASK_UNKNOWN_INSTANTIATES_CANONICAL` ##### Fixed Elements - **Status Validation**: - - `status` must be present - - Error: `FHIR_TASK_MISSING_STATUS` - - Must be `"draft"` for template Task instances - - Error: `FHIR_TASK_STATUS_NOT_DRAFT` - - Must be a valid TaskStatus value - - Error: `FHIR_TASK_UNKNOWN_STATUS` + - `status` must be present + - Error: `FHIR_TASK_MISSING_STATUS` + - Must be `"draft"` for template Task instances + - Error: `FHIR_TASK_STATUS_NOT_DRAFT` + - Must be a valid TaskStatus value + - Error: `FHIR_TASK_UNKNOWN_STATUS` - **Intent Validation**: - - `intent` must be `"order"` - - Error: `FHIR_TASK_VALUE_IS_NOT_SET_AS_ORDER` + - `intent` must be `"order"` + - Error: `FHIR_TASK_VALUE_IS_NOT_SET_AS_ORDER` - **Requester Validation**: - - Requester must be present - - Error: `FHIR_TASK_MISSING_REQUESTER` - - `requester.identifier.system` must be `http://dsf.dev/sid/organization-identifier` - - Error: `FHIR_TASK_INVALID_REQUESTER` - - `requester.identifier.value` must be `#{organization}` (development) - - Error: `FHIR_TASK_REQUESTER_ORGANIZATION_NO_PLACEHOLDER` - - Error: `FHIR_TASK_REQUESTER_ID_NO_PLACEHOLDER` - - Error: `FHIR_TASK_REQUESTER_ID_NOT_EXIST` + - Requester must be present + - Error: `FHIR_TASK_MISSING_REQUESTER` + - `requester.identifier.system` must be `http://dsf.dev/sid/organization-identifier` + - Error: `FHIR_TASK_INVALID_REQUESTER` + - `requester.identifier.value` must be `#{organization}` (development) + - Error: `FHIR_TASK_REQUESTER_ORGANIZATION_NO_PLACEHOLDER` + - Error: `FHIR_TASK_REQUESTER_ID_NO_PLACEHOLDER` + - Error: `FHIR_TASK_REQUESTER_ID_NOT_EXIST` - **Recipient Validation**: - - Recipient must be present - - Error: `FHIR_TASK_MISSING_RECIPIENT` - - `restriction.recipient.identifier.system` must be `http://dsf.dev/sid/organization-identifier` - - Error: `FHIR_TASK_INVALID_RECIPIENT` - - `restriction.recipient.identifier.value` must be `#{organization}` (development) - - Error: `FHIR_TASK_RECIPIENT_ORGANIZATION_NO_PLACEHOLDER` - - Error: `FHIR_TASK_RECIPIENT_ID_NO_PLACEHOLDER` - - Error: `FHIR_TASK_RECIPIENT_ID_NOT_EXIST` + - Recipient must be present + - Error: `FHIR_TASK_MISSING_RECIPIENT` + - `restriction.recipient.identifier.system` must be `http://dsf.dev/sid/organization-identifier` + - Error: `FHIR_TASK_INVALID_RECIPIENT` + - `restriction.recipient.identifier.value` must be `#{organization}` (development) + - Error: `FHIR_TASK_RECIPIENT_ORGANIZATION_NO_PLACEHOLDER` + - Error: `FHIR_TASK_RECIPIENT_ID_NO_PLACEHOLDER` + - Error: `FHIR_TASK_RECIPIENT_ID_NOT_EXIST` ##### Development Placeholders - **Date Placeholder**: - - `authoredOn` must contain `#{date}` - - Error: `FHIR_TASK_DATE_NO_PLACEHOLDER` + - `authoredOn` must contain `#{date}` + - Error: `FHIR_TASK_DATE_NO_PLACEHOLDER` ##### Task Identifier Validation - **System Validation**: - - Task identifiers must have a valid system element - - Expected system: `http://dsf.dev/sid/task-identifier` - - Error: `FHIR_TASK_IDENTIFIER_MISSING_SYSTEM` (when system is missing or empty) - - Error: `FHIR_TASK_IDENTIFIER_INVALID_SYSTEM` (when system is set but incorrect) - - Success: When the system is correctly set to `http://dsf.dev/sid/task-identifier` + - Task identifiers must have a valid system element + - Expected system: `http://dsf.dev/sid/task-identifier` + - Error: `FHIR_TASK_IDENTIFIER_MISSING_SYSTEM` (when system is missing or empty) + - Error: `FHIR_TASK_IDENTIFIER_INVALID_SYSTEM` (when system is set but incorrect) + - Success: When the system is correctly set to `http://dsf.dev/sid/task-identifier` - **Value Format Validation**: - - Task identifiers with system `http://dsf.dev/sid/task-identifier` must follow a specific format - - Format: `{process-url}/{process-version}/{task-example-name}` - - Example: `http://test.org/bpe/Process/someProcessName/1.0/someExampleName` - - Error: `FHIR_TASK_IDENTIFIER_INVALID_FORMAT` - - Success: When the identifier format is valid + - Task identifiers with system `http://dsf.dev/sid/task-identifier` must follow a specific format + - Format: `{process-url}/{process-version}/{task-example-name}` + - Example: `http://test.org/bpe/Process/someProcessName/1.0/someExampleName` + - Error: `FHIR_TASK_IDENTIFIER_INVALID_FORMAT` + - Success: When the identifier format is valid - **Pattern Definition**: ```regex @@ -7475,65 +7589,65 @@ Task resources are validated against the DSF Task base profile (`http://dsf.dev/ The pattern accepts both actual version numbers (e.g., `1.0`) and placeholders (e.g., `#{version}`) for development-time validation. - **Valid Examples**: - - ✅ System: `http://dsf.dev/sid/task-identifier` - - ✅ Value: `http://test.org/bpe/Process/someProcessName/1.0/someExampleName` (with actual version) - - ✅ Value: `http://test.org/bpe/Process/someProcessName/#{version}/someExampleName` (with placeholder) - - ✅ Value: `https://dsf.dev/bpe/Process/myProcess/2.5/startTask` - - ✅ Value: `http://medizininformatik-initiative.de/bpe/Process/coordinateDataSharing/#{version}/coordinateDataSharing` + - ✅ System: `http://dsf.dev/sid/task-identifier` + - ✅ Value: `http://test.org/bpe/Process/someProcessName/1.0/someExampleName` (with actual version) + - ✅ Value: `http://test.org/bpe/Process/someProcessName/#{version}/someExampleName` (with placeholder) + - ✅ Value: `https://dsf.dev/bpe/Process/myProcess/2.5/startTask` + - ✅ Value: `http://medizininformatik-initiative.de/bpe/Process/coordinateDataSharing/#{version}/coordinateDataSharing` - **Invalid Examples**: - - ❌ System missing or empty - - ❌ System: `http://wrong.system/identifier` (wrong system URL) - - ❌ Value: `http://test.org/someProcessName/1.0/taskName` (missing `/bpe/Process/` segment) - - ❌ Value: `http://test.org/bpe/Process/myProcess/1/taskName` (version must be in `X.Y` format, e.g. `1.0`) - - ❌ Empty or blank identifier value + - ❌ System missing or empty + - ❌ System: `http://wrong.system/identifier` (wrong system URL) + - ❌ Value: `http://test.org/someProcessName/1.0/taskName` (missing `/bpe/Process/` segment) + - ❌ Value: `http://test.org/bpe/Process/myProcess/1/taskName` (version must be in `X.Y` format, e.g. `1.0`) + - ❌ Empty or blank identifier value - **DSF Framework Reference**: - - Based on the DSF NamingSystem definition: `http://dsf.dev/sid/task-identifier` - - See: [DSF Framework Repository](https://github.com/datasharingframework/dsf) + - Based on the DSF NamingSystem definition: `http://dsf.dev/sid/task-identifier` + - See: [DSF Framework Repository](https://github.com/datasharingframework/dsf) ##### Task.input Validation - **Input Presence**: - - `Task.input` must not be empty - - Error: `FHIR_TASK_MISSING_INPUT` + - `Task.input` must not be empty + - Error: `FHIR_TASK_MISSING_INPUT` - **Structural Validation**: - - Each input must have `type.coding.system` and `type.coding.code` - - Error: `FHIR_TASK_INPUT_REQUIRED_CODING_SYSTEM_AND_CODING_CODE` - - Each input must have a `value[x]` element - - Error: `FHIR_TASK_INPUT_MISSING_VALUE` + - Each input must have `type.coding.system` and `type.coding.code` + - Error: `FHIR_TASK_INPUT_REQUIRED_CODING_SYSTEM_AND_CODING_CODE` + - Each input must have a `value[x]` element + - Error: `FHIR_TASK_INPUT_MISSING_VALUE` - **Duplicate Detection**: - - No two inputs may share the same `system#code` combination - - Error: `FHIR_TASK_INPUT_DUPLICATE_SLICE` + - No two inputs may share the same `system#code` combination + - Error: `FHIR_TASK_INPUT_DUPLICATE_SLICE` - **BPMN Slice Validation**: - - `message-name` slice: Required (min=1, max=1) - - Error: `FHIR_TASK_REQUIRED_INPUT_WITH_CODE_MESSAGE_NAME` - - `business-key` slice: - - Required when status is "in-progress", "completed", or "failed" - - Error: `FHIR_TASK_STATUS_REQUIRED_INPUT_BUSINESS_KEY` - - Must be absent when status is "draft" - - Error: `FHIR_TASK_BUSINESS_KEY_EXISTS` - - Business key validation may be skipped in certain conditions - - Warning: `FHIR_TASK_BUSINESS_KEY_CHECK_IS_SKIPPED` - - `correlation-key` slice: - - Validated against StructureDefinition cardinality - - Error: `FHIR_TASK_CORRELATION_EXISTS` - - Error: `FHIR_TASK_CORRELATION_MISSING_BUT_REQUIRED` + - `message-name` slice: Required (min=1, max=1) + - Error: `FHIR_TASK_REQUIRED_INPUT_WITH_CODE_MESSAGE_NAME` + - `business-key` slice: + - Required when status is "in-progress", "completed", or "failed" + - Error: `FHIR_TASK_STATUS_REQUIRED_INPUT_BUSINESS_KEY` + - Must be absent when status is "draft" + - Error: `FHIR_TASK_BUSINESS_KEY_EXISTS` + - Business key validation may be skipped in certain conditions + - Warning: `FHIR_TASK_BUSINESS_KEY_CHECK_IS_SKIPPED` + - `correlation-key` slice: + - Validated against StructureDefinition cardinality + - Error: `FHIR_TASK_CORRELATION_EXISTS` + - Error: `FHIR_TASK_CORRELATION_MISSING_BUT_REQUIRED` - **Cardinality Validation**: - - Total input count validated against base cardinality - - Error: `FHIR_TASK_INPUT_INSTANCE_COUNT_BELOW_MIN` - - Error: `FHIR_TASK_INPUT_INSTANCE_COUNT_EXCEEDS_MAX` - - Slice occurrence counts validated against slice-specific cardinality - - Error: `FHIR_TASK_INPUT_SLICE_COUNT_BELOW_SLICE_MIN` - - Error: `FHIR_TASK_INPUT_SLICE_COUNT_EXCEEDS_SLICE_MAX` + - Total input count validated against base cardinality + - Error: `FHIR_TASK_INPUT_INSTANCE_COUNT_BELOW_MIN` + - Error: `FHIR_TASK_INPUT_INSTANCE_COUNT_EXCEEDS_MAX` + - Slice occurrence counts validated against slice-specific cardinality + - Error: `FHIR_TASK_INPUT_SLICE_COUNT_BELOW_SLICE_MIN` + - Error: `FHIR_TASK_INPUT_SLICE_COUNT_EXCEEDS_SLICE_MAX` - - **Terminology Validation**: - - Generic coding validation (outside `Task.input.type.coding`) checks code/system pairs against known DSF CodeSystems - - Error: `FHIR_TASK_UNKNOWN_CODE` + - **Terminology Validation**: + - Generic coding validation (outside `Task.input.type.coding`) checks code/system pairs against known DSF CodeSystems + - Error: `FHIR_TASK_UNKNOWN_CODE` - **Task.input.type.coding Terminology Validation (binding-driven)**: - Validation for `Task.input.type.coding` is performed in three strict, ordered checks: @@ -7584,58 +7698,58 @@ StructureDefinition resources are validated against DSF-specific constraints. ##### Metadata Validation - **Read Access Tag**: - - Must contain valid read-access tag - - Error: `STRUCTURE_DEFINITION_READ_ACCESS_TAG_MISSING` + - Must contain valid read-access tag + - Error: `STRUCTURE_DEFINITION_READ_ACCESS_TAG_MISSING` - **URL Validation**: - - `url` must be present and non-empty - - Error: `STRUCTURE_DEFINITION_URL_MISSING` + - `url` must be present and non-empty + - Error: `STRUCTURE_DEFINITION_URL_MISSING` - **Status Validation**: - - `status` must be `"unknown"` (DSF convention) - - Error: `STRUCTURE_DEFINITION_INVALID_STATUS` + - `status` must be `"unknown"` (DSF convention) + - Error: `STRUCTURE_DEFINITION_INVALID_STATUS` ##### Placeholder Validation - **Version Placeholder**: - - `version` must contain exactly `#{version}` - - Error: `STRUCTURE_DEFINITION_VERSION_NO_PLACEHOLDER` + - `version` must contain exactly `#{version}` + - Error: `STRUCTURE_DEFINITION_VERSION_NO_PLACEHOLDER` - **Date Placeholder**: - - `date` must contain exactly `#{date}` - - Error: `STRUCTURE_DEFINITION_DATE_NO_PLACEHOLDER` + - `date` must contain exactly `#{date}` + - Error: `STRUCTURE_DEFINITION_DATE_NO_PLACEHOLDER` ##### Structure Validation - **Differential**: - - `differential` element must exist - - Error: `STRUCTURE_DEFINITION_DIFFERENTIAL_MISSING` + - `differential` element must exist + - Error: `STRUCTURE_DEFINITION_DIFFERENTIAL_MISSING` - **Snapshot**: - - `snapshot` element should not be present (warning) - - Error: `STRUCTURE_DEFINITION_SNAPSHOT_PRESENT` + - `snapshot` element should not be present + - Warning: `STRUCTURE_DEFINITION_SNAPSHOT_PRESENT` - **Element IDs**: - - Every `element` must have an `@id` attribute - - Error: `STRUCTURE_DEFINITION_ELEMENT_ID_MISSING` - - Element IDs must be unique - - Error: `STRUCTURE_DEFINITION_ELEMENT_ID_DUPLICATE` + - Every `element` must have an `@id` attribute + - Error: `STRUCTURE_DEFINITION_ELEMENT_ID_MISSING` + - Element IDs must be unique + - Error: `STRUCTURE_DEFINITION_ELEMENT_ID_DUPLICATE` ##### Slice Cardinality Validation According to FHIR profiling specification §5.1.0.14: -- **SHOULD Rule**: - - Sum of all slice minimum cardinalities should be ≤ base element's minimum - - Error: `STRUCTURE_DEFINITION_SLICE_MIN_SUM_ABOVE_BASE_MIN` +- **SHOULD Rule** (FHIR Profiling §5.1.0.14; reported as Error by the linter): + - Sum of all slice minimum cardinalities should be ≤ base element's minimum + - Error: `STRUCTURE_DEFINITION_SLICE_MIN_SUM_ABOVE_BASE_MIN` - **MUST Rule (Min Sum)**: - - Sum of all slice minimum cardinalities must not exceed base element's maximum - - Error: `STRUCTURE_DEFINITION_SLICE_MIN_SUM_EXCEEDS_MAX` + - Sum of all slice minimum cardinalities must not exceed base element's maximum + - Error: `STRUCTURE_DEFINITION_SLICE_MIN_SUM_EXCEEDS_MAX` - **MUST Rule (Slice Max)**: - - No individual slice's maximum cardinality may exceed base element's maximum - - Error: `STRUCTURE_DEFINITION_SLICE_MAX_TOO_HIGH` + - No individual slice's maximum cardinality may exceed base element's maximum + - Error: `STRUCTURE_DEFINITION_SLICE_MAX_TOO_HIGH` ##### Binding and Fixed Coding Validation - **`binding.valueSet` Reference Validation**: @@ -7662,81 +7776,81 @@ ValueSet resources are validated against the DSF ValueSet base profile. ##### Metadata Validation - **Read Access Tags**: - - Must contain at least one read-access tag (ALL or LOCAL) - - Error: `FHIR_VALUE_SET_MISSING_READ_ACCESS_TAG_ALL_OR_LOCAL` - - Organization role codes must be valid - - Error: `FHIR_VALUE_SET_ORGANIZATION_ROLE_MISSING_VALID_CODE_VALUE` + - Must contain at least one read-access tag (ALL or LOCAL) + - Error: `FHIR_VALUE_SET_MISSING_READ_ACCESS_TAG_ALL_OR_LOCAL` + - Organization role codes must be valid + - Error: `FHIR_VALUE_SET_ORGANIZATION_ROLE_MISSING_VALID_CODE_VALUE` - **Required Elements**: - - `url` must be present - - Error: `FHIR_VALUE_SET_MISSING_URL` - - `name` must be present - - Error: `FHIR_VALUE_SET_MISSING_NAME` - - `title` must be present - - Error: `FHIR_VALUE_SET_MISSING_TITLE` - - `publisher` must be present - - Error: `FHIR_VALUE_SET_MISSING_PUBLISHER` - - `description` must be present - - Error: `FHIR_VALUE_SET_MISSING_DESCRIPTION` + - `url` must be present + - Error: `FHIR_VALUE_SET_MISSING_URL` + - `name` must be present + - Error: `FHIR_VALUE_SET_MISSING_NAME` + - `title` must be present + - Error: `FHIR_VALUE_SET_MISSING_TITLE` + - `publisher` must be present + - Error: `FHIR_VALUE_SET_MISSING_PUBLISHER` + - `description` must be present + - Error: `FHIR_VALUE_SET_MISSING_DESCRIPTION` ##### Placeholder Validation - **Version Placeholder**: - - `version` must be `#{version}` - - Error: `FHIR_VALUE_SET_VERSION_NO_PLACEHOLDER` + - `version` must be `#{version}` + - Error: `FHIR_VALUE_SET_VERSION_NO_PLACEHOLDER` - **Date Placeholder**: - - `date` must be `#{date}` - - Error: `FHIR_VALUE_SET_DATE_NO_PLACEHOLDER` + - `date` must be `#{date}` + - Error: `FHIR_VALUE_SET_DATE_NO_PLACEHOLDER` - **Include Version Placeholder**: - - `compose.include.version` must be `#{version}` - - Error: `FHIR_VALUE_SET_INCLUDE_VERSION_NO_PLACEHOLDER` + - `compose.include.version` must be `#{version}` + - Error: `FHIR_VALUE_SET_INCLUDE_VERSION_NO_PLACEHOLDER` ##### Compose Structure Validation - **Include Elements**: - - At least one `compose.include` required - - Error: `FHIR_VALUE_SET_MISSING_COMPOSE_INCLUDE` - - Each include must have a `system` attribute - - Error: `FHIR_VALUE_SET_INCLUDE_MISSING_SYSTEM` + - At least one `compose.include` required + - Error: `FHIR_VALUE_SET_MISSING_COMPOSE_INCLUDE` + - Each include must have a `system` attribute + - Error: `FHIR_VALUE_SET_INCLUDE_MISSING_SYSTEM` - **Concept Validation**: - - Concept codes must be non-blank - - Error: `FHIR_VALUE_SET_CONCEPT_MISSING_CODE` - - Duplicate codes detected - - Error: `FHIR_VALUE_SET_DUPLICATE_CONCEPT_CODE` + - Concept codes must be non-blank + - Error: `FHIR_VALUE_SET_CONCEPT_MISSING_CODE` + - Duplicate codes detected + - Error: `FHIR_VALUE_SET_DUPLICATE_CONCEPT_CODE` ##### Terminology Compliance - **CodeSystem Validation**: - - CodeSystem URLs validated against DSF terminology cache - - Warn: `FHIR_VALUE_SET_UNKNOWN_CODE` - - Code exists but in different CodeSystem - - Error: `FHIR_VALUE_SET_FALSE_URL_REFERENCED` + - CodeSystem URLs validated against DSF terminology cache + - Warning: `FHIR_VALUE_SET_UNKNOWN_CODE` (unknown code or missing system/code on include) + - Code exists but in different CodeSystem + - Error: `FHIR_VALUE_SET_FALSE_URL_REFERENCED` #### ActivityDefinition Resources ##### Profile Validation - **Profile**: - - Must have valid profile - - Error: `ACTIVITY_DEFINITION_MISSING_PROFILE` - - Profile must not have version number - - Error: `ACTIVITY_DEFINITION_PROFILE_NO_PLACEHOLDER` + - Must have valid profile + - Error: `ACTIVITY_DEFINITION_MISSING_PROFILE` + - Profile must not have version number + - Error: `ACTIVITY_DEFINITION_PROFILE_NO_PLACEHOLDER` ##### URL Validation - **URL Presence**: - - URL must be present and non-empty - - Error: `INVALID_FHIR_URL` + - URL must be present and non-empty + - Error: `INVALID_FHIR_URL` - **URL Pattern Validation**: - - ActivityDefinition URL must follow a specific pattern - - Format: `http[s]://domain/bpe/Process/processName` - - Example: `http://dsf.dev/bpe/Process/test` - - Error: `ACTIVITY_DEFINITION_INVALID_URL_PATTERN` - - Success: When the URL pattern is valid + - ActivityDefinition URL must follow a specific pattern + - Format: `http[s]://domain/bpe/Process/processName` + - Example: `http://dsf.dev/bpe/Process/test` + - Error: `ACTIVITY_DEFINITION_INVALID_URL_PATTERN` + - Success: When the URL pattern is valid - **Pattern Definition**: ```regex @@ -7744,227 +7858,227 @@ ValueSet resources are validated against the DSF ValueSet base profile. ``` - **Valid Examples**: - - ✅ `http://dsf.dev/bpe/Process/test` - - ✅ `https://example.org/bpe/Process/my-process` - - ✅ `http://test.example.com/bpe/Process/process123` + - ✅ `http://dsf.dev/bpe/Process/test` + - ✅ `https://example.org/bpe/Process/my-process` + - ✅ `http://test.example.com/bpe/Process/process123` - **Invalid Examples**: - - ❌ `http://dsf.dev/Process/test` (missing `/bpe/`) - - ❌ `http://dsf.dev/bpe/Process/test_invalid` (underscore not allowed in processName) - - ❌ `http://dsf.dev/bpe/Process/` (missing processName) - - ❌ `ftp://dsf.dev/bpe/Process/test` (only http/https allowed) + - ❌ `http://dsf.dev/Process/test` (missing `/bpe/`) + - ❌ `http://dsf.dev/bpe/Process/test_invalid` (underscore not allowed in processName) + - ❌ `http://dsf.dev/bpe/Process/` (missing processName) + - ❌ `ftp://dsf.dev/bpe/Process/test` (only http/https allowed) - **DSF Framework Reference**: - - Based on the DSF Framework requirement defined in: - - `dsf-bpe/dsf-bpe-process-api/src/main/java/dev/dsf/bpe/api/plugin/AbstractProcessPlugin.java` - - See: [DSF Framework Repository](https://github.com/datasharingframework/dsf) + - Based on the DSF Framework requirement defined in: + - `dsf-bpe/dsf-bpe-process-api/src/main/java/dev/dsf/bpe/api/plugin/AbstractProcessPlugin.java` + - See: [DSF Framework Repository](https://github.com/datasharingframework/dsf) ##### Status Validation - **Status**: - - Status must be valid - - Error: `INVALID_FHIR_STATUS` + - Status must be valid + - Error: `INVALID_FHIR_STATUS` ##### Authorization Validation - **Requester**: - - Requester entry must be present - - Error: `ACTIVITY_DEFINITION_ENTRY_MISSING_REQUESTER` - - Requester entry must be valid - - Error: `ACTIVITY_DEFINITION_ENTRY_INVALID_REQUESTER` + - Requester entry must be present + - Error: `ACTIVITY_DEFINITION_ENTRY_MISSING_REQUESTER` + - Requester entry must be valid + - Error: `ACTIVITY_DEFINITION_ENTRY_INVALID_REQUESTER` - **Recipient**: - - Recipient entry must be present - - Error: `ACTIVITY_DEFINITION_ENTRY_MISSING_RECIPIENT` - - Recipient entry must be valid - - Error: `ACTIVITY_DEFINITION_ENTRY_INVALID_RECIPIENT` + - Recipient entry must be present + - Error: `ACTIVITY_DEFINITION_ENTRY_MISSING_RECIPIENT` + - Recipient entry must be valid + - Error: `ACTIVITY_DEFINITION_ENTRY_INVALID_RECIPIENT` #### CodeSystem Resources ##### Metadata Validation - **Read Access Tag**: - - Must have read access tag - - Error: `MISSING_READ_ACCESS_TAG` + - Must have read access tag + - Error: `MISSING_READ_ACCESS_TAG` - **Required Elements**: - - Required elements must be present - - Error: `CODE_SYSTEM_MISSING_ELEMENT` + - Required elements must be present + - Error: `CODE_SYSTEM_MISSING_ELEMENT` ##### URL Validation - **URL Format**: - - URL must be valid - - Error: `INVALID_FHIR_URL` + - URL must be valid + - Error: `INVALID_FHIR_URL` ##### Status Validation - **Status**: - - Status must be valid - - Error: `CODE_SYSTEM_INVALID_STATUS` + - Status must be valid + - Error: `CODE_SYSTEM_INVALID_STATUS` ##### Concept Validation - **Concepts**: - - Must have at least one concept - - Error: `CODE_SYSTEM_MISSING_CONCEPT` - - Concepts must have code - - Error: `CODE_SYSTEM_CONCEPT_MISSING_CODE` - - Concepts must have display - - Error: `CODE_SYSTEM_CONCEPT_MISSING_DISPLAY` - - Duplicate codes detected - - Error: `CODE_SYSTEM_DUPLICATE_CODE` + - Must have at least one concept + - Error: `CODE_SYSTEM_MISSING_CONCEPT` + - Concepts must have code + - Error: `CODE_SYSTEM_CONCEPT_MISSING_CODE` + - Concepts must have display + - Error: `CODE_SYSTEM_CONCEPT_MISSING_DISPLAY` + - Duplicate codes detected + - Error: `CODE_SYSTEM_DUPLICATE_CODE` ##### Placeholder Validation - **Version Placeholder**: - - Version must be `#{version}` - - Error: `CODE_SYSTEM_VERSION_NO_PLACEHOLDER` + - Version must be `#{version}` + - Error: `CODE_SYSTEM_VERSION_NO_PLACEHOLDER` - **Date Placeholder**: - - Date must be `#{date}` - - Error: `CODE_SYSTEM_DATE_NO_PLACEHOLDER` + - Date must be `#{date}` + - Error: `CODE_SYSTEM_DATE_NO_PLACEHOLDER` #### Questionnaire Resources ##### Metadata Validation - **Meta Profile**: - - Must have meta profile - - Error: `QUESTIONNAIRE_MISSING_META_PROFILE` - - Meta profile must be valid - - Error: `QUESTIONNAIRE_INVALID_META_PROFILE` + - Should have meta profile + - Warning: `QUESTIONNAIRE_MISSING_META_PROFILE` + - Meta profile must be valid + - Warning: `QUESTIONNAIRE_INVALID_META_PROFILE` - **Read Access Tag**: - - Must have read access tag - - Error: `QUESTIONNAIRE_MISSING_READ_ACCESS_TAG` + - Must have read access tag + - Error: `QUESTIONNAIRE_MISSING_READ_ACCESS_TAG` ##### Status Validation - **Status**: - - Status must be valid - - Error: `QUESTIONNAIRE_INVALID_STATUS` + - Status must be valid + - Error: `QUESTIONNAIRE_INVALID_STATUS` ##### Item Validation - **Items**: - - Must have at least one item - - Error: `QUESTIONNAIRE_MISSING_ITEM` - - Items must have linkId - - Error: `QUESTIONNAIRE_ITEM_MISSING_ATTRIBUTES_LINK_ID` - - Items must have text - - Error: `QUESTIONNAIRE_ITEM_MISSING_ATTRIBUTES_TEXT` - - Items must have type - - Error: `QUESTIONNAIRE_ITEM_MISSING_ATTRIBUTES_TYPE` - - Link IDs must be unique - - Error: `QUESTIONNAIRE_DUPLICATE_LINK_ID` - - Unusual link IDs detected - - Error: `QUESTIONNAIRE_UNUSUAL_LINK_ID` + - Must have at least one item + - Error: `QUESTIONNAIRE_MISSING_ITEM` + - Items must have linkId + - Error: `QUESTIONNAIRE_ITEM_MISSING_ATTRIBUTES_LINK_ID` + - Items should have text + - Info: `QUESTIONNAIRE_ITEM_MISSING_ATTRIBUTES_TEXT` + - Items must have type + - Error: `QUESTIONNAIRE_ITEM_MISSING_ATTRIBUTES_TYPE` + - Link IDs must be unique + - Error: `QUESTIONNAIRE_DUPLICATE_LINK_ID` + - Unusual link IDs detected + - Warning: `QUESTIONNAIRE_UNUSUAL_LINK_ID` ##### Mandatory Item Validation - **Required Items**: - - Mandatory items must be required - - Error: `QUESTIONNAIRE_MANDATORY_ITEM_NOT_REQUIRED` - - Mandatory items must have valid type - - Error: `QUESTIONNAIRE_MANDATORY_ITEM_INVALID_TYPE` + - Mandatory items must be required + - Error: `QUESTIONNAIRE_MANDATORY_ITEM_NOT_REQUIRED` + - Mandatory items must have valid type + - Error: `QUESTIONNAIRE_MANDATORY_ITEM_INVALID_TYPE` ##### Placeholder Validation - **Version Placeholder**: - - Version must be `#{version}` - - Error: `QUESTIONNAIRE_VERSION_NO_PLACEHOLDER` + - Version must be `#{version}` + - Error: `QUESTIONNAIRE_VERSION_NO_PLACEHOLDER` - **Date Placeholder**: - - Date must be `#{date}` - - Error: `QUESTIONNAIRE_DATE_NO_PLACEHOLDER` + - Date must be `#{date}` + - Error: `QUESTIONNAIRE_DATE_NO_PLACEHOLDER` #### Common FHIR Validations ##### Access Tag Validation - **Read Access Tag**: - - Must have read access tag - - Error: `MISSING_FHIR_ACCESS_TAG` - - Access tag must be valid - - Error: `INVALID_FHIR_ACCESS_TAG` + - Must have read access tag + - Error: `MISSING_FHIR_ACCESS_TAG` + - Access tag must be valid + - Error: `INVALID_FHIR_ACCESS_TAG` ##### Kind Validation - **Kind**: - - Kind must be present - - Error: `INVALID_FHIR_KIND` - - Kind must be "Task" for Task resources - - Error: `FHIR_KIND_NOT_SET_AS_TASK` + - Kind must be present + - Error: `INVALID_FHIR_KIND` + - Kind must be "Task" for Task resources + - Error: `FHIR_KIND_NOT_SET_AS_TASK` ##### Status Validation - **Status**: - - Status must be "unknown" (DSF convention) - - Error: `FHIR_STATUS_IS_NOT_SET_AS_UNKNOWN` + - Status must be "unknown" (DSF convention) + - Error: `FHIR_STATUS_IS_NOT_SET_AS_UNKNOWN` ##### Extension Validation - **Process Authorization Extension**: - - Must have process authorization extension - - Error: `NO_EXTENSION_PROCESS_AUTHORIZATION_FOUND` + - Must have process authorization extension + - Error: `NO_EXTENSION_PROCESS_AUTHORIZATION_FOUND` ### Plugin Configuration Validation #### ServiceLoader Registration - **Registration File**: - - **V1 API**: Must be registered in `META-INF/services/dev.dsf.bpe.v1.ProcessPluginDefinition` - - **V2 API**: Must be registered in `META-INF/services/dev.dsf.bpe.v2.ProcessPluginDefinition` - - Error: `PLUGIN_DEFINITION_MISSING_SERVICE_LOADER_REGISTRATION` - - Plugin class must be loadable - - Error: `PLUGIN_DEFINITION_PROCESS_PLUGIN_RESOURCE_NOT_LOADED` + - **V1 API**: Must be registered in `META-INF/services/dev.dsf.bpe.v1.ProcessPluginDefinition` + - **V2 API**: Must be registered in `META-INF/services/dev.dsf.bpe.v2.ProcessPluginDefinition` + - Error: `PLUGIN_DEFINITION_MISSING_SERVICE_LOADER_REGISTRATION` + - Plugin class must be loadable + - Error: `PLUGIN_DEFINITION_PROCESS_PLUGIN_RESOURCE_NOT_LOADED` #### Resource References - **BPMN File References**: - - BPMN files referenced in plugin must exist - - Error: `PLUGIN_DEFINITION_BPMN_FILE_NOT_FOUND` - - BPMN files must be in expected root - - Error: `PLUGIN_DEFINITION_BPMN_FILE_OUTSIDE_ROOT` - - BPMN files must be parsable - - Error: `PLUGIN_DEFINITION_UNPARSABLE_BPMN_RESOURCE` + - BPMN files referenced in plugin must exist + - Error: `PLUGIN_DEFINITION_BPMN_FILE_NOT_FOUND` + - BPMN files must be in expected root + - Error: `PLUGIN_DEFINITION_BPMN_FILE_OUTSIDE_ROOT` + - BPMN files must be parsable + - Error: `PLUGIN_DEFINITION_UNPARSABLE_BPMN_RESOURCE` - **FHIR File References**: - - FHIR resources referenced in BPMN must exist - - Error: `PLUGIN_DEFINITION_FHIR_RESOURCE_NOT_FOUND` - - FHIR resources must be in expected root - - Error: `PLUGIN_DEFINITION_FHIR_FILE_OUTSIDE_ROOT` - - FHIR resources must be parsable - - Error: `PLUGIN_DEFINITION_UNPARSABLE_FHIR_RESOURCE` + - FHIR resources referenced in BPMN must exist + - Error: `PLUGIN_DEFINITION_FHIR_RESOURCE_NOT_FOUND` + - FHIR resources must be in expected root + - Error: `PLUGIN_DEFINITION_FHIR_FILE_OUTSIDE_ROOT` + - FHIR resources must be parsable + - Error: `PLUGIN_DEFINITION_UNPARSABLE_FHIR_RESOURCE` #### Resource Presence - **BPMN Processes**: - - At least one BPMN process must be defined - - Error: `PLUGIN_DEFINITION_NO_PROCESS_MODEL_DEFINED` + - At least one BPMN process must be defined + - Error: `PLUGIN_DEFINITION_NO_PROCESS_MODEL_DEFINED` - **FHIR Resources**: - - At least one FHIR resource must be defined - - Error: `PLUGIN_DEFINITION_NO_FHIR_RESOURCES_DEFINED` + - At least one FHIR resource must be defined + - Error: `PLUGIN_DEFINITION_NO_FHIR_RESOURCES_DEFINED` #### Version Validation ##### Resource Version Validation - **Version Pattern Requirement**: - - Plugin version must follow the pattern: `d.d.d.d` (e.g., `1.0.0.1`, `2.5.3.10`) - - Resource version is derived from the first two numbers (e.g., `1.0` from `1.0.0.1`) - - Error: `PLUGIN_DEFINITION_RESOURCE_VERSION_NULL` + - Plugin version must follow the pattern: `d.d.d.d` (e.g., `1.0.0.1`, `2.5.3.10`) + - Resource version is derived from the first two numbers (e.g., `1.0` from `1.0.0.1`) + - Error: `PLUGIN_DEFINITION_RESOURCE_VERSION_NULL` - **Valid Examples**: - - ✅ Version `1.0.0.1` → Resource Version `1.0` - - ✅ Version `2.5.3.10` → Resource Version `2.5` + - ✅ Version `1.0.0.1` → Resource Version `1.0` + - ✅ Version `2.5.3.10` → Resource Version `2.5` - **Invalid Examples**: - - ❌ Version `1.0.0` (missing fourth number) - - ❌ Version `1.0` (only two numbers) - - ❌ Version `invalid` (non-numeric) + - ❌ Version `1.0.0` (missing fourth number) + - ❌ Version `1.0` (only two numbers) + - ❌ Version `invalid` (non-numeric) - **Pattern Definition**: ```regex @@ -7972,116 +8086,105 @@ ValueSet resources are validated against the DSF ValueSet base profile. ``` - **DSF Framework Reference**: - - This validation is based on the DSF Framework requirement defined in: - - `dsf-bpe/dsf-bpe-process-api-v2/src/main/java/dev/dsf/bpe/v2/ProcessPluginDefinition.java` - - The `getResourceVersion()` method extracts the resource version from the plugin version + - This validation is based on the DSF Framework requirement defined in: + - `dsf-bpe/dsf-bpe-process-api-v2/src/main/java/dev/dsf/bpe/v2/ProcessPluginDefinition.java` + - The `getResourceVersion()` method extracts the resource version from the plugin version #### Spring Configuration Registration In the DSF runtime, the Camunda engine does not instantiate Java delegate or listener classes directly. Spring creates those instances via `@Bean` methods -declared in `@Configuration` classes. For those beans to be available to the -BPE at runtime, the corresponding `@Configuration` classes must be explicitly -returned by `ProcessPluginDefinition#getSpringConfigurations()`. Forgetting -to add a `@Bean` for a BPMN-referenced class typically surfaces as a -`BeanCreationException` or `ClassNotFoundException` only at deployment time. - -- **Every BPMN-referenced class must be provided as a `@Bean`**: - - The linter collects every `camunda:class` reference used by - `serviceTask`, `sendTask`, `messageEventDefinition`, - `camunda:executionListener` and `camunda:taskListener` elements in the - plugin's BPMN files (List 1). - - The linter calls `getSpringConfigurations()` to get the registered - `@Configuration` classes and inspects the return types of their - `@Bean` methods (List 2). - - For every class in List 1, the linter checks whether it is provided - as a `@Bean` (exact type or supertype) in any `@Configuration` from - List 2. - - If a BPMN-referenced class has **no matching `@Bean`** in any - registered configuration, this is reported as an error. - - Error: `PLUGIN_DEFINITION_SPRING_CONFIGURATION_MISSING` - - Success: `SUCCESS` when all BPMN delegate/listener references are - covered by a `@Bean` in a registered `@Configuration`, or when no - BPMN delegate/listener references exist. - -- **Code Example**: - ```java - @Override - public List> getSpringConfigurations() { - return List.of(DataSharingConfig.class, DataSharingVariablesConfig.class); - } - ``` - ```java - @Configuration - public class DataSharingConfig { - - // Every class referenced via camunda:class in the BPMN must have - // a corresponding @Bean here (or in another registered @Configuration). - @Bean - public SelectDicTargets selectDicTargets() { - return new SelectDicTargets(api); - } - - @Bean - public SelectDmsTarget selectDmsTarget() { - return new SelectDmsTarget(api); - } - } - ``` -#### Spring Bean Scope (`SpringConfigurationLinter`) +declared in `@Configuration` classes returned by +`ProcessPluginDefinition#getSpringConfigurations()`. A missing registration +typically surfaces only at deployment as `BeanCreationException` / +`ClassNotFoundException`. -In Camunda and the Data Sharing Framework (DSF), Spring beans that act as delegates, execution listeners, or task listeners should usually be configured with **prototype** scope (`SCOPE_PROTOTYPE`). If the `@Scope` annotation is omitted, Spring defaults to **singleton**. That can be acceptable for strictly stateless classes; as soon as someone adds mutable instance state, the risk of race conditions and hard-to-debug concurrency bugs rises sharply—often only visible under load. +The linter (`SpringConfigurationLinter`) collects every `camunda:class` +reference from `serviceTask`, `sendTask`, message throw/end events, +`camunda:executionListener` and `camunda:taskListener` elements, then checks +coverage against the registered configurations. -After a BPMN-referenced class is **covered** by a `@Bean` in a registered `@Configuration` (see [Spring Configuration Registration](#spring-configuration-registration)), the linter inspects the covering `@Bean` method for `@Scope` and the referenced implementation class for **mutable** instance fields (not `static`, not `final`). Emitted rules: +##### API V1 — `@Bean` per activity - - **Success** – `SPRING_BEAN_SCOPE_PROTOTYPE`: `@Scope` is **prototype** (e.g. `ConfigurableBeanFactory.SCOPE_PROTOTYPE` or `@Scope("prototype")`). No further scope items for that reference in this pass. - - **Error** – `SPRING_BEAN_SCOPE_MUTABLE_SINGLETON`: The bean is **effectively singleton** (missing `@Scope` *or* explicit non-prototype scope such as `singleton`) **and** the referenced class has **mutable** instance fields. Emitted **once** per reference before the following warnings. - - **Warning** – `SPRING_BEAN_SCOPE_MISSING`: The covering `@Bean` has **no** `@Scope` (Spring’s default is singleton, which is risky for Camunda hooks unless the implementation is provably stateless). - - **Warning** – `SPRING_BEAN_SCOPE_SINGLETON_EXPLICIT`: `@Scope` is **explicitly** set to a **non-prototype** value (typically `singleton`); the developer should verify that the delegate or listener is safe to share across process instances. +- Each BPMN-referenced class must be provided as a `@Bean` (exact type or + assignable supertype) in a registered `@Configuration`. +- Error: `PLUGIN_DEFINITION_SPRING_CONFIGURATION_MISSING` +- Success: `SUCCESS` when all references are covered (or none exist) - **Why this matters:** The rule stays aligned with DSF wiring (only configurations from `getSpringConfigurations()`) and surfaces dangerous combinations—singleton or default-singleton scope plus mutable instance state—before they appear in production. +```java +@Configuration +public class DataSharingConfig { + @Bean + @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) + public SelectDicTargets selectDicTargets() { + return new SelectDicTargets(api); + } +} +``` - **Example scenarios** +##### API V2 — `ActivityPrototypeBeanCreator` (preferred) - *Missing `@Scope` → warning (and error if the delegate/listener class has mutable instance fields)* +API V2 may register activities via +`dev.dsf.bpe.v2.spring.ActivityPrototypeBeanCreator`, which creates prototype +beans from the `Class` literals passed to its constructor. That is the preferred +registration path for V2 activities. - ```java - @Bean - // Missing @Scope annotation - public SetCorrelationKeyListener setCorrelationKeyListener() { - return new SetCorrelationKeyListener(api); - } - ``` +| Situation | Severity | Type | +|-----------|----------|------| +| Not in APBC and not a prototype `@Bean` | ERROR | `PLUGIN_DEFINITION_ACTIVITY_PROTOTYPE_BEAN_MISSING` | +| Registered only via APBC | SUCCESS | `SPRING_ACTIVITY_PROTOTYPE_BEAN_CREATOR` | +| Registered via APBC **and** as a dedicated `@Bean` | WARN | `SPRING_ACTIVITY_REGISTERED_TWICE` | +| Declared as `@Bean` but **not** passed to APBC | WARN | `SPRING_ACTIVITY_REGISTERED_AS_BEAN` | - *Explicit singleton → warning (and error if mutable instance fields exist)* - ```java - @Bean - @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON) // or @Scope("singleton") - public SetCorrelationKeyListener setCorrelationKeyListener() { - return new SetCorrelationKeyListener(api); - } - ``` - *Prototype (recommended) → success* - ```java - @Bean - @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) // or @Scope("prototype") - public SetCorrelationKeyListener setCorrelationKeyListener() { - return new SetCorrelationKeyListener(api); - } - ``` +```java +@Configuration +public class PingPongConfig { + @Bean + public static ActivityPrototypeBeanCreator activityPrototypeBeanCreator() { + return new ActivityPrototypeBeanCreator( + SelectDicTargets.class, + SelectDmsTarget.class + ); + } +} +``` + +#### Spring Bean Scope (`SpringConfigurationLinter`) + +Delegates, execution listeners, and task listeners should usually use +**prototype** scope (`SCOPE_PROTOTYPE`). Omitting `@Scope` defaults Spring to +**singleton**, which is risky once mutable instance state is introduced. + +After a BPMN-referenced class is **covered**, the linter inspects scope (APBC +registrations are always treated as prototype) and mutable instance fields +(not `static`, not `final`): + +| Situation | Severity | Type | +|-----------|----------|------| +| `@Scope` is prototype | SUCCESS | `SPRING_BEAN_SCOPE_PROTOTYPE` | +| Effectively singleton **and** mutable fields | ERROR | `SPRING_BEAN_SCOPE_MUTABLE_SINGLETON` | +| No `@Scope` (Spring default singleton) | WARN | `SPRING_BEAN_SCOPE_MISSING` | +| Explicit non-prototype `@Scope` | WARN | `SPRING_BEAN_SCOPE_SINGLETON_EXPLICIT` | + +```java +@Bean +@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) // recommended +public SetCorrelationKeyListener setCorrelationKeyListener() { + return new SetCorrelationKeyListener(api); +} +``` #### Leftover Resource Detection -The linter performs project-level analysis to identify unreferenced resources: +Project-wide analysis: files under the resources root that are not referenced in any `ProcessPluginDefinition`. -- **Unreferenced BPMN Files**: - - BPMN files that are not referenced by any plugin - - Reported as warnings +| Resource | LintingType | Severity | Message (excerpt) | +|----------|-------------|----------|-------------------| +| BPMN | `PLUGIN_DEFINITION_PROCESS_PLUGIN_RESOURCE_NOT_LOADED` | WARN | *"BPMN file exists but is not referenced in ProcessPluginDefinition"* | +| FHIR | `PLUGIN_DEFINITION_PROCESS_PLUGIN_RESOURCE_NOT_LOADED` | WARN | *"FHIR file exists but is not referenced in ProcessPluginDefinition"* | -- **Unreferenced FHIR Resources**: - - FHIR resources that are not referenced by any BPMN process - - Reported as warnings +When all files are referenced: project-level `SUCCESS`. In multi-plugin projects, leftover findings are assigned to plugins (see `LeftoverResourceDetector`). -This analysis works uniformly for single-plugin and multi-plugin projects. +Note: Unreferenced resources **within** a plugin (e.g. FHIR used only from BPMN) are covered by other rules (`PLUGIN_DEFINITION_FHIR_RESOURCE_NOT_FOUND`, FHIR references in BPMN) — not by leftover detection. --- @@ -8136,30 +8239,37 @@ The linter executes in five phases: - For each discovered plugin: - Validates BPMN processes - Validates FHIR resources - - Validates plugin configuration + - Validates plugin configuration (ServiceLoader, Spring/`ActivityPrototypeBeanCreator`, scope) - Collects lint items -2. **Project-Level Analysis**: +2. **Exclusion Filtering** (optional): + - Applies rules from `dsf-linter-exclusions.json` / `--exclusions` / `dsf.lint.exclusionsFile` + - Removes matched items from report output + - Depending on `affectsExitStatus`, excluded ERRORs may still count toward failure + +3. **Project-Level Analysis**: - Performs leftover resource analysis - Aggregates referenced resources across all plugins - Identifies unreferenced resources -3. **Result Aggregation**: +4. **Result Aggregation**: - Combines results from all plugins - Calculates totals (errors, warnings) - - Determines overall success status + - Determines overall success status (`failOnErrors` / `--no-fail`) + +If no plugin definition is found, Phase 3 emits `PLUGIN_DEFINITION_NO_PLUGIN_FOUND` and continues to report generation instead of aborting. #### Phase 4: Report Generation 1. **HTML Report Generation**: - - Generates summary page - - Generates detailed plugin pages - - Applies templates and styling + - Generates master report (`report.html`) + - Generates per-plugin reports (`/lints.html`) + - Embeds source files with navigation and highlighting 2. **JSON Report Generation** (if requested): - - Serializes all results to JSON - - Includes metadata and statistics - - Provides machine-readable format + - Writes master report (`report.json`) and per-plugin reports (`/lints.json`) + - Serializes results grouped by severity + - Includes discovery and leftover analysis metadata #### Phase 5: Summary @@ -8180,22 +8290,50 @@ Source: https://dsf.dev/process-development/linter-tool/troubleshooting.html ## Troubleshooting -### "Input must be a JAR file" Error +### Maven: JAR not found / lint skipped + +**Problem**: `DSF Linter: JAR not found at …, skipping` or the `lint` goal does nothing useful. + +**Solution**: +- Ensure the plugin JAR exists: `${project.build.directory}/${project.build.finalName}.jar` +- Run a phase that builds the JAR first, e.g. `mvn verify` or `mvn package` then `mvn dsf-maven-plugin:lint` +- Confirm the `lint` execution is bound in the process plugin `pom.xml` + +### Maven: build fails on lint errors + +**Problem**: `MojoFailureException` with error counts after `verify`. + +**Solution**: +```bash +# Inspect HTML/JSON reports +mvn verify -Ddsf.lint.html=true -Ddsf.lint.json=true + +# Temporary: do not fail the build (gradual adoption) +mvn verify -Ddsf.lint.failOnErrors=false + +# Skip lint entirely +mvn verify -Ddsf.lint.skip=true +``` + +Use [exclusion rules](./linter-tool.md#exclusion-rules) for known accepted findings. -**Problem**: The linter only accepts JAR files as input. +### "Input must be a JAR file" Error (CLI) + +**Problem**: The CLI only accepts JAR files as input. **Solution**: ```bash -# Wrong - Maven project directly -java -jar linter-cli/target/linter-cli-0.1.2.jar \ - --path /path/to/project --html +# Wrong - Maven project directory +java -jar linter-cli-0.1.3.jar --path /path/to/project --html -# Correct - Build first, then lint JAR +# Correct - build first, then lint the JAR cd /path/to/project && mvn clean package -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli-0.1.3.jar \ --path /path/to/project/target/my-plugin-1.0.0.jar --html ``` +Prefer `dsf-maven-plugin:lint` in process plugin builds so packaging and linting stay in one lifecycle. + ### JAR File Not Found **Problem**: The specified JAR file path cannot be found. @@ -8204,47 +8342,48 @@ java -jar linter-cli/target/linter-cli-0.1.2.jar \ ```bash # Windows -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli-0.1.3.jar \ --path "C:\Users\Username\project\target\plugin.jar" --html # Linux/Mac -java -jar linter-cli/target/linter-cli-0.1.2.jar \ +java -jar linter-cli-0.1.3.jar \ --path /home/username/project/target/plugin.jar --html ``` -### Missing Dependencies +### Missing Dependencies / Class Hierarchy False Positives -**Problem**: ClassNotFoundException or similar errors during linting. +**Problem**: ClassNotFoundException or false “does not implement …” findings during linting. **Solution**: ```bash -# Check Maven settings -ls ~/.m2/settings.xml +# Use verbose mode +java -jar linter-cli-0.1.3.jar --path plugin.jar --html --verbose -# Use verbose mode to see detailed error messages -java -jar linter-cli/target/linter-cli-0.1.2.jar \ - --path plugin.jar --html --verbose +# Or with Maven +mvn verify -Ddsf.lint.verbose=true -Ddsf.lint.html=true -# Check if dependencies are in the JAR +# Ensure the plugin JAR contains the expected classes jar -tf plugin.jar | grep -i "class" ``` +Use **linter-cli / linter-core 0.1.3+** (0.1.2 already fixed several V1 hierarchy false positives caused by missing Spring classes in the shaded CLI). + ### Report Not Generated **Problem**: No report files are created. **Solution**: ```bash -# --html or --json flag must be set -java -jar linter-cli/target/linter-cli-0.1.2.jar \ - --path plugin.jar --html # ← Required +# CLI: --html and/or --json must be set +java -jar linter-cli-0.1.3.jar --path plugin.jar --html -# Use absolute path for report directory -java -jar linter-cli/target/linter-cli-0.1.2.jar \ - --path plugin.jar --html --report-path $(pwd)/reports +# Maven: enable report flags +mvn verify -Ddsf.lint.html=true -Ddsf.lint.json=true -# Check write permissions -ls -ld /tmp/dsf-linter-report-* +# Custom report directory +java -jar linter-cli-0.1.3.jar \ + --path plugin.jar --html --report-path $(pwd)/reports +mvn verify -Ddsf.lint.reportPath=target/custom-linter-report -Ddsf.lint.html=true ``` ### Remote JAR Download Error @@ -8253,30 +8392,36 @@ ls -ld /tmp/dsf-linter-report-* **Solution**: ```bash -# Test download separately curl -L -o test.jar https://example.com/plugin.jar - -# Verify the download ls -lh test.jar +java -jar linter-cli-0.1.3.jar --path test.jar --html +``` -# Check network connectivity -ping example.com +### Plugin Not Found / `PLUGIN_DEFINITION_NO_PLUGIN_FOUND` -# Then use the local file -java -jar linter-cli/target/linter-cli-0.1.2.jar \ - --path test.jar --html -``` +**Problem**: ERROR that no `ProcessPluginDefinition` was found. + +**Behaviour in 0.1.3+**: The run does **not** abort mid-flight. Regular HTML/JSON reports are still written. Exit/build failure follows `failOnErrors` / `--no-fail`. + +**Solution**: +- Verify ServiceLoader registration under `META-INF/services/`: + - `dev.dsf.bpe.v1.ProcessPluginDefinition` and/or + - `dev.dsf.bpe.v2.ProcessPluginDefinition` +- Ensure the registered class is present in the JAR and implements the correct interface +- Check for `ServiceConfigurationError` details in verbose logs (e.g. “not a subtype”) +- Confirm API version compatibility of the plugin JAR -### Plugin Not Found +### Exclusion File Not Applied -**Problem**: "No plugins found" message. +**Problem**: Findings that should be excluded still appear. **Solution**: -- Verify ServiceLoader registration exists in `META-INF/services/` -- Check that plugin class is in the JAR file -- Ensure plugin class implements the correct interface -- Use `--verbose` to see detailed discovery logs -- Check API version compatibility +- Prefer an **explicit** path (especially for Maven module roots): + - CLI: `--exclusions path/to/file.json` + - Maven: `-Ddsf.lint.exclusionsFile=${project.basedir}/dsf-linter-exclusions.json` +- Auto-discovery only finds `dsf-linter-exclusions.json` in the **extracted JAR root** (not automatically the Maven basedir unless the file is packaged there) +- Rule fields are AND-combined within a rule; check `type` / `severity` / `file` / `messageContains` spelling +- Invalid/empty rules cause load failure — check the log for exclusion load errors ### Out of Memory Errors @@ -8284,35 +8429,32 @@ java -jar linter-cli/target/linter-cli-0.1.2.jar \ **Solution**: ```bash -# Increase heap size -java -Xmx2g -jar linter-cli/target/linter-cli-0.1.2.jar \ - --path plugin.jar --html +java -Xmx2g -jar linter-cli-0.1.3.jar --path plugin.jar --html # For very large projects -java -Xmx4g -Xms1g -jar linter-cli/target/linter-cli-0.1.2.jar \ - --path plugin.jar --html +java -Xmx4g -Xms1g -jar linter-cli-0.1.3.jar --path plugin.jar --html ``` +For Maven, set `MAVEN_OPTS` accordingly. + ### Slow Performance **Problem**: Linting takes too long. **Solution**: -- Use `-DskipTests` during build -- Disable verbose logging in production -- Check network latency for remote JARs +- Use `-DskipTests` during local builds when iterating +- Disable verbose logging in production CI unless needed +- Prefer local JARs over remote URLs when possible - Consider increasing heap size -- Profile with JVM tools if needed ### Class Loading Issues **Problem**: Classes cannot be loaded from plugin JAR. **Solution**: -- Verify JAR structure -- Check classpath configuration -- Ensure dependencies are included -- Use verbose mode to see classloader logs +- Verify JAR structure (`META-INF/services`, `bpe/`, `fhir/`) +- Ensure dependencies needed for hierarchy checks are available (shaded CLI includes Spring artifacts since 0.1.2) +- Use verbose mode to inspect classloader / discovery logs - Check API version compatibility --- @@ -8813,12 +8955,12 @@ Data Sharing Framework 2.x is the new upcoming release of the Data Sharing Frame # System Administrators -- [Install DSF 2.1.1](install) -- [Upgrade from DSF 1.9.0](upgrade-from-1) +- [Install DSF 2.1.3](install) +- [Upgrade from DSF 2.1.2](upgrade-from-2) ## New features -- See [Release Notes](https://github.com/datasharingframework/dsf/releases/tag/v2.1.1) +- See [Release Notes](https://github.com/datasharingframework/dsf/releases/tag/v2.1.3) + +A JSON schema is available to validate the configuration YAML: https://dsf.dev/schema/fhir_client_connections.json + +### Configuration Examples + +#### No Authentication, some defaults overridden + +ID: `no-auth-server` + +```yaml +# yaml-language-server: $schema=https://dsf.dev/schema/fhir_client_connections.json +no-auth-server: + base-url: https://no.auth.server:8443/fhir + test-connection-on-startup: yes + enable-debug-logging: yes + connect-timeout: PT0.5S + read-timeout: PT5M + trusted-root-certificates-file: 'ca.crt' +``` + +#### Basic Authentication + +ID: `basic-auth-server` + +```yaml +# yaml-language-server: $schema=https://dsf.dev/schema/fhir_client_connections.json +basic-auth-server: + base-url: https://basic.auth.server/fhir + basic-auth: + username: user + password-file: 'password.file’ +``` + +#### Client Certificate Authentication + +ID: `cert-auth-server` + +```yaml +# yaml-language-server: $schema=https://dsf.dev/schema/fhir_client_connections.json +cert-auth-server: + base-url: https://cert.auth.server/fhir/foo + cert-auth: + private-key-file: 'client.key' + certificate-file: 'client.crt' + password: 'password' +``` + +#### OIDC Client-Credentials-Flow Authentication + +ID: `oidc-auth-server` + +```yaml +# yaml-language-server: $schema=https://dsf.dev/schema/fhir_client_connections.json +oidc-auth-server: + base-url: https://oidc.auth.server/fhir + oidc-auth: + base-url: https://oidc.server + client-id: some_client_id + client-secret-file: 'path/password.file’ +``` + +For a full list of configuration properties see the FHIR client connections [validation schema](https://dsf.dev/schema/fhir_client_connections.json). \ No newline at end of file diff --git a/docs/src/operations/v2.1.3/bpe/logging.md b/docs/src/operations/v2.1.3/bpe/logging.md new file mode 100644 index 000000000..4707125c5 --- /dev/null +++ b/docs/src/operations/v2.1.3/bpe/logging.md @@ -0,0 +1,788 @@ +--- +title: Logging +icon: config +--- + +The DSF BPE Server provides a **Standard Application Logger** and a dedicated **Data Logger** to help debug problems with process plugins. Both mechanisms can output there messages to standard output (stdout), standard error (stderr) and dedicated log files. + +By default the **Standard Application Logger** is configured to output with min. level `INFO` and format `TEXT_COLOR` to *stdout* as well as min. level `DEBUG` and format `TEXT_MDC` to a dedicated log file. The **Data Logger** is disabled by default and should only be used to debug problems with process plugins temporarily. + +### Standard Application Logger +The file, *stdout* and *stderr* outputs for the **Standard Application Logger** can be enabled or disabled using the environment variables [`DEV_DSF_LOG_FILE_ENABLED`](./configuration.md#dev-dsf-log-file-enabled), [`DEV_DSF_LOG_CONSOLE_OUT_ENABLED`](./configuration.md#dev-dsf-log-console-out-enabled) and [`DEV_DSF_LOG_CONSOLE_ERR_ENABLED`](./configuration.md#dev-dsf-log-console-err-enabled). + +#### Output Level +Log messages are grouped by severity (low to high): `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`. A minimal log level can be configured for the file, *stdout* and *stderr* outputs using the environment variables [`DEV_DSF_LOG_FILE_LEVEL`](./configuration.md#dev-dsf-log-file-level), [`DEV_DSF_LOG_CONSOLE_OUT_LEVEL`](./configuration.md#dev-dsf-log-console-out-level) and [`DEV_DSF_LOG_CONSOLE_ERR_LEVEL`](./configuration.md#dev-dsf-log-console-err-level). + +#### Output Style +Multiple styles are supported for the **Standard Application Logger** file, *stdout* and *stderr* outputs. All structured logging JSON styles include additional infos (Mapped Diagnostic Context) about the executing process plugin and process instance, or the requesting user. The output style can be configured using the environment variables [`DEV_DSF_LOG_FILE_STYLE`](./configuration.md#dev-dsf-log-file-style), [`DEV_DSF_LOG_CONSOLE_OUT_STYLE`](./configuration.md#dev-dsf-log-console-out-style) and [`DEV_DSF_LOG_CONSOLE_ERR_STYLE`](./configuration.md#dev-dsf-log-console-err-style). The **TEXT_COLOR** and **TEXT_COLOR_MDC** styles are not supported for the file output. +* **TEXT** a minimal text format. +* **TEXT_COLOR** a minimal text format with ANSI escape sequences to colorize WARN and ERROR messages. Not supported for the file output. +* **TEXT_MDC** text format with additional infos (Mapped Diagnostic Context) about the requesting user. +* **TEXT_COLOR_MDC** text format with additional infos (Mapped Diagnostic Context) about the requesting user and ANSI escape sequences to colorize WARN and ERROR events. Not supported for the file output. +* **JSON_ECS** follows the Elastic Common Schema (ECS) reference. +* **JSON_GCP** uses the Google Cloud Platform structured logging model with additional `_thread`, `_logger` and `_exception` fields. +* **JSON_GELF** follows the Graylog Extended Log Format (GELF) payload specification with added `_thread` and `_logger` fields. +* **JSON_LOGSTASH** uses the Logstash json_event pattern for log4j. + +::: code-tabs#shell + +@tab TEXT + +```text :no-line-numbers +2026-01-14 12:21:17,892 [main] INFO dev.dsf.common.buildinfo.BuildInfoReaderImpl - Artifact: dsf-bpe-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:46+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685 +2026-01-14 12:23:15,922 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed +org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConnectionsConfig' defined in URL [jar:file:/opt/bpe/lib/dsf-bpe-server-2.0.1.jar!/dev/dsf/bpe/spring/config/FhirClientConnectionsConfig.class]: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1826) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:607) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130) + at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990) + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627) + at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394) + at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274) + at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501) + at org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348) + at org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429) + at org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066) + at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063) + at org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520) + at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92) + at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170) + at org.eclipse.jetty.server.Server.start(Server.java:689) + at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) + at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545) + at org.eclipse.jetty.server.Server.doStart(Server.java:630) + at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92) + at dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374) + at dev.dsf.bpe.BpeJettyServer.main(BpeJettyServer.java:56) +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs() + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.afterPropertiesSet(FhirClientConnectionsConfig.java:138) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1873) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1822) + ... 33 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 48 more +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider() + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.createDsfConfig(FhirClientConnectionsConfig.java:129) + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.fhirClientConfigs(FhirClientConnectionsConfig.java:105) + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.CGLIB$fhirClientConfigs$1() + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 51 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 73 more +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:357) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:212) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:431) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.getDsfClientKeyStore() + at dev.dsf.bpe.spring.config.DsfClientConfig.clientProvider(DsfClientConfig.java:93) + at dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1() + at dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 76 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 95 more +Caused by: java.lang.RuntimeException: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at dev.dsf.common.config.AbstractCertificateConfig.createClientKeyStore(AbstractCertificateConfig.java:235) + at dev.dsf.bpe.spring.config.PropertiesConfig.getDsfClientKeyStore(PropertiesConfig.java:579) + at dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.CGLIB$getDsfClientKeyStore$23() + at dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.getDsfClientKeyStore() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 98 more +Caused by: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:435) + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:398) + at dev.dsf.common.config.AbstractCertificateConfig.createClientKeyStore(AbstractCertificateConfig.java:228) + ... 107 more +Caused by: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo.decryptPrivateKeyInfo(Unknown Source) + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:430) + ... 109 more +Caused by: org.bouncycastle.crypto.io.InvalidCipherTextIOException: Error finalising cipher + at org.bouncycastle.jcajce.io.CipherInputStream.finaliseCipher(Unknown Source) + at org.bouncycastle.jcajce.io.CipherInputStream.nextChunk(Unknown Source) + at org.bouncycastle.jcajce.io.CipherInputStream.read(Unknown Source) + at org.bouncycastle.util.io.Streams.pipeAll(Unknown Source) + at org.bouncycastle.util.io.Streams.pipeAll(Unknown Source) + at org.bouncycastle.util.io.Streams.readAll(Unknown Source) + ... 111 more +Caused by: javax.crypto.BadPaddingException: pad block corrupted + at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.doFinal(Unknown Source) + at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) + at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2139) + ... 117 more +2026-01-14 12:24:35,514 [pool-2-thread-1] INFO dev.dsf.bpe.v2.listener.StartListener - Starting process http://dsf.dev/bpe/Process/helloWorld|2.0 at 2026-01-14T12:24:35+01:00 [task: https://fhir/fhir/Task/04c2ff6f-dfce-4201-9c3d-bbce15dc892a, requester: webbrowser.test.user@invalid, business-key: 92f2eee2-319e-47dc-8bdb-f646740b05c8, message: helloWorld] +2026-01-14 12:24:35,521 [pool-2-thread-1] INFO dev.dsf.bpe.service.HelloWorld - Hello World from organization with identifier 'webbrowser.test.user@invalid' +``` + +@tab TEXT_MDC + +```text :no-line-numbers +2026-01-14 12:25:51,000 [main] INFO dev.dsf.common.buildinfo.BuildInfoReaderImpl - Artifact: dsf-bpe-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:46+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685 +2026-01-14 12:26:24,075 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed +org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConnectionsConfig' defined in URL [jar:file:/opt/bpe/lib/dsf-bpe-server-2.0.1.jar!/dev/dsf/bpe/spring/config/FhirClientConnectionsConfig.class]: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1826) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:607) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130) + at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990) + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627) + at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394) + at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274) + at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501) + at org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348) + at org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429) + at org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066) + at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063) + at org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520) + at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92) + at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170) + at org.eclipse.jetty.server.Server.start(Server.java:689) + at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) + at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545) + at org.eclipse.jetty.server.Server.doStart(Server.java:630) + at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92) + at dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374) + at dev.dsf.bpe.BpeJettyServer.main(BpeJettyServer.java:56) +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs() + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.afterPropertiesSet(FhirClientConnectionsConfig.java:138) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1873) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1822) + ... 33 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 48 more +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider() + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.createDsfConfig(FhirClientConnectionsConfig.java:129) + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.fhirClientConfigs(FhirClientConnectionsConfig.java:105) + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.CGLIB$fhirClientConfigs$1() + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 51 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 73 more +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:357) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:212) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:431) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.getDsfClientKeyStore() + at dev.dsf.bpe.spring.config.DsfClientConfig.clientProvider(DsfClientConfig.java:93) + at dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1() + at dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 76 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 95 more +Caused by: java.lang.RuntimeException: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at dev.dsf.common.config.AbstractCertificateConfig.createClientKeyStore(AbstractCertificateConfig.java:235) + at dev.dsf.bpe.spring.config.PropertiesConfig.getDsfClientKeyStore(PropertiesConfig.java:579) + at dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.CGLIB$getDsfClientKeyStore$23() + at dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.getDsfClientKeyStore() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 98 more +Caused by: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:435) + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:398) + at dev.dsf.common.config.AbstractCertificateConfig.createClientKeyStore(AbstractCertificateConfig.java:228) + ... 107 more +Caused by: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo.decryptPrivateKeyInfo(Unknown Source) + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:430) + ... 109 more +Caused by: org.bouncycastle.crypto.io.InvalidCipherTextIOException: Error finalising cipher + at org.bouncycastle.jcajce.io.CipherInputStream.finaliseCipher(Unknown Source) + at org.bouncycastle.jcajce.io.CipherInputStream.nextChunk(Unknown Source) + at org.bouncycastle.jcajce.io.CipherInputStream.read(Unknown Source) + at org.bouncycastle.util.io.Streams.pipeAll(Unknown Source) + at org.bouncycastle.util.io.Streams.pipeAll(Unknown Source) + at org.bouncycastle.util.io.Streams.readAll(Unknown Source) + ... 111 more +Caused by: javax.crypto.BadPaddingException: pad block corrupted + at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.doFinal(Unknown Source) + at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) + at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2139) + ... 117 more +2026-01-14 12:28:10,811 [pool-2-thread-1] INFO dev.dsf.bpe.v2.listener.StartListener - {dsf.plugin.api=2, dsf.plugin.jar=process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar, dsf.plugin.name=dsf-process-hello-world, dsf.plugin.version=2.0.0.0, dsf.process=http://dsf.dev/bpe/Process/helloWorld|2.0, dsf.process.activityId=StartEvent_1, dsf.process.businessKey=110f2d10-e140-4e9f-a76d-63e9c3eb4579, dsf.process.definitionId=dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa, dsf.process.definitionKey=dsfdev_helloWorld, dsf.process.instanceId=1b5bd4cf-f13c-11f0-8e80-b6c09f49be99, dsf.process.requester.start=webbrowser.test.user@invalid, dsf.process.task.start=https://fhir/fhir/Task/b822f6cb-3cf0-4132-926e-fd7730e780f0} - Starting process http://dsf.dev/bpe/Process/helloWorld|2.0 at 2026-01-14T12:28:10+01:00 [task: https://fhir/fhir/Task/b822f6cb-3cf0-4132-926e-fd7730e780f0, requester: webbrowser.test.user@invalid, business-key: 110f2d10-e140-4e9f-a76d-63e9c3eb4579, message: helloWorld] +2026-01-14 12:28:10,820 [pool-2-thread-1] INFO dev.dsf.bpe.service.HelloWorld - {dsf.plugin.api=2, dsf.plugin.jar=process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar, dsf.plugin.name=dsf-process-hello-world, dsf.plugin.version=2.0.0.0, dsf.process=http://dsf.dev/bpe/Process/helloWorld|2.0, dsf.process.activityId=helloWorldTask, dsf.process.activityName=Hello World, dsf.process.businessKey=110f2d10-e140-4e9f-a76d-63e9c3eb4579, dsf.process.definitionId=dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa, dsf.process.definitionKey=dsfdev_helloWorld, dsf.process.instanceId=1b5bd4cf-f13c-11f0-8e80-b6c09f49be99, dsf.process.requester.start=webbrowser.test.user@invalid, dsf.process.task.start=https://fhir/fhir/Task/b822f6cb-3cf0-4132-926e-fd7730e780f0} - Hello World from organization with identifier 'webbrowser.test.user@invalid' +``` + +@tab JSON_ECS + +```json :no-line-numbers +{ + "@timestamp": "2026-01-14T11:33:31.869Z", + "ecs.version": "1.2.0", + "log.level": "INFO", + "message": "Artifact: dsf-bpe-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:46+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685", + "process.thread.name": "main", + "log.logger": "dev.dsf.common.buildinfo.BuildInfoReaderImpl" +} +{ + "@timestamp": "2026-01-14T11:34:59.557Z", + "ecs.version": "1.2.0", + "log.level": "ERROR", + "message": "Context initialization failed", + "process.thread.name": "main", + "log.logger": "org.springframework.web.context.ContextLoader", + "error.type": "org.springframework.beans.factory.BeanCreationException", + "error.message": "Error creating bean with name 'fhirClientConnectionsConfig' defined in URL [jar:file:/opt/bpe/lib/dsf-bpe-server-2.0.1.jar!/dev/dsf/bpe/spring/config/FhirClientConnectionsConfig.class]: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher", + "error.stack_trace": "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConnectionsConfig' defined in URL [jar:file:/opt/bpe/lib/dsf-bpe-server-2.0.1.jar!/dev/dsf/bpe/spring/config/FhirClientConnectionsConfig.class]: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1826)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:607)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.bpe.BpeJettyServer.main(BpeJettyServer.java:56)\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.afterPropertiesSet(FhirClientConnectionsConfig.java:138)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1873)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1822)\n\t... 33 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 48 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.createDsfConfig(FhirClientConnectionsConfig.java:129)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.fhirClientConfigs(FhirClientConnectionsConfig.java:105)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.CGLIB$fhirClientConfigs$2()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 51 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 73 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:357)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:212)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:431)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.getDsfClientKeyStore()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig.clientProvider(DsfClientConfig.java:93)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.ja…" +} +{ + "@timestamp": "2026-01-14T11:36:22.477Z", + "ecs.version": "1.2.0", + "log.level": "INFO", + "message": "Starting process http://dsf.dev/bpe/Process/helloWorld|2.0 at 2026-01-14T12:36:22+01:00 [task: https://fhir/fhir/Task/8e9cd5b0-17db-460a-9e4a-73d6c8128ed4, requester: webbrowser.test.user@invalid, business-key: 6d808467-4b71-44bd-8c4c-1ec9f5482855, message: helloWorld]", + "process.thread.name": "pool-2-thread-1", + "log.logger": "dev.dsf.bpe.v2.listener.StartListener", + "dsf.plugin.api": "2", + "dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "dsf.plugin.name": "dsf-process-hello-world", + "dsf.plugin.version": "2.0.0.0", + "dsf.process": "http://dsf.dev/bpe/Process/helloWorld|2.0", + "dsf.process.activityId": "StartEvent_1", + "dsf.process.businessKey": "6d808467-4b71-44bd-8c4c-1ec9f5482855", + "dsf.process.definitionId": "dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa", + "dsf.process.definitionKey": "dsfdev_helloWorld", + "dsf.process.instanceId": "406b2d2f-f13d-11f0-9f64-5e3458c5889b", + "dsf.process.requester.start": "webbrowser.test.user@invalid", + "dsf.process.task.start": "https://fhir/fhir/Task/8e9cd5b0-17db-460a-9e4a-73d6c8128ed4" +} +{ + "@timestamp": "2026-01-14T11:36:22.483Z", + "ecs.version": "1.2.0", + "log.level": "INFO", + "message": "Hello World from organization with identifier 'webbrowser.test.user@invalid'", + "process.thread.name": "pool-2-thread-1", + "log.logger": "dev.dsf.bpe.service.HelloWorld", + "dsf.plugin.api": "2", + "dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "dsf.plugin.name": "dsf-process-hello-world", + "dsf.plugin.version": "2.0.0.0", + "dsf.process": "http://dsf.dev/bpe/Process/helloWorld|2.0", + "dsf.process.activityId": "helloWorldTask", + "dsf.process.activityName": "Hello World", + "dsf.process.businessKey": "6d808467-4b71-44bd-8c4c-1ec9f5482855", + "dsf.process.definitionId": "dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa", + "dsf.process.definitionKey": "dsfdev_helloWorld", + "dsf.process.instanceId": "406b2d2f-f13d-11f0-9f64-5e3458c5889b", + "dsf.process.requester.start": "webbrowser.test.user@invalid", + "dsf.process.task.start": "https://fhir/fhir/Task/8e9cd5b0-17db-460a-9e4a-73d6c8128ed4" +} +``` + +@tab JSON_GCP + +```json :no-line-numbers +{ + "timestampSeconds": 1768390669, + "timestampNanos": 347278835, + "severity": "INFO", + "message": "Artifact: dsf-bpe-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:46+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685", + "logging.googleapis.com/sourceLocation": { + "function": "dev.dsf.common.buildinfo.BuildInfoReaderImpl.logBuildInfo" + }, + "logging.googleapis.com/trace_sampled": true, + "thread": "main", + "logger": "dev.dsf.common.buildinfo.BuildInfoReaderImpl" +} +{ + "timestampSeconds": 1768390720, + "timestampNanos": 287531451, + "severity": "ERROR", + "message": "Context initialization failed\norg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConnectionsConfig' defined in URL [jar:file:/opt/bpe/lib/dsf-bpe-server-2.0.1.jar!/dev/dsf/bpe/spring/config/FhirClientConnectionsConfig.class]: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1826)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:607)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.bpe.BpeJettyServer.main(BpeJettyServer.java:56)\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.afterPropertiesSet(FhirClientConnectionsConfig.java:138)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1873)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1822)\n\t... 33 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 48 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.createDsfConfig(FhirClientConnectionsConfig.java:129)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.fhirClientConfigs(FhirClientConnectionsConfig.java:105)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.CGLIB$fhirClientConfigs$1()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 51 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 73 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:357)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:212)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:431)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.getDsfClientKeyStore()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig.clientProvider(DsfClientConfig.java:93)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(…", + "logging.googleapis.com/sourceLocation": { + "function": "org.springframework.web.context.ContextLoader.initWebApplicationContext" + }, + "logging.googleapis.com/trace_sampled": true, + "exception": "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConnectionsConfig' defined in URL [jar:file:/opt/bpe/lib/dsf-bpe-server-2.0.1.jar!/dev/dsf/bpe/spring/config/FhirClientConnectionsConfig.class]: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1826)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:607)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.bpe.BpeJettyServer.main(BpeJettyServer.java:56)\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.afterPropertiesSet(FhirClientConnectionsConfig.java:138)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1873)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1822)\n\t... 33 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 48 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.createDsfConfig(FhirClientConnectionsConfig.java:129)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.fhirClientConfigs(FhirClientConnectionsConfig.java:105)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.CGLIB$fhirClientConfigs$1()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 51 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 73 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:357)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:212)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:431)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.getDsfClientKeyStore()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig.clientProvider(DsfClientConfig.java:93)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.ja…", + "thread": "main", + "logger": "org.springframework.web.context.ContextLoader" +} +{ + "timestampSeconds": 1768390780, + "timestampNanos": 130358998, + "severity": "INFO", + "message": "Starting process http://dsf.dev/bpe/Process/helloWorld|2.0 at 2026-01-14T12:39:40+01:00 [task: https://fhir/fhir/Task/cf656fa3-2067-4e7e-8325-7f6cf1f4300d, requester: webbrowser.test.user@invalid, business-key: 6741a33d-09bd-405e-b011-81c16f42f08f, message: helloWorld]", + "logging.googleapis.com/labels": { + "dsf.plugin.api": "2", + "dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "dsf.plugin.name": "dsf-process-hello-world", + "dsf.plugin.version": "2.0.0.0", + "dsf.process": "http://dsf.dev/bpe/Process/helloWorld|2.0", + "dsf.process.activityId": "StartEvent_1", + "dsf.process.businessKey": "6741a33d-09bd-405e-b011-81c16f42f08f", + "dsf.process.definitionId": "dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa", + "dsf.process.definitionKey": "dsfdev_helloWorld", + "dsf.process.instanceId": "b63a052a-f13d-11f0-b579-bad729d5f5ed", + "dsf.process.requester.start": "webbrowser.test.user@invalid", + "dsf.process.task.start": "https://fhir/fhir/Task/cf656fa3-2067-4e7e-8325-7f6cf1f4300d" + }, + "logging.googleapis.com/sourceLocation": { + "function": "dev.dsf.bpe.v2.listener.StartListener.logStart" + }, + "logging.googleapis.com/trace_sampled": true, + "thread": "pool-2-thread-1", + "logger": "dev.dsf.bpe.v2.listener.StartListener" +} +{ + "timestampSeconds": 1768390780, + "timestampNanos": 137602932, + "severity": "INFO", + "message": "Hello World from organization with identifier 'webbrowser.test.user@invalid'", + "logging.googleapis.com/labels": { + "dsf.plugin.api": "2", + "dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "dsf.plugin.name": "dsf-process-hello-world", + "dsf.plugin.version": "2.0.0.0", + "dsf.process": "http://dsf.dev/bpe/Process/helloWorld|2.0", + "dsf.process.activityId": "helloWorldTask", + "dsf.process.activityName": "Hello World", + "dsf.process.businessKey": "6741a33d-09bd-405e-b011-81c16f42f08f", + "dsf.process.definitionId": "dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa", + "dsf.process.definitionKey": "dsfdev_helloWorld", + "dsf.process.instanceId": "b63a052a-f13d-11f0-b579-bad729d5f5ed", + "dsf.process.requester.start": "webbrowser.test.user@invalid", + "dsf.process.task.start": "https://fhir/fhir/Task/cf656fa3-2067-4e7e-8325-7f6cf1f4300d" + }, + "logging.googleapis.com/sourceLocation": { + "function": "dev.dsf.bpe.service.HelloWorld.execute" + }, + "logging.googleapis.com/trace_sampled": true, + "thread": "pool-2-thread-1", + "logger": "dev.dsf.bpe.service.HelloWorld" +} +``` + +@tab JSON_GELF + +```json :no-line-numbers +{ + "version": "1.1", + "host": "ce85e727ccb2", + "short_message": "Artifact: dsf-bpe-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:46+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685", + "timestamp": 1768390889.4524915, + "level": 6, + "_logger": "dev.dsf.common.buildinfo.BuildInfoReaderImpl", + "_thread": "main" +} +{ + "version": "1.1", + "host": "4fa9b078922b", + "short_message": "Context initialization failed", + "full_message": "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConnectionsConfig' defined in URL [jar:file:/opt/bpe/lib/dsf-bpe-server-2.0.1.jar!/dev/dsf/bpe/spring/config/FhirClientConnectionsConfig.class]: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1826)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:607)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.bpe.BpeJettyServer.main(BpeJettyServer.java:56)\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.afterPropertiesSet(FhirClientConnectionsConfig.java:138)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1873)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1822)\n\t... 33 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 48 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.createDsfConfig(FhirClientConnectionsConfig.java:129)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.fhirClientConfigs(FhirClientConnectionsConfig.java:105)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.CGLIB$fhirClientConfigs$2()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 51 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 73 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:357)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:212)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:431)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.getDsfClientKeyStore()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig.clientProvider(DsfClientConfig.java:93)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.ja…", + "timestamp": 1768390920.9521272, + "level": 3, + "_logger": "org.springframework.web.context.ContextLoader", + "_thread": "main" +} +{ + "version": "1.1", + "host": "bfc8c2c136fd", + "short_message": "Starting process http://dsf.dev/bpe/Process/helloWorld|2.0 at 2026-01-14T12:43:10+01:00 [task: https://fhir/fhir/Task/c8e6bcd1-2d1f-4e83-9ebe-fe9e47001771, requester: webbrowser.test.user@invalid, business-key: ee2b9d8b-ea9b-4b0f-85f0-4ce36fda5520, message: helloWorld]", + "timestamp": 1768390990.5990896, + "level": 6, + "_logger": "dev.dsf.bpe.v2.listener.StartListener", + "_thread": "pool-2-thread-1", + "_dsf.plugin.api": "2", + "_dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "_dsf.plugin.name": "dsf-process-hello-world", + "_dsf.plugin.version": "2.0.0.0", + "_dsf.process": "http://dsf.dev/bpe/Process/helloWorld|2.0", + "_dsf.process.activityId": "StartEvent_1", + "_dsf.process.businessKey": "ee2b9d8b-ea9b-4b0f-85f0-4ce36fda5520", + "_dsf.process.definitionId": "dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa", + "_dsf.process.definitionKey": "dsfdev_helloWorld", + "_dsf.process.instanceId": "33ac9516-f13e-11f0-b349-ca0141535fb3", + "_dsf.process.requester.start": "webbrowser.test.user@invalid", + "_dsf.process.task.start": "https://fhir/fhir/Task/c8e6bcd1-2d1f-4e83-9ebe-fe9e47001771" +} +{ + "version": "1.1", + "host": "bfc8c2c136fd", + "short_message": "Hello World from organization with identifier 'webbrowser.test.user@invalid'", + "timestamp": 1768390990.6061802, + "level": 6, + "_logger": "dev.dsf.bpe.service.HelloWorld", + "_thread": "pool-2-thread-1", + "_dsf.plugin.api": "2", + "_dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "_dsf.plugin.name": "dsf-process-hello-world", + "_dsf.plugin.version": "2.0.0.0", + "_dsf.process": "http://dsf.dev/bpe/Process/helloWorld|2.0", + "_dsf.process.activityId": "helloWorldTask", + "_dsf.process.activityName": "Hello World", + "_dsf.process.businessKey": "ee2b9d8b-ea9b-4b0f-85f0-4ce36fda5520", + "_dsf.process.definitionId": "dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa", + "_dsf.process.definitionKey": "dsfdev_helloWorld", + "_dsf.process.instanceId": "33ac9516-f13e-11f0-b349-ca0141535fb3", + "_dsf.process.requester.start": "webbrowser.test.user@invalid", + "_dsf.process.task.start": "https://fhir/fhir/Task/c8e6bcd1-2d1f-4e83-9ebe-fe9e47001771" +} +``` + +@tab:active JSON_LOGSTASH + +```json :no-line-numbers +{ + "@version": 1, + "source_host": "c3d9798e2b31", + "message": "Artifact: dsf-bpe-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:46+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685", + "thread_name": "main", + "@timestamp": "2026-01-14T12:44:25.462+0100", + "level": "INFO", + "logger_name": "dev.dsf.common.buildinfo.BuildInfoReaderImpl" +} +{ + "exception": { + "exception_class": "org.springframework.beans.factory.BeanCreationException", + "exception_message": "Error creating bean with name 'fhirClientConnectionsConfig' defined in URL [jar:file:/opt/bpe/lib/dsf-bpe-server-2.0.1.jar!/dev/dsf/bpe/spring/config/FhirClientConnectionsConfig.class]: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher", + "stacktrace": "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConnectionsConfig' defined in URL [jar:file:/opt/bpe/lib/dsf-bpe-server-2.0.1.jar!/dev/dsf/bpe/spring/config/FhirClientConnectionsConfig.class]: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1826)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:607)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.bpe.BpeJettyServer.main(BpeJettyServer.java:56)\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirClientConfigs' defined in dev.dsf.bpe.spring.config.FhirClientConnectionsConfig: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.afterPropertiesSet(FhirClientConnectionsConfig.java:138)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1873)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1822)\n\t... 33 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.api.config.FhirClientConfigs]: Circular reference involving containing bean 'fhirClientConnectionsConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'fhirClientConfigs' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 48 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.bpe.spring.config.DsfClientConfig: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.createDsfConfig(FhirClientConnectionsConfig.java:129)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig.fhirClientConfigs(FhirClientConnectionsConfig.java:105)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.CGLIB$fhirClientConfigs$2()\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.FhirClientConnectionsConfig$$SpringCGLIB$$0.fhirClientConfigs()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 51 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.bpe.client.dsf.ClientProvider]: Factory method 'clientProvider' threw exception with message: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 73 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getDsfClientKeyStore' defined in dev.dsf.bpe.spring.config.PropertiesConfig: Failed to instantiate [java.security.KeyStore]: Factory method 'getDsfClientKeyStore' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:357)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:212)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:431)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.bpe.spring.config.PropertiesConfig$$SpringCGLIB$$0.getDsfClientKeyStore()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig.clientProvider(DsfClientConfig.java:93)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.bpe.spring.config.DsfClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.ja…" + }, + "@version": 1, + "source_host": "ff514e221e2f", + "message": "Context initialization failed", + "thread_name": "main", + "@timestamp": "2026-01-14T12:44:55.089+0100", + "level": "ERROR", + "logger_name": "org.springframework.web.context.ContextLoader" +} +{ + "mdc": { + "dsf.plugin.api": "2", + "dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "dsf.plugin.name": "dsf-process-hello-world", + "dsf.plugin.version": "2.0.0.0", + "dsf.process": "http://dsf.dev/bpe/Process/helloWorld|2.0", + "dsf.process.activityId": "StartEvent_1", + "dsf.process.businessKey": "03976b9d-8390-4891-968e-606092e49a9f", + "dsf.process.definitionId": "dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa", + "dsf.process.definitionKey": "dsfdev_helloWorld", + "dsf.process.instanceId": "94b6ce54-f13e-11f0-8382-f2c6c2fdda86", + "dsf.process.requester.start": "webbrowser.test.user@invalid", + "dsf.process.task.start": "https://fhir/fhir/Task/92b09db8-ffc5-4d32-982a-0212a69fb6e4" + }, + "@version": 1, + "source_host": "45bbbf8076b6", + "message": "Starting process http://dsf.dev/bpe/Process/helloWorld|2.0 at 2026-01-14T12:45:53+01:00 [task: https://fhir/fhir/Task/92b09db8-ffc5-4d32-982a-0212a69fb6e4, requester: webbrowser.test.user@invalid, business-key: 03976b9d-8390-4891-968e-606092e49a9f, message: helloWorld]", + "thread_name": "pool-2-thread-1", + "@timestamp": "2026-01-14T12:45:53.399+0100", + "level": "INFO", + "logger_name": "dev.dsf.bpe.v2.listener.StartListener" +} +{ + "mdc": { + "dsf.plugin.api": "2", + "dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "dsf.plugin.name": "dsf-process-hello-world", + "dsf.plugin.version": "2.0.0.0", + "dsf.process": "http://dsf.dev/bpe/Process/helloWorld|2.0", + "dsf.process.activityId": "helloWorldTask", + "dsf.process.activityName": "Hello World", + "dsf.process.businessKey": "03976b9d-8390-4891-968e-606092e49a9f", + "dsf.process.definitionId": "dsfdev_helloWorld:1:28f93392-f13b-11f0-92c1-5ed660dabcfa", + "dsf.process.definitionKey": "dsfdev_helloWorld", + "dsf.process.instanceId": "94b6ce54-f13e-11f0-8382-f2c6c2fdda86", + "dsf.process.requester.start": "webbrowser.test.user@invalid", + "dsf.process.task.start": "https://fhir/fhir/Task/92b09db8-ffc5-4d32-982a-0212a69fb6e4" + }, + "@version": 1, + "source_host": "45bbbf8076b6", + "message": "Hello World from organization with identifier 'webbrowser.test.user@invalid'", + "thread_name": "pool-2-thread-1", + "@timestamp": "2026-01-14T12:45:53.406+0100", + "level": "INFO", + "logger_name": "dev.dsf.bpe.service.HelloWorld" +} +``` + +::: + +### Data Logger +The file, *stdout* and *stderr* outputs for the **Data Logger** can be enabled or disabled using the environment variables [`DEV_DSF_LOG_DATA_FILE_ENABLED`](./configuration.md#dev-dsf-log-data-file-enabled), [`DEV_DSF_LOG_DATA_CONSOLE_OUT_ENABLED`](./configuration.md#dev-dsf-log-data-console-out-enabled) and [`DEV_DSF_LOG_DATA_CONSOLE_ERR_ENABLED`](./configuration.md#dev-dsf-log-data-console-err-enabled). + +All data messages are logged with the same severity level (DEBUG). Data messages are not included in the Standard Application Logger output. API v2 Process Plugins can use the data logger via the `dev.dsf.bpe.v2.service.DataLogger` interface to produce messages. + +#### Output Style +Multiple styles are supported for the **Data Logger** file, *stdout* and *stderr* outputs. All structured logging JSON styles include additional infos (Mapped Diagnostic Context) about the executing process plugin and process instance. The output style can be configured using the environment variables [`DEV_DSF_LOG_DATA_FILE_STYLE`](./configuration.md#dev-dsf-log-data-file-style), [`DEV_DSF_LOG_DATA_CONSOLE_OUT_STYLE`](./configuration.md#dev-dsf-log-data-console-out-style) and [`DEV_DSF_LOG_DATA_CONSOLE_ERR_STYLE`](./configuration.md#dev-dsf-log-data-console-err-style). +* **TEXT** a minimal text format. +* **TEXT_MDC** text format with additional infos (Mapped Diagnostic Context) about the requesting user. +* **JSON_ECS** follows the Elastic Common Schema (ECS) reference. +* **JSON_GCP** uses the Google Cloud Platform structured logging model with additional `_thread`, `_logger` and `_exception` fields. +* **JSON_GELF** follows the Graylog Extended Log Format (GELF) payload specification with added `_thread` and `_logger` fields. +* **JSON_LOGSTASH** uses the Logstash json_event pattern for log4j. + +::: code-tabs#shell + +@tab TEXT + +```text :no-line-numbers +2026-01-14 13:25:20,030 Completed QuestionnaireResponse: {"resourceType":"QuestionnaireResponse","id":"e4dd7038-eef1-4b03-8249-21eb8f9f8309","meta":{"versionId":"2","lastUpdated":"2026-01-14T13:25:19.800+01:00","profile":["http://dsf.dev/fhir/StructureDefinition/questionnaire-response"]},"extension":[{"url":"http://dsf.dev/fhir/StructureDefinition/extension-questionnaire-authorization","extension":[{"url":"practitioner-role","valueCoding":{"system":"http://dsf.dev/fhir/CodeSystem/practitioner-role","code":"DIC_USER"}}]}],"questionnaire":"http://dsf.dev/fhir/Questionnaire/hello-user|2.0","status":"completed","authored":"2026-01-14T12:25:19.707Z","author":{"type":"Practitioner","identifier":{"system":"http://dsf.dev/sid/practitioner-identifier","value":"webbrowser.test.user@invalid"}},"item":[{"linkId":"business-key","text":"The business-key of the process execution","answer":[{"valueString":"a8e436f4-d86d-4f24-a794-236d62645ab8"}]},{"linkId":"user-task-id","text":"The user-task-id of the process execution","answer":[{"valueString":"ec4da6fd-f143-11f0-80e8-9ae86e84a87b"}]},{"linkId":"display-example","text":"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."},{"linkId":"string-example","text":"Add a string to test the string type","answer":[{"valueString":"Placeholder.."}]},{"linkId":"text-example","text":"Add a text to test the text type","answer":[{"valueString":"Placeholder.."}]}]} +``` + +@tab TEXT_MDC + +```text :no-line-numbers +2026-01-14 13:26:21,587 {dsf.plugin.api=2, dsf.plugin.jar=process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar, dsf.plugin.name=dsf-process-hello-world, dsf.plugin.version=2.0.0.0, dsf.process=http://dsf.dev/bpe/Process/helloUser|2.0, dsf.process.activityId=logUserTaskRespose, dsf.process.activityName=log user task respose, dsf.process.businessKey=bbc5b6d5-7c64-4181-b0c6-82f656883229, dsf.process.definitionId=dsfdev_helloUser:1:28feb1d6-f13b-11f0-92c1-5ed660dabcfa, dsf.process.definitionKey=dsfdev_helloUser, dsf.process.instanceId=35e4749a-f144-11f0-b0d1-bab98b35e98d, dsf.process.requester.start=webbrowser.test.user@invalid, dsf.process.task.start=https://fhir/fhir/Task/eb91b3c1-b635-4ab7-8ba6-00328584b495} Completed QuestionnaireResponse: {"resourceType":"QuestionnaireResponse","id":"38cae383-828b-4acb-b427-c3c3cff23718","meta":{"versionId":"2","lastUpdated":"2026-01-14T13:26:21.436+01:00","profile":["http://dsf.dev/fhir/StructureDefinition/questionnaire-response"]},"extension":[{"url":"http://dsf.dev/fhir/StructureDefinition/extension-questionnaire-authorization","extension":[{"url":"practitioner-role","valueCoding":{"system":"http://dsf.dev/fhir/CodeSystem/practitioner-role","code":"DIC_USER"}}]}],"questionnaire":"http://dsf.dev/fhir/Questionnaire/hello-user|2.0","status":"completed","authored":"2026-01-14T12:26:21.328Z","author":{"type":"Practitioner","identifier":{"system":"http://dsf.dev/sid/practitioner-identifier","value":"webbrowser.test.user@invalid"}},"item":[{"linkId":"business-key","text":"The business-key of the process execution","answer":[{"valueString":"bbc5b6d5-7c64-4181-b0c6-82f656883229"}]},{"linkId":"user-task-id","text":"The user-task-id of the process execution","answer":[{"valueString":"35ec8af3-f144-11f0-b0d1-bab98b35e98d"}]},{"linkId":"display-example","text":"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."},{"linkId":"string-example","text":"Add a string to test the string type","answer":[{"valueString":"Placeholder.."}]},{"linkId":"text-example","text":"Add a text to test the text type","answer":[{"valueString":"Placeholder.."}]}]} +``` + +@tab JSON_ECS + +```json :no-line-numbers +{ + "@timestamp": "2026-01-14T12:34:21.464Z", + "ecs.version": "1.2.0", + "log.level": "DEBUG", + "message": "Completed QuestionnaireResponse: {\"resourceType\":\"QuestionnaireResponse\",\"id\":\"043a9d98-11b5-4445-accd-efb88441814b\",\"meta\":{\"versionId\":\"2\",\"lastUpdated\":\"2026-01-14T13:34:21.314+01:00\",\"profile\":[\"http://dsf.dev/fhir/StructureDefinition/questionnaire-response\"]},\"extension\":[{\"url\":\"http://dsf.dev/fhir/StructureDefinition/extension-questionnaire-authorization\",\"extension\":[{\"url\":\"practitioner-role\",\"valueCoding\":{\"system\":\"http://dsf.dev/fhir/CodeSystem/practitioner-role\",\"code\":\"DIC_USER\"}}]}],\"questionnaire\":\"http://dsf.dev/fhir/Questionnaire/hello-user|2.0\",\"status\":\"completed\",\"authored\":\"2026-01-14T12:34:21.220Z\",\"author\":{\"type\":\"Practitioner\",\"identifier\":{\"system\":\"http://dsf.dev/sid/practitioner-identifier\",\"value\":\"webbrowser.test.user@invalid\"}},\"item\":[{\"linkId\":\"business-key\",\"text\":\"The business-key of the process execution\",\"answer\":[{\"valueString\":\"9f871bb0-ead8-4172-8ebf-b6614b90c33c\"}]},{\"linkId\":\"user-task-id\",\"text\":\"The user-task-id of the process execution\",\"answer\":[{\"valueString\":\"55ea6fce-f145-11f0-a290-be1b81df4ab5\"}]},{\"linkId\":\"display-example\",\"text\":\"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\"},{\"linkId\":\"string-example\",\"text\":\"Add a string to test the string type\",\"answer\":[{\"valueString\":\"Placeholder..\"}]},{\"linkId\":\"text-example\",\"text\":\"Add a text to test the text type\",\"answer\":[{\"valueString\":\"Placeholder..\"}]}]}", + "process.thread.name": "pool-3-thread-1", + "log.logger": "dsf-data-logger", + "dsf.plugin.api": "2", + "dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "dsf.plugin.name": "dsf-process-hello-world", + "dsf.plugin.version": "2.0.0.0", + "dsf.process": "http://dsf.dev/bpe/Process/helloUser|2.0", + "dsf.process.activityId": "logUserTaskRespose", + "dsf.process.activityName": "log user task respose", + "dsf.process.businessKey": "9f871bb0-ead8-4172-8ebf-b6614b90c33c", + "dsf.process.definitionId": "dsfdev_helloUser:1:57f9bd33-f144-11f0-a290-be1b81df4ab5", + "dsf.process.definitionKey": "dsfdev_helloUser", + "dsf.process.instanceId": "55e602f5-f145-11f0-a290-be1b81df4ab5", + "dsf.process.requester.start": "webbrowser.test.user@invalid", + "dsf.process.task.start": "https://fhir/fhir/Task/776fb9fa-67cb-490c-929b-c9a010c3639e" +} +``` + +@tab JSON_GCP + +```json :no-line-numbers +{ + "timestampSeconds": 1768394122, + "timestampNanos": 561090136, + "severity": "DEBUG", + "message": "Completed QuestionnaireResponse: {\"resourceType\":\"QuestionnaireResponse\",\"id\":\"5bb1f439-93f9-4d73-9574-2d710a64d0fb\",\"meta\":{\"versionId\":\"2\",\"lastUpdated\":\"2026-01-14T13:35:22.381+01:00\",\"profile\":[\"http://dsf.dev/fhir/StructureDefinition/questionnaire-response\"]},\"extension\":[{\"url\":\"http://dsf.dev/fhir/StructureDefinition/extension-questionnaire-authorization\",\"extension\":[{\"url\":\"practitioner-role\",\"valueCoding\":{\"system\":\"http://dsf.dev/fhir/CodeSystem/practitioner-role\",\"code\":\"DIC_USER\"}}]}],\"questionnaire\":\"http://dsf.dev/fhir/Questionnaire/hello-user|2.0\",\"status\":\"completed\",\"authored\":\"2026-01-14T12:35:22.286Z\",\"author\":{\"type\":\"Practitioner\",\"identifier\":{\"system\":\"http://dsf.dev/sid/practitioner-identifier\",\"value\":\"webbrowser.test.user@invalid\"}},\"item\":[{\"linkId\":\"business-key\",\"text\":\"The business-key of the process execution\",\"answer\":[{\"valueString\":\"23f23222-810f-40d2-b228-63dc65efedbf\"}]},{\"linkId\":\"user-task-id\",\"text\":\"The user-task-id of the process execution\",\"answer\":[{\"valueString\":\"79ccfcd6-f145-11f0-b859-02f958cc3f48\"}]},{\"linkId\":\"display-example\",\"text\":\"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\"},{\"linkId\":\"string-example\",\"text\":\"Add a string to test the string type\",\"answer\":[{\"valueString\":\"Placeholder..\"}]},{\"linkId\":\"text-example\",\"text\":\"Add a text to test the text type\",\"answer\":[{\"valueString\":\"Placeholder..\"}]}]}", + "logging.googleapis.com/labels": { + "dsf.plugin.api": "2", + "dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "dsf.plugin.name": "dsf-process-hello-world", + "dsf.plugin.version": "2.0.0.0", + "dsf.process": "http://dsf.dev/bpe/Process/helloUser|2.0", + "dsf.process.activityId": "logUserTaskRespose", + "dsf.process.activityName": "log user task respose", + "dsf.process.businessKey": "23f23222-810f-40d2-b228-63dc65efedbf", + "dsf.process.definitionId": "dsfdev_helloUser:1:57f9bd33-f144-11f0-a290-be1b81df4ab5", + "dsf.process.definitionKey": "dsfdev_helloUser", + "dsf.process.instanceId": "79c6bb3d-f145-11f0-b859-02f958cc3f48", + "dsf.process.requester.start": "webbrowser.test.user@invalid", + "dsf.process.task.start": "https://fhir/fhir/Task/8f86cc34-feec-4c27-bb0f-ca3c42ed8c7c" + }, + "logging.googleapis.com/sourceLocation": { + "function": "dev.dsf.bpe.v2.service.DataLoggerImpl.log" + }, + "logging.googleapis.com/trace_sampled": true, + "thread": "pool-3-thread-1", + "logger": "dsf-data-logger" +} +``` + +@tab JSON_GELF + +```json :no-line-numbers +{ + "version": "1.1", + "host": "186cf01dc749", + "short_message": "Completed QuestionnaireResponse: {\"resourceType\":\"QuestionnaireResponse\",\"id\":\"74c53749-9179-4b64-867e-87ffb1c2571c\",\"meta\":{\"versionId\":\"2\",\"lastUpdated\":\"2026-01-14T13:36:35.220+01:00\",\"profile\":[\"http://dsf.dev/fhir/StructureDefinition/questionnaire-response\"]},\"extension\":[{\"url\":\"http://dsf.dev/fhir/StructureDefinition/extension-questionnaire-authorization\",\"extension\":[{\"url\":\"practitioner-role\",\"valueCoding\":{\"system\":\"http://dsf.dev/fhir/CodeSystem/practitioner-role\",\"code\":\"DIC_USER\"}}]}],\"questionnaire\":\"http://dsf.dev/fhir/Questionnaire/hello-user|2.0\",\"status\":\"completed\",\"authored\":\"2026-01-14T12:36:35.136Z\",\"author\":{\"type\":\"Practitioner\",\"identifier\":{\"system\":\"http://dsf.dev/sid/practitioner-identifier\",\"value\":\"webbrowser.test.user@invalid\"}},\"item\":[{\"linkId\":\"business-key\",\"text\":\"The business-key of the process execution\",\"answer\":[{\"valueString\":\"22fbbf3d-a172-46fc-81a2-f65df7a2a13f\"}]},{\"linkId\":\"user-task-id\",\"text\":\"The user-task-id of the process execution\",\"answer\":[{\"valueString\":\"9b16de91-f145-11f0-b9cc-7e27fa327b95\"}]},{\"linkId\":\"display-example\",\"text\":\"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\"},{\"linkId\":\"string-example\",\"text\":\"Add a string to test the string type\",\"answer\":[{\"valueString\":\"Placeholder..\"}]},{\"linkId\":\"text-example\",\"text\":\"Add a text to test the text type\",\"answer\":[{\"valueString\":\"Placeholder..\"}]}]}", + "timestamp": 1768394195.3648491, + "level": 7, + "_logger": "dsf-data-logger", + "_thread": "pool-3-thread-1", + "_dsf.plugin.api": "2", + "_dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "_dsf.plugin.name": "dsf-process-hello-world", + "_dsf.plugin.version": "2.0.0.0", + "_dsf.process": "http://dsf.dev/bpe/Process/helloUser|2.0", + "_dsf.process.activityId": "logUserTaskRespose", + "_dsf.process.activityName": "log user task respose", + "_dsf.process.businessKey": "22fbbf3d-a172-46fc-81a2-f65df7a2a13f", + "_dsf.process.definitionId": "dsfdev_helloUser:1:57f9bd33-f144-11f0-a290-be1b81df4ab5", + "_dsf.process.definitionKey": "dsfdev_helloUser", + "_dsf.process.instanceId": "9b0ea128-f145-11f0-b9cc-7e27fa327b95", + "_dsf.process.requester.start": "webbrowser.test.user@invalid", + "_dsf.process.task.start": "https://fhir/fhir/Task/4664a61d-2be7-4bd8-a8a6-184b7bc611f7" +} +``` + +@tab:active JSON_LOGSTASH + +```json :no-line-numbers +{ + "mdc": { + "dsf.plugin.api": "2", + "dsf.plugin.jar": "process/dsf-process-hello-world-2.0.0.0-SNAPSHOT.jar", + "dsf.plugin.name": "dsf-process-hello-world", + "dsf.plugin.version": "2.0.0.0", + "dsf.process": "http://dsf.dev/bpe/Process/helloUser|2.0", + "dsf.process.activityId": "logUserTaskRespose", + "dsf.process.activityName": "log user task respose", + "dsf.process.businessKey": "bd9f6814-6cb3-4ddf-8389-05b9ae9658c4", + "dsf.process.definitionId": "dsfdev_helloUser:1:57f9bd33-f144-11f0-a290-be1b81df4ab5", + "dsf.process.definitionKey": "dsfdev_helloUser", + "dsf.process.instanceId": "ceb018e9-f145-11f0-9e55-9efb3a5fd65d", + "dsf.process.requester.start": "webbrowser.test.user@invalid", + "dsf.process.task.start": "https://fhir/fhir/Task/d5bd4243-a87b-4445-8a34-36ddec7ac648" + }, + "@version": 1, + "source_host": "59d5d46e125a", + "message": "Completed QuestionnaireResponse: {\"resourceType\":\"QuestionnaireResponse\",\"id\":\"2dfbf9d0-1c2f-44f0-9f94-4099280a6bde\",\"meta\":{\"versionId\":\"2\",\"lastUpdated\":\"2026-01-14T13:37:48.172+01:00\",\"profile\":[\"http://dsf.dev/fhir/StructureDefinition/questionnaire-response\"]},\"extension\":[{\"url\":\"http://dsf.dev/fhir/StructureDefinition/extension-questionnaire-authorization\",\"extension\":[{\"url\":\"practitioner-role\",\"valueCoding\":{\"system\":\"http://dsf.dev/fhir/CodeSystem/practitioner-role\",\"code\":\"DIC_USER\"}}]}],\"questionnaire\":\"http://dsf.dev/fhir/Questionnaire/hello-user|2.0\",\"status\":\"completed\",\"authored\":\"2026-01-14T12:37:48.078Z\",\"author\":{\"type\":\"Practitioner\",\"identifier\":{\"system\":\"http://dsf.dev/sid/practitioner-identifier\",\"value\":\"webbrowser.test.user@invalid\"}},\"item\":[{\"linkId\":\"business-key\",\"text\":\"The business-key of the process execution\",\"answer\":[{\"valueString\":\"bd9f6814-6cb3-4ddf-8389-05b9ae9658c4\"}]},{\"linkId\":\"user-task-id\",\"text\":\"The user-task-id of the process execution\",\"answer\":[{\"valueString\":\"ceb76bf2-f145-11f0-9e55-9efb3a5fd65d\"}]},{\"linkId\":\"display-example\",\"text\":\"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\"},{\"linkId\":\"string-example\",\"text\":\"Add a string to test the string type\",\"answer\":[{\"valueString\":\"Placeholder..\"}]},{\"linkId\":\"text-example\",\"text\":\"Add a text to test the text type\",\"answer\":[{\"valueString\":\"Placeholder..\"}]}]}", + "thread_name": "pool-3-thread-1", + "@timestamp": "2026-01-14T13:37:48.325+0100", + "level": "DEBUG", + "logger_name": "dsf-data-logger" +} +``` + +::: + +### Custom Logging Config +A fully custom log4j2 xml logging config can be set via the environment variable [`DEV_DSF_LOG_CONFIG`](./configuration.md#dev-dsf-log-config). diff --git a/docs/src/operations/v2.1.3/bpe/oidc.md b/docs/src/operations/v2.1.3/bpe/oidc.md new file mode 100644 index 000000000..b0c6a6458 --- /dev/null +++ b/docs/src/operations/v2.1.3/bpe/oidc.md @@ -0,0 +1,56 @@ +--- +title: OpenID Connect +icon: config +--- + +## Overview +Access to the DSF BPE server user interface can be configured via [access control roles](access-control). By default users are only authenticated using X.509 client certificates, but authentication for local users via OAuth 2.0 OpenID Connect can also be enabled. + +The DSF BPE server supports [Authorization Code Flow](https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth) for the user interface. [Back-Channel Logout](https://openid.net/specs/openid-connect-backchannel-1_0.html) is also supported. + + +::: tip BPE Reverse Proxy +The DSF BPE reverse proxy requires client certificates by default. To use OpenID Connect authentication the configuration parameter [SSL_VERIFY_CLIENT](../bpe-reverse-proxy/configuration.html#ssl-verify-client) needs to be set to `optional`. +::: + + +## Authorization Code Flow + +To enable authentication via OpenID Connect authorization code flow, set the configuration parameter [DEV_DSF_SERVER_AUTH_OIDC_AUTHORIZATION_CODE_FLOW](configuration#dev-dsf-server-auth-oidc-authorization-code-flow) to `true` and specify the following parameters: + +- [DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_REALM_BASE_URL](configuration#dev-dsf-server-auth-oidc-provider-realm-base-url) +- [DEV_DSF_SERVER_AUTH_OIDC_CLIENT_ID](configuration#dev-dsf-server-auth-oidc-client-id) +- [DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET](configuration#dev-dsf-server-auth-oidc-client-secret) + +Optionally, back channel logout can be enabled by setting [DEV_DSF_SERVER_AUTH_OIDC_BACK_CHANNEL_LOGOUT](configuration#dev-dsf-server-auth-oidc-back-channel-logout) to `true`. The DSF BPE server accepts logout tokens at [DEV_DSF_BPE_SERVER_BASE_URL](configuration#dev-dsf-bpe-server-base-url) + `/back-channel-logout`. The path can be modified via [DEV_DSF_SERVER_AUTH_OIDC_BACK_CHANNEL_LOGOUT_PATH](configuration#dev-dsf-server-auth-oidc-back-channel-logout-path). + +## Additional ODIC Configuration Parameter + +A number of additional `DEV_DSF_SERVER_AUTH_OIDC ...` configuration parameter are specify on the DSF BPE server [configuration parameter page](configuration). + +For example the configuration parameter [DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_TRUST_SERVER_CERTIFICATE_CAS](configuration#dev-dsf-server-auth-oidc-provider-client-trust-server-certificate-cas) can be used to specify a PEM encoded file with trusted root certificates to be used when accessing the OpenID Connect provider. If not specify the JVM default trusted root certificates are used for this connection. + + +## Example +```yaml +services: + app: + image: ghcr.io/datasharingframework/bpe:1.5.2 + # ... + secrets: + - keycloak_root_ca.pem + # ... + environment: + # ... + DEV_DSF_SERVER_AUTH_OIDC_AUTHORIZATION_CODE_FLOW: 'true' + DEV_DSF_SERVER_AUTH_OIDC_BACK_CHANNEL_LOGOUT: 'true' + DEV_DSF_SERVER_AUTH_OIDC_BEARER_TOKEN: 'true' + DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_REALM_BASE_URL: https://keycloak.test.org/realms/dsf + DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_TRUST_SERVER_CERTIFICATE_CAS: /run/secrets/keycloak_root_ca.pem + DEV_DSF_SERVER_AUTH_OIDC_CLIENT_ID: dsf-bpe + DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET: n9bCMtjugv3Y_.szktXyQ2RH5se+J%o3 + # ... +secrets: + keycloak_root_ca.pem: + file: ./secrets/keycloak_root_ca.pem +``` \ No newline at end of file diff --git a/docs/src/operations/v2.1.3/fhir-reverse-proxy/README.md b/docs/src/operations/v2.1.3/fhir-reverse-proxy/README.md new file mode 100644 index 000000000..99d71a7a5 --- /dev/null +++ b/docs/src/operations/v2.1.3/fhir-reverse-proxy/README.md @@ -0,0 +1,29 @@ +--- +title: FHIR Reverse Proxy +icon: module +--- + +## Purpose + +The **DSF FHIR Reverse Proxy** is the externally reachable Apache HTTP Server based front for the [FHIR Server](../fhir/). It terminates TLS, performs client certificate authentication for inbound DSF-to-DSF traffic, optionally accepts OIDC bearer tokens for human users, and forwards authenticated requests to the FHIR Server backend. It is the only component of a DSF instance that should be exposed to the public internet. + +## Docker Image + +- Registry: [`ghcr.io/datasharingframework/fhir_proxy`](https://github.com/datasharingframework/dsf/pkgs/container/fhir_proxy) +- Tag for this release: `{{release.tag}}` + +## Verify Image Signature + +Verify the signed image before deploying. See [How to Verify Image Signatures](../image-verification) for prerequisites, SBOM verification, and troubleshooting. + +```bash +cosign verify \ + {{release.image.fhir_proxy}}@sha256:{{release.digest.fhir_proxy}} \ + --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ + --certificate-oidc-issuer "https://token.actions.githubusercontent.com" +``` + +## Useful Pages + +- [Configuration Parameters](configuration) +- [How to Verify Image Signatures](../image-verification) diff --git a/docs/src/operations/v2.1.3/fhir-reverse-proxy/configuration.md b/docs/src/operations/v2.1.3/fhir-reverse-proxy/configuration.md new file mode 100644 index 000000000..a33b318d6 --- /dev/null +++ b/docs/src/operations/v2.1.3/fhir-reverse-proxy/configuration.md @@ -0,0 +1,109 @@ +--- +title: Configuration Parameters +icon: config +--- + +### APP_SERVER_IP +- **Required:** Yes +- **Description:** Hostname or IP-Address of the DSF FHIR server application container, the reverse proxy target +- **Example:** `app`, `172.28.1.3` + + +### HTTPS_SERVER_NAME_PORT +- **Required:** Yes +- **Description:** External FQDN of your DSF FHIR server with port, typically `443` +- **Example:** `my-external.fqdn:443` + + +### PROXY_PASS_CONNECTION_TIMEOUT_HTTP +- **Required:** No +- **Description:** Connection timeout (seconds) for reverse proxy to app server http connection, time the proxy waits for a connection to be established +- **Default:** `30` seconds + + +### PROXY_PASS_CONNECTION_TIMEOUT_WS +- **Required:** No +- **Description:** Connection timeout (seconds) for reverse proxy to app server ws connection, time the proxy waits for a connection to be established +- **Default:** `30` seconds + + +### PROXY_PASS_TIMEOUT_HTTP +- **Required:** No +- **Description:** Timeout (seconds) for reverse proxy to app server http connection, time the proxy waits for a reply +- **Default:** `60` seconds + + +### PROXY_PASS_TIMEOUT_WS +- **Required:** No +- **Description:** Timeout (seconds) for reverse proxy to app server ws connection, time the proxy waits for a reply +- **Default:** `60` seconds + + +### SERVER_CONTEXT_PATH +- **Required:** No +- **Description:** Reverse proxy context path that delegates to the app server, `/` character at start, no `/` character at end, use `''` (empty string) to configure root as context path +- **Default:** `/fhir` + + +### SSL_CA_CERTIFICATE_FILE +- **Required:** No +- **Description:** Certificate chain file including all issuing, intermediate and root certificates used to validate client certificates, PEM encoded, sets the apache httpd parameter `SSLCACertificateFile`; not used by default, overrides *SSL_CA_CERTIFICATE_PATH* if not empty + + +### SSL_CA_CERTIFICATE_PATH +- **Required:** No +- **Description:** Folder with trusted full CA chains for validating client certificates +- **Recommendation:** Override default folder content via bind mount or add *.crt files to default folder via bind mount +- **Default:** `ca/client_ca_chains` + + +### SSL_CA_DN_REQUEST_FILE +- **Required:** No +- **Description:** File containing all signing certificates excepted, will be used to specify the `Acceptable client certificate CA names` send to the client, during TLS handshake, sets the apache httpd parameter `SSLCADNRequestFile`; if omitted all entries from *SSL_CA_CERTIFICATE_FILE* are used; not used by default, overrides *SSL_CA_DN_REQUEST_PATH* if not empty + + +### SSL_CA_DN_REQUEST_PATH +- **Required:** No +- **Description:** Folder with trusted client certificate issuing CAs, modifies the "Acceptable client certificate CA names" send to the client, uses all from *SSL_CA_CERTIFICATE_FILE* or *SSL_CA_CERTIFICATE_PATH* if not set or empty +- **Recommendation:** Override default folder content via bind mount or add *.crt files to default folder via bind mount +- **Default:** `ca/client_issuing_cas` + + +### SSL_CERTIFICATE_CHAIN_FILE +- **Required:** No +- **Description:** Certificate chain file, PEM encoded, must contain all certificates between the server certificate and the root ca certificate (excluding the root ca certificate), sets the apache httpd parameter `SSLCertificateChainFile`; can be omitted if either no chain is needed (self signed server certificate) or the file specified via *SSL_CERTIFICATE_FILE* contains the certificate chain +- **Recommendation:** Use docker secret file to configure +- **Example:** `/run/secrets/ssl_certificate_chain_file.pem` + + +### SSL_CERTIFICATE_FILE +- **Required:** Yes +- **Description:** Server certificate file, PEM encoded, sets the apache httpd parameter `SSLCertificateFile`, may contain all certificates between the server certificate and the root ca certificate (excluding the root ca certificate). Omit *SSL_CERTIFICATE_CHAIN_FILE* if chain included +- **Recommendation:** Use docker secret file to configure +- **Example:** `/run/secrets/ssl_certificate_file.pem` + + +### SSL_CERTIFICATE_KEY_FILE +- **Required:** Yes +- **Description:** Server certificate private key file, PEM encoded, unencrypted, sets the apache httpd parameter `SSLCertificateKeyFile` +- **Recommendation:** Use docker secret file to configure +- **Example:** `/run/secrets/ssl_certificate_key_file.pem` + + +### SSL_EXPECTED_CLIENT_S_DN_C_VALUES +- **Required:** No +- **Description:** Expected client certificate subject DN country `C` values, must be a comma-separated list of strings in single quotation marks, e.g. `'DE', 'FR'`. If a client certificate with a not configured subject country `C` value is used, the server answers with a `403 Forbidden` status code +- **Default:** `'DE'` + + +### SSL_EXPECTED_CLIENT_I_DN_CN_VALUES +- **Required:** No +- **Description:** Expected client certificate issuer DN common-name `CN` values, must be a comma-separated list of strings in single quotation marks. If a client certificate from a not configured issuing ca common-name is used, the server answers with a `403 Forbidden` status code +- **Default:** `'GEANT TLS ECC 1', 'HARICA OV TLS ECC', 'GEANT TLS RSA 1', 'HARICA OV TLS RSA', 'GEANT S/MIME ECC 1', 'HARICA Client Authentication ECC', 'HARICA S/MIME ECC', 'GEANT S/MIME RSA 1', 'HARICA Client Authentication RSA', 'HARICA S/MIME RSA', 'DFN-Verein Global Issuing CA', 'Fraunhofer User CA - G02', 'D-TRUST SSL Class 3 CA 1 2009', 'Sectigo RSA Organization Validation Secure Server CA', 'GEANT OV RSA CA 4', 'GEANT Personal CA 4', 'GEANT eScience Personal CA 4', 'Sectigo ECC Organization Validation Secure Server CA', 'GEANT OV ECC CA 4', 'GEANT Personal ECC CA 4', 'GEANT eScience Personal ECC CA 4', 'D-TRUST Limited Basic CA 1-2 2019', 'D-TRUST Limited Basic CA 1-3 2019'` + + +### SSL_VERIFY_CLIENT +- **Required:** No +- **Description:** Modifies the apache mod_ssl config parameter `SSLVerifyClient` +- **Recommendation:** Set to `optional` when using OIDC authentication +- **Default:** `require` \ No newline at end of file diff --git a/docs/src/operations/v2.1.3/fhir/README.md b/docs/src/operations/v2.1.3/fhir/README.md new file mode 100644 index 000000000..89dec7137 --- /dev/null +++ b/docs/src/operations/v2.1.3/fhir/README.md @@ -0,0 +1,32 @@ +--- +title: FHIR Server +icon: module +--- + +## Purpose + +The **DSF FHIR Server** exposes the HL7 FHIR R4 REST API that other DSF instances communicate with. It stores and serves the resources required to coordinate distributed business processes — such as `Task`, `ActivityDefinition`, `Organization`, `Endpoint`, and project-specific data resources — and enforces access control on every interaction. Together with the [FHIR Reverse Proxy](../fhir-reverse-proxy/) it forms the externally reachable component of a DSF instance. + +## Docker Image + +- Registry: [`ghcr.io/datasharingframework/fhir`](https://github.com/datasharingframework/dsf/pkgs/container/fhir) +- Tag for this release: `{{release.tag}}` + +## Verify Image Signature + +Verify the signed image before deploying. See [How to Verify Image Signatures](../image-verification) for prerequisites, SBOM verification, and troubleshooting. + +```bash +cosign verify \ + {{release.image.fhir}}@sha256:{{release.digest.fhir}} \ + --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ + --certificate-oidc-issuer "https://token.actions.githubusercontent.com" +``` + +## Useful Pages + +- [Configuration Parameters](configuration) +- [Access Control](access-control) +- [OpenID Connect](oidc) +- [Logging](logging) +- [How to Verify Image Signatures](../image-verification) diff --git a/docs/src/operations/v2.1.3/fhir/access-control.md b/docs/src/operations/v2.1.3/fhir/access-control.md new file mode 100644 index 000000000..3447e3dc6 --- /dev/null +++ b/docs/src/operations/v2.1.3/fhir/access-control.md @@ -0,0 +1,146 @@ +--- +title: Access Control +icon: config +--- + +## Overview + +The DSF FHIR server implements a subset of the FHIR R4 [REST API](http://hl7.org/fhir/R4/http.html). When accessing the API with a web browser a limited graphical user interface is shown. Without any additional configuration the API and user interface is only accessible with the X.509 client certificate configured for the organization via the client certificate configuration parameter [DEV_DSF_FHIR_CLIENT_CERTIFICATE](configuration##dev-dsf-fhir-client-certificate) or the manual override option [DEV_DSF_FHIR_SERVER_ORGANIZATION_THUMBPRINT](configuration#dev-dsf-fhir-server-organization-thumbprint). + +::: tip OpenID Connect +To enable OpenID Connect authentication of local user, see the DSF FHIR server OpenID Connect [configuration page](oidc). +::: + +Access to the API and user interface can be enabled for additional client certificates and local users authenticating via OAuth 2.0 OpenID Connect. Access can be configured for so called roles, with all roles specified using the configuration parameter [DEV_DSF_FHIR_SERVER_ROLECONFIG](configuration#dev-dsf-fhir-server-roleconfig). The value for this environment variable is specified as YAML using the block scalar `|`. + +The listing below shows a minimal configuration to enable read access for all resources for a specific client-certificate: + +```yaml + DEV_DSF_FHIR_SERVER_ROLECONFIG: | + - example_read_only_role: + thumbprint: 00474993fa261b0225f93c5a66aa6fcc... [a-f0-9]{128} + dsf-role: + - READ + - SEARCH + - HISTORY +``` + +The list of user roles above contains a single rule-entry `example_read_only_role`, matching the user via a client certificate SHA-512 thumbprint and assigning three DSF roles. Any string can be used as the name for the rule-entry. + +With DSF 2, you can now restrict the granted priviledges to specific resource types. If you want to restrict the rule-entry `example_read_only_role` to Organization resources, you can specify the resource type per dsf-role ("action"): + +```yaml + DEV_DSF_FHIR_SERVER_ROLECONFIG: | + - example_read_only_organization_role: + thumbprint: 00474993fa261b0225f93c5a66aa6fcc... [a-f0-9]{128} + dsf-role: + - READ: [Organization] + - SEARCH: [Organization] + - HISTORY: [Organization] +``` + +::: tip Certificate Thumbprints +SHA-512 certificate thumbprints in HEX form `[a-f0-9]{128}` can be calculated using: +```sh +certtool --fingerprint --hash=sha512 --infile=certificate.pem +``` +::: + +Multiple user roles can be specified and all matching roles will be applied to an authenticated users. Use an empty string `""` or a single block scalar `|` character as the value for the configuration parameter [DEV_DSF_FHIR_SERVER_ROLECONFIG](configuration#dev-dsf-fhir-server-roleconfig) if no roles should be configured. + +## Matching Users + +To apply roles, users can be matched via the `thumbprint`, `email`, `token-role` or `token-group` properties. A single value or a list of values can be specified. + +#### thumbprint + +The property `thumbprint` can used to specify one or multiple SHA-512 certificate thumbprints. Roles from this rule are applied to the authenticating user if the certificate matches one of the specified thumbprints. + +#### email + +Using the property `email` users can be matched against e-mail addresses specified in X.509 client certificates and in OpenID Connect access tokens. Values will be matched against e-mail addresses specified in the subject DN (via PKCS#9 extension 1.2.840.113549.1.9.1) and RFC-822 Name entries of the Subject Alternative Name field. If the user authenticates via OpenID Connect, the `email` [claim](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims) from the access token will be matched against the property values. + +#### token-role and token-group + +With the properties `token-role` and `token-group` role and group names can be specified to match against role and group claims within OAuth 2.0 access tokens. + + +## DSF and Practitioner Roles + +Two types of roles can be applied to matched users. + +#### dsf-role + +DSF roles specified via the `dsf-role` property define general access to the REST API and user interface. Allowed values are: + +`CREATE`, `READ`, `UPDATE`, `DELETE`, `SEARCH`, `HISTORY`, `PERMANENT_DELETE` and `WEBSOCKET`. + + +#### practitioner-role + +In order to allow users to start processes, the property `practitioner-role` can be used to assign codes from FHIR [CodeSystem](http://hl7.org/fhir/R4/codesystem.html) resources. Codes are specified in the form `system-url|code`. +If the uses has a code specified here that match with a `requester` extension within the process plugin's [ActivityDefinition](http://hl7.org/fhir/R4/activitydefinition.html) resource, the user can start the process if he also has the `dsf-role` `CREATE`. + +Process plugins can define and use their own code-systems. However, the DSF specifies a standard set of practitioner roles within the CodeSystem `http://dsf.dev/fhir/CodeSystem/practitioner-role`: + +`UAC_USER`, `COS_USER`, `CRR_USER`, `DIC_USER`, `DMS_USER`, `DTS_USER`, `HRP_USER`, `TTP_USER`, `AMS_USER`, `ASP_USER`, `SPR_USER`, `TSP_USER`, `PPH_USER`, `BIO_USER`, and `DSF_ADMIN`. + + +## Examples + +The first example defines a group of DSF administrators. Two client certificates match against this role: + +```yaml + DEV_DSF_FHIR_SERVER_ROLECONFIG: | + - certificate-admins: + thumbprint: + - afb68b1d9d47e691b8b3d50fd9848467cada8b1c76f5f4b45f00c9f8432d505361a3ee27805f4aa06799d9ac8dace94b3f1942fce44d84866961259b13be825d + - 2441bfddcad97eeb83c8c31fe181b90652787b8b59bf4e569219da7db4429e389479cb7c4a2f311e34217357d594ecad7d58ccfeef2a9e93c6fcf8d98897d88c + dsf-role: + - CREATE + - READ + - UPDATE + - DELETE + - SEARCH + - HISTORY + practitioner-role: + - http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN + +``` + + +The second example defines an administrator group consisting of all users with the OAuth role admin plus two additional administrators identified by their client-certificate thumbprints. These administrators may perform the basic DSF tasks: starting and continuing of new process instances (by creating tasks and answering QuestionnaireResponses) and reading all resources on the DSF FHIR server. + +```yaml + DEV_DSF_FHIR_SERVER_ROLECONFIG: | + - example_minimal_admin: + thumbprint: + - 0123...cdef + - abcd...6789 + token-role: admin + dsf-role: + - CREATE: [Task] + - READ + - UPDATE: [QuestionnaireResponse] + - SEARCH + - HISTORY + practitioner-role: + - http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN + +``` + + +The third example allows read-only access, restricted to QuestionnaireResponse resources only. Two e-mail addresses are used to match this role. E-mail addresses from X.509 client certificates and OAuth 2.0 access tokens are matched: + +```yaml + DEV_DSF_FHIR_SERVER_ROLECONFIG: | + - read-only: + email: + - first.user@test.org + - second.user@test.org + dsf-role: + - READ: [QuestionnaireResponse] + - UPDATE: [QuestionnaireResponse] + - SEARCH: [QuestionnaireResponse] + - HISTORY: [QuestionnaireResponse] +``` diff --git a/docs/src/operations/v2.1.3/fhir/configuration.md b/docs/src/operations/v2.1.3/fhir/configuration.md new file mode 100644 index 000000000..a56b85c1b --- /dev/null +++ b/docs/src/operations/v2.1.3/fhir/configuration.md @@ -0,0 +1,579 @@ +--- +title: Configuration Parameters +icon: config +--- + +### DEV_DSF_FHIR_CLIENT_CERTIFICATE +- **Property:** dev.dsf.fhir.client.certificate +- **Required:** Yes +- **Description:** PEM encoded file with local client certificate for https connections to remote DSF FHIR servers +- **Recommendation:** Use docker secret file to configure +- **Example:** `/run/secrets/app_client_certificate.pem` + + +### DEV_DSF_FHIR_CLIENT_CERTIFICATE_PRIVATE_KEY +- **Property:** dev.dsf.fhir.client.certificate.private.key +- **Required:** Yes +- **Description:** Private key corresponding to the local client certificate as PEM encoded file. Use *DEV_DSF_FHIR_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD* or *DEV_DSF_FHIR_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD_FILE* if private key is encrypted +- **Recommendation:** Use docker secret file to configure +- **Example:** `/run/secrets/app_client_certificate_private_key.pem` + + +### DEV_DSF_FHIR_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD or DEV_DSF_FHIR_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD_FILE +- **Property:** dev.dsf.fhir.client.certificate.private.key.password +- **Required:** No +- **Description:** Password to decrypt the local client certificate encrypted private key +- **Recommendation:** Use docker secret file to configure using *DEV_DSF_FHIR_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD_FILE* +- **Example:** `/run/secrets/app_client_certificate_private_key.pem.password` + + +### DEV_DSF_FHIR_CLIENT_TIMEOUT_CONNECT +- **Property:** dev.dsf.fhir.client.timeout.connect +- **Required:** No +- **Description:** Timeout until a connection is established between this DSF FHIR server and a remote DSF FHIR server +- **Recommendation:** Change default value only if timeout exceptions occur +- **Default:** `PT2S` + + +### DEV_DSF_FHIR_CLIENT_TIMEOUT_READ +- **Property:** dev.dsf.fhir.client.timeout.read +- **Required:** No +- **Description:** Timeout until a reading a resource from a remote DSF FHIR server is aborted +- **Recommendation:** Change default value only if timeout exceptions occur +- **Default:** `PT10S` + + +### DEV_DSF_FHIR_CLIENT_TRUST_SERVER_CERTIFICATE_CAS +- **Property:** dev.dsf.fhir.client.trust.server.certificate.cas +- **Required:** No +- **Description:** Folder with PEM encoded files (*.crt, *.pem) or a single PEM encoded file with one or more trusted root certificates to validate server certificates for https connections to remote DSF FHIR servers +- **Recommendation:** Add file to default folder via bind mount or use docker secret file to configure +- **Example:** `/run/secrets/app_client_trust_certificates.pem` +- **Default:** `ca/server_root_cas` + + +### DEV_DSF_FHIR_CLIENT_VERBOSE +- **Property:** dev.dsf.fhir.client.verbose +- **Required:** No +- **Description:** To enable verbose logging of requests to and replies from remote DSF FHIR servers, set to `true` +- **Default:** `false` + + +### DEV_DSF_FHIR_DB_LIQUIBASE_FORCEUNLOCK +- **Property:** dev.dsf.fhir.db.liquibase.forceUnlock +- **Required:** No +- **Description:** To force liquibase to unlock the migration lock set to `true` +- **Recommendation:** Only use this option temporarily to unlock a stuck DB migration step +- **Default:** `false` + + +### DEV_DSF_FHIR_DB_LIQUIBASE_LOCKWAITTIME +- **Property:** dev.dsf.fhir.db.liquibase.lockWaitTime +- **Required:** No +- **Description:** Liquibase change lock wait time in minutes, default 2 minutes +- **Default:** `2` + + +### DEV_DSF_FHIR_DB_LIQUIBASE_PASSWORD or DEV_DSF_FHIR_DB_LIQUIBASE_PASSWORD_FILE +- **Property:** dev.dsf.fhir.db.liquibase.password +- **Required:** Yes +- **Description:** Password to access the database from the DSF FHIR server to execute database migrations +- **Recommendation:** Use docker secret file to configure by using *DEV_DSF_FHIR_DB_LIQUIBASE_PASSWORD_FILE* +- **Example:** `/run/secrets/db_liquibase.password` + + +### DEV_DSF_FHIR_DB_LIQUIBASE_USERNAME +- **Property:** dev.dsf.fhir.db.liquibase.username +- **Required:** No +- **Description:** Username to access the database from the DSF FHIR server to execute database migrations +- **Default:** `liquibase_user` + + +### DEV_DSF_FHIR_DB_URL +- **Property:** dev.dsf.fhir.db.url +- **Required:** Yes +- **Description:** Address of the database used for the DSF FHIR server +- **Recommendation:** Change only if you don't use the provided docker-compose from the installation guide or made changes to the database settings/networking in the docker-compose +- **Example:** `jdbc:postgresql://db/fhir` + + +### DEV_DSF_FHIR_DB_USER_GROUP +- **Property:** dev.dsf.fhir.db.user.group +- **Required:** No +- **Description:** Name of the user group to access the database from the DSF FHIR server +- **Default:** `fhir_users` + + +### DEV_DSF_FHIR_DB_USER_PASSWORD or DEV_DSF_FHIR_DB_USER_PASSWORD_FILE +- **Property:** dev.dsf.fhir.db.user.password +- **Required:** Yes +- **Description:** Password to access the database from the DSF FHIR server +- **Recommendation:** Use docker secret file to configure using *DEV_DSF_FHIR_DB_USER_PASSWORD_FILE* +- **Example:** `/run/secrets/db_user.password` + + +### DEV_DSF_FHIR_DB_USER_PERMANENT_DELETE_GROUP +- **Property:** dev.dsf.fhir.db.user.permanent.delete.group +- **Required:** No +- **Description:** Name of the user group to access the database from the DSF FHIR server for permanent deletes +- **Default:** `fhir_permanent_delete_users` + + +### DEV_DSF_FHIR_DB_USER_PERMANENT_DELETE_PASSWORD or DEV_DSF_FHIR_DB_USER_PERMANENT_DELETE_PASSWORD_FILE +- **Property:** dev.dsf.fhir.db.user.permanent.delete.password +- **Required:** Yes +- **Description:** Password to access the database from the DSF FHIR server for permanent deletes +- **Recommendation:** Use docker secret file to configure using *DEV_DSF_FHIR_DB_USER_PERMANENT_DELETE_PASSWORD_FILE* +- **Example:** `/run/secrets/db_user_permanent_delete.password` + + +### DEV_DSF_FHIR_DB_USER_PERMANENT_DELETE_USERNAME +- **Property:** dev.dsf.fhir.db.user.permanent.delete.username +- **Required:** No +- **Description:** Username to access the database from the DSF FHIR server for permanent deletes +- **Recommendation:** Use a different user then *DEV_DSF_FHIR_DB_USER_USERNAME* +- **Default:** `fhir_server_permanent_delete_user` + + +### DEV_DSF_FHIR_DB_USER_USERNAME +- **Property:** dev.dsf.fhir.db.user.username +- **Required:** No +- **Description:** Username to access the database from the DSF FHIR server +- **Default:** `fhir_server_user` + + +### DEV_DSF_FHIR_DEBUG_LOG_MESSAGE_CURRENTUSER +- **Property:** dev.dsf.fhir.debug.log.message.currentUser +- **Required:** No +- **Description:** To enable logging of the currently requesting user set to `true` +- **Recommendation:** This debug function should only be activated during development; WARNING: Confidential information may be leaked via the debug log! +- **Default:** `false` + + +### DEV_DSF_FHIR_DEBUG_LOG_MESSAGE_DBSTATEMENT +- **Property:** dev.dsf.fhir.debug.log.message.dbStatement +- **Required:** No +- **Description:** To enable logging of DB queries set to `true` +- **Recommendation:** This debug function should only be activated during development; WARNING: Confidential information may be leaked via the debug log! +- **Default:** `false` + + +### DEV_DSF_FHIR_DEBUG_LOG_MESSAGE_WEBSERVICEREQUEST +- **Property:** dev.dsf.fhir.debug.log.message.webserviceRequest +- **Required:** No +- **Description:** To enable logging of webservices requests set to `true` +- **Recommendation:** This debug function should only be activated during development; WARNING: Confidential information may be leaked via the debug log! +- **Default:** `false` + + +### DEV_DSF_FHIR_SERVER_BASE_URL +- **Property:** dev.dsf.fhir.server.base.url +- **Required:** Yes +- **Description:** Base address of this DSF FHIR server to read/store fhir resources +- **Example:** `https://foo.bar/fhir` + + +### DEV_DSF_FHIR_SERVER_INIT_BUNDLE +- **Property:** dev.dsf.fhir.server.init.bundle +- **Required:** No +- **Description:** Fhir bundle containing the initial Allow-List, loaded on startup of the DSF FHIR server +- **Recommendation:** Change only if you don't use the provided files from the installation guide, have local changes in the Allow-List or received an Allow-List from another source +- **Default:** `conf/bundle.xml` + + +### DEV_DSF_FHIR_SERVER_ORGANIZATION_IDENTIFIER_VALUE +- **Property:** dev.dsf.fhir.server.organization.identifier.value +- **Required:** Yes +- **Description:** Local identifier value used in the Allow-List +- **Recommendation:** By convention: The shortest possible FQDN that resolve the homepage of the organization +- **Example:** `hospital.com` + + +### DEV_DSF_FHIR_SERVER_ORGANIZATION_THUMBPRINT +- **Property:** dev.dsf.fhir.server.organization.thumbprint +- **Required:** No +- **Description:** The SHA-512 thumbprint of the local organization client certificate; will be calculated on startup based on the client certificate specified via *DEV_DSF_FHIR_CLIENT_CERTIFICATE* +- **Recommendation:** Do not specify this variable when using the same client certificate for the FHIR and BPE server; the thumbprint can be calculated via `certtool --fingerprint --hash=sha512 --infile=client_certificate.pem` + + +### DEV_DSF_FHIR_SERVER_PAGE_COUNT +- **Property:** dev.dsf.fhir.server.page.count +- **Required:** No +- **Description:** Page size returned by the DSF FHIR server when reading/searching fhir resources +- **Default:** `20` + + +### DEV_DSF_FHIR_SERVER_ROLECONFIG +- **Property:** dev.dsf.fhir.server.roleConfig +- **Required:** No +- **Description:** Role config YAML as defined in [FHIR Server: Access Control](access-control) + + +### DEV_DSF_FHIR_SERVER_STATIC_RESOURCE_CACHE +- **Property:** dev.dsf.fhir.server.static.resource.cache +- **Required:** No +- **Description:** To disable static resource caching, set to `false` +- **Recommendation:** Only set to `false` for development +- **Default:** `true` + + +### DEV_DSF_FHIR_SERVER_UI_THEME +- **Property:** dev.dsf.fhir.server.ui.theme +- **Required:** No +- **Description:** UI theme parameter, adds a color indicator to the ui to distinguish `dev`, `test` and `prod` environments if configured; supported values: `dev`, `test` and `prod` + + +### DEV_DSF_LOG_AUDIT_CONSOLE_ERR_ENABLED +- **Property:** dev.dsf.log.audit.console.err.enabled +- **Required:** No +- **Description:** Set to `true` to enable console err output of the audit logger +- **Default:** `false` + + +### DEV_DSF_LOG_AUDIT_CONSOLE_ERR_STYLE +- **Property:** dev.dsf.log.audit.console.err.style +- **Required:** No +- **Description:** Audit logger console err style, one of: `JSON_ECS`, `JSON_GCP`, `JSON_GELF`, `JSON_LOGSTASH`, `TEXT_MDC`, `TEXT` +- **Default:** `STYLE_TEXT` + + +### DEV_DSF_LOG_AUDIT_CONSOLE_OUT_ENABLED +- **Property:** dev.dsf.log.audit.console.out.enabled +- **Required:** No +- **Description:** Set to `true` to enable console out output of the audit logger +- **Default:** `false` + + +### DEV_DSF_LOG_AUDIT_CONSOLE_OUT_STYLE +- **Property:** dev.dsf.log.audit.console.out.style +- **Required:** No +- **Description:** Audit logger console out style, one of: `JSON_ECS`, `JSON_GCP`, `JSON_GELF`, `JSON_LOGSTASH`, `TEXT_MDC`, `TEXT` +- **Default:** `STYLE_TEXT` + + +### DEV_DSF_LOG_AUDIT_FILE_ENABLED +- **Property:** dev.dsf.log.audit.file.enabled +- **Required:** No +- **Description:** Set to `false` to disable log file output of the audit logger +- **Default:** `true` + + +### DEV_DSF_LOG_AUDIT_FILE_STYLE +- **Property:** dev.dsf.log.audit.file.style +- **Required:** No +- **Description:** Audit logger file style, one of: `JSON_ECS`, `JSON_GCP`, `JSON_GELF`, `JSON_LOGSTASH`, `TEXT_MDC`, `TEXT` +- **Default:** `TEXT_MDC` + + +### DEV_DSF_LOG_CONFIG +- **Property:** dev.dsf.log.config +- **Required:** No +- **Description:** Location of a log4j configuration xml file; if file is readable, overrides configuration specified via *DEV_DSF_LOG_...* parameters +- **Default:** `conf/log4j2.xml` + + +### DEV_DSF_LOG_CONSOLE_ERR_ENABLED +- **Property:** dev.dsf.log.console.err.enabled +- **Required:** No +- **Description:** Set to `true` to enable console err output of the standard logger +- **Default:** `false` + + +### DEV_DSF_LOG_CONSOLE_ERR_LEVEL +- **Property:** dev.dsf.log.console.err.level +- **Required:** No +- **Description:** Standard logger console err output level, one of: `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR` +- **Default:** `INFO` + + +### DEV_DSF_LOG_CONSOLE_ERR_STYLE +- **Property:** dev.dsf.log.console.err.style +- **Required:** No +- **Description:** Standard logger console err output style, one of: `JSON_ECS`, `JSON_GCP`, `JSON_GELF`, `JSON_LOGSTASH`, `TEXT_MDC`, `TEXT`, `TEXT_COLOR_MDC`, `TEXT_COLOR` +- **Default:** `TEXT_COLOR` + + +### DEV_DSF_LOG_CONSOLE_OUT_ENABLED +- **Property:** dev.dsf.log.console.out.enabled +- **Required:** No +- **Description:** Set to `false` to disable console out output of the standard logger +- **Default:** `true` + + +### DEV_DSF_LOG_CONSOLE_OUT_LEVEL +- **Property:** dev.dsf.log.console.out.level +- **Required:** No +- **Description:** Standard logger console out output level, one of: `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR` +- **Default:** `INFO` + + +### DEV_DSF_LOG_CONSOLE_OUT_STYLE +- **Property:** dev.dsf.log.console.out.style +- **Required:** No +- **Description:** Standard logger console out output style, one of: `JSON_ECS`, `JSON_GCP`, `JSON_GELF`, `JSON_LOGSTASH`, `TEXT_MDC`, `TEXT`, `TEXT_COLOR_MDC`, `TEXT_COLOR` +- **Default:** `TEXT_COLOR` + + +### DEV_DSF_LOG_FILE_ENABLED +- **Property:** dev.dsf.log.file.enabled +- **Required:** No +- **Description:** Set to `false` to disable log file output of the standard logger +- **Default:** `true` + + +### DEV_DSF_LOG_FILE_LEVEL +- **Property:** dev.dsf.log.file.level +- **Required:** No +- **Description:** Standard logger log file output level, one of: `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR` +- **Default:** `DEBUG` + + +### DEV_DSF_LOG_FILE_STYLE +- **Property:** dev.dsf.log.file.style +- **Required:** No +- **Description:** Standard logger log file output style, one of: `JSON_ECS`, `JSON_GCP`, `JSON_GELF`, `JSON_LOGSTASH`, `TEXT_MDC`, `TEXT` +- **Default:** `TEXT_MDC` + + +### DEV_DSF_LOG_MIN_LEVEL_LOGGERS +- **Property:** dev.dsf.log.min.level.loggers +- **Required:** No +- **Description:** List of logger names that are enabled to produce log output with the minimal configured log level from `DEV_DSF_LOG_CONSOLE_OUT_LEVEL`, `DEV_DSF_LOG_CONSOLE_ERR_LEVEL` and `DEV_DSF_LOG_FILE_LEVEL` +- **Default:** `dev.dsf` + + +### DEV_DSF_PROXY_NOPROXY +- **Property:** dev.dsf.proxy.noProxy +- **Required:** No +- **Description:** Forward proxy no-proxy list, entries will match exactly or against (one level) sub-domains, if no port is specified - all ports are matched; comma or space separated list, YAML block scalars supported +- **Example:** `foo.bar, test.com:8080` + + +### DEV_DSF_PROXY_PASSWORD or DEV_DSF_PROXY_PASSWORD_FILE +- **Property:** dev.dsf.proxy.password +- **Required:** No +- **Description:** Forward Proxy password +- **Recommendation:** Configure password if proxy requires authentication, use docker secret file to configure using *DEV_DSF_PROXY_PASSWORD_FILE* + + +### DEV_DSF_PROXY_URL +- **Property:** dev.dsf.proxy.url +- **Required:** No +- **Description:** Forward (http/https) proxy url, use *DEV_DSF_BPE_PROXY_NOPROXY* to list domains that do not require a forward proxy +- **Example:** `http://proxy.foo:8080` + + +### DEV_DSF_PROXY_USERNAME +- **Property:** dev.dsf.proxy.username +- **Required:** No +- **Description:** Forward proxy username +- **Recommendation:** Configure username if proxy requires authentication + + +### DEV_DSF_SERVER_API_HOST +- **Property:** dev.dsf.server.api.host +- **Required:** No +- **Description:** API connector host, default in docker image: `0.0.0.0` +- **Default:** `127.0.0.1` + + +### DEV_DSF_SERVER_API_PORT +- **Property:** dev.dsf.server.api.port +- **Required:** No +- **Description:** API connector port, default in docker image: `8080` + + +### DEV_DSF_SERVER_AUTH_CLIENT_CERTIFICATE_HEADER +- **Property:** dev.dsf.server.auth.client.certificate.header +- **Required:** No +- **Description:** Name of HTTP header with client certificate from reverse proxy +- **Default:** `X-ClientCert` + + +### DEV_DSF_SERVER_AUTH_OIDC_AUTHORIZATION_CODE_FLOW +- **Property:** dev.dsf.server.auth.oidc.authorization.code.flow +- **Required:** No +- **Description:** Set to `true` to enable OIDC authorization code flow +- **Recommendation:** Requires *DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_REALM_BASE_URL*, *DEV_DSF_SERVER_AUTH_OIDC_CLIENT_ID* and *DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET* or *DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET_FILE* to be specified +- **Default:** `false` + + +### DEV_DSF_SERVER_AUTH_OIDC_BACK_CHANNEL_LOGOUT +- **Property:** dev.dsf.server.auth.oidc.back.channel.logout +- **Required:** No +- **Description:** Set to `true` to enable OIDC back-channel logout +- **Recommendation:** Requires *DEV_DSF_SERVER_AUTH_OIDC_AUTHORIZATION_CODE_FLOW* to be set to `true` (enabled), *DEV_DSF_SERVER_AUTH_OIDC_CLIENT_ID* and *DEV_DSF_SERVER_AUTH_OIDC_BACK_CHANNEL_LOGOUT_PATH* to be specified +- **Default:** `false` + + +### DEV_DSF_SERVER_AUTH_OIDC_BACK_CHANNEL_LOGOUT_PATH +- **Property:** dev.dsf.server.auth.oidc.back.channel.logout.path +- **Required:** No +- **Description:** Path called by the OIDC provide to request back-channel logout +- **Default:** `/back-channel-logout` + + +### DEV_DSF_SERVER_AUTH_OIDC_BEARER_TOKEN +- **Property:** dev.dsf.server.auth.oidc.bearer.token +- **Required:** No +- **Description:** Set to `true` to enable OIDC bearer token authentication +- **Recommendation:** Requires *DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_REALM_BASE_URL* to be specified +- **Default:** `false` + + +### DEV_DSF_SERVER_AUTH_OIDC_BEARER_TOKEN_AUDIENCE +- **Property:** dev.dsf.server.auth.oidc.bearer.token.audience +- **Required:** No +- **Description:** Audience (aud) value to verify before accepting OIDC bearer tokens, uses value from `DEV_DSF_SERVER_AUTH_OIDC_CLIENT_ID` by default, set blank string e.g. `''` to disable +- **Recommendation:** Requires *DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_REALM_BASE_URL* to be specified and *DEV_DSF_SERVER_AUTH_OIDC_BEARER_TOKEN* set tor `true` + + +### DEV_DSF_SERVER_AUTH_OIDC_CLIENT_ID +- **Property:** dev.dsf.server.auth.oidc.client.id +- **Required:** No +- **Description:** OIDC provider client_id, must be specified if *DEV_DSF_SERVER_AUTH_OIDC_AUTHORIZATION_CODE_FLOW* is enabled + + +### DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET or DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET_FILE +- **Property:** dev.dsf.server.auth.oidc.client.secret +- **Required:** No +- **Description:** OIDC provider client_secret, must be specified if *DEV_DSF_SERVER_AUTH_OIDC_AUTHORIZATION_CODE_FLOW* is enabled + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_CACHE_TIMEOUT_CONFIGURATION_RESOURCE +- **Property:** dev.dsf.server.auth.oidc.provider.client.cache.timeout.configuration.resource +- **Required:** No +- **Description:** OIDC provider client cache timeout of the 'openid-configuration' discovery resource +- **Default:** `PT1H` + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_CACHE_TIMEOUT_JWKS_RESOURCE +- **Property:** dev.dsf.server.auth.oidc.provider.client.cache.timeout.jwks.resource +- **Required:** No +- **Description:** OIDC provider client cache timeout of the jwks resource +- **Default:** `PT1H` + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_CERTIFICATE +- **Property:** dev.dsf.server.auth.oidc.provider.client.certificate +- **Required:** No +- **Description:** PEM encoded file with client certificate for https connections to the OIDC provider +- **Recommendation:** Use docker secret file to configure +- **Example:** `/run/secrets/oidc_provider_client_certificate.pem` + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_CERTIFICATE_PRIVATE_KEY +- **Property:** dev.dsf.server.auth.oidc.provider.client.certificate.private.key +- **Required:** No +- **Description:** Private key corresponding to the client certificate for the OIDC provider as PEM encoded file. Use *DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD* or *DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD_FILE* if private key is encrypted +- **Recommendation:** Use docker secret file to configure +- **Example:** `/run/secrets/oidc_provider_client_certificate_private_key.pem` + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD or DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD_FILE +- **Property:** dev.dsf.server.auth.oidc.provider.client.certificate.private.key.password +- **Required:** No +- **Description:** Password to decrypt the client certificate for the OIDC provider encrypted private key +- **Recommendation:** Use docker secret file to configure using *DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD_FILE* +- **Example:** `/run/secrets/oidc_provider_client_certificate_private_key.pem.password` + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_TIMEOUT_CONNECT +- **Property:** dev.dsf.server.auth.oidc.provider.client.timeout.connect +- **Required:** No +- **Description:** OIDC provider client connect timeout +- **Default:** `PT5S` + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_TIMEOUT_READ +- **Property:** dev.dsf.server.auth.oidc.provider.client.timeout.read +- **Required:** No +- **Description:** OIDC provider client read timeout +- **Default:** `PT30S` + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_TRUST_SERVER_CERTIFICATE_CAS +- **Property:** dev.dsf.server.auth.oidc.provider.client.trust.server.certificate.cas +- **Required:** No +- **Description:** Folder with PEM encoded files (*.crt, *.pem) or a single PEM encoded file with one or more trusted root certificates to validate server certificates for https connections to the OIDC provider +- **Recommendation:** Add file to default folder via bind mount or use docker secret file to configure +- **Example:** `/run/secrets/oidc_provider_trust_certificates.pem` +- **Default:** `ca/server_root_cas` + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_DISCOVERY_PATH +- **Property:** dev.dsf.server.auth.oidc.provider.discovery.path +- **Required:** No +- **Description:** OIDC provider discovery path +- **Default:** `/.well-known/openid-configuration` + + +### DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_REALM_BASE_URL +- **Property:** dev.dsf.server.auth.oidc.provider.realm.base.url +- **Required:** No +- **Description:** OIDC provider realm base url +- **Example:** `https://keycloak.test.com:8443/realms/example-realm-name` + + +### DEV_DSF_SERVER_AUTH_OIDC_SESSION_TIMEOUT +- **Property:** dev.dsf.server.auth.oidc.session.timeout +- **Required:** No +- **Description:** Maximum inactivity period after which the server session for OIDC logins is invalidated; the access token may expire earlier, resulting in earlier session invalidation +- **Default:** `PT30M` + + +### DEV_DSF_SERVER_AUTH_TRUST_CLIENT_CERTIFICATE_CAS +- **Property:** dev.dsf.server.auth.trust.client.certificate.cas +- **Required:** No +- **Description:** Folder with PEM encoded files (*.crt, *.pem) or a single PEM encoded file with one or more trusted full CA chains to validate client certificates for https connections from local and remote clients +- **Recommendation:** Add file to default folder via bind mount or use docker secret file to configure +- **Example:** `/run/secrets/app_client_trust_certificates.pem` +- **Default:** `ca/client_ca_chains` + + +### DEV_DSF_SERVER_CERTIFICATE +- **Property:** dev.dsf.server.certificate +- **Required:** No +- **Description:** Server certificate file for testing +- **Recommendation:** Only specify For testing when terminating TLS in jetty server + + +### DEV_DSF_SERVER_CERTIFICATE_CHAIN +- **Property:** dev.dsf.server.certificate.chain +- **Required:** No +- **Description:** Server certificate chain file for testing +- **Recommendation:** Only specify For testing when terminating TLS in jetty server + + +### DEV_DSF_SERVER_CERTIFICATE_KEY +- **Property:** dev.dsf.server.certificate.key +- **Required:** No +- **Description:** Server certificate private key file for testing +- **Recommendation:** Only specify For testing when terminating TLS in jetty server + + +### DEV_DSF_SERVER_CERTIFICATE_KEY_PASSWORD or DEV_DSF_SERVER_CERTIFICATE_KEY_PASSWORD_FILE +- **Property:** dev.dsf.server.certificate.key.password +- **Required:** No +- **Description:** Server certificate private key file password for testing +- **Recommendation:** Only specify For testing when terminating TLS in jetty server + + +### DEV_DSF_SERVER_CONTEXT_PATH +- **Property:** dev.dsf.server.context.path +- **Required:** No +- **Description:** Web application context path, default in `bpe` docker image: `/bpe`, default in `fhir` docker image: `/fhir` +- **Recommendation:** Only modify for testing + + +### DEV_DSF_SERVER_STATUS_HOST +- **Property:** dev.dsf.server.status.host +- **Required:** No +- **Description:** Status connector host +- **Default:** `127.0.0.1` + + +### DEV_DSF_SERVER_STATUS_PORT +- **Property:** dev.dsf.server.status.port +- **Required:** No +- **Description:** Status connector port, default in docker image: `10000` \ No newline at end of file diff --git a/docs/src/operations/v2.1.3/fhir/logging.md b/docs/src/operations/v2.1.3/fhir/logging.md new file mode 100644 index 000000000..eb9c0cf2b --- /dev/null +++ b/docs/src/operations/v2.1.3/fhir/logging.md @@ -0,0 +1,704 @@ +--- +title: Logging +icon: config +--- + +The DSF FHIR Server provides a **Standard Application Logger** and a dedicated **Audit Logger** for compliance-relevant access events. Both mechanisms can output there messages to standard output (stdout), standard error (stderr) and dedicated log files. + +By default the **Standard Application Logger** is configured to output with min. level `INFO` and format `TEXT_COLOR` to *stdout* as well as min. level `DEBUG` and format `TEXT_MDC` to a dedicated log file. In addition the **Audit Logger** is enabled by default to log with format `TEXT_MDC` to a dedicated log file. + +### Standard Application Logger +The file, *stdout* and *stderr* outputs for the **Standard Application Logger** can be enabled or disabled using the environment variables [`DEV_DSF_LOG_FILE_ENABLED`](./configuration.md#dev-dsf-log-file-enabled), [`DEV_DSF_LOG_CONSOLE_OUT_ENABLED`](./configuration.md#dev-dsf-log-console-out-enabled) and [`DEV_DSF_LOG_CONSOLE_ERR_ENABLED`](./configuration.md#dev-dsf-log-console-err-enabled). + +#### Output Level +Log messages are grouped by severity (low to high): `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`. A minimal log level can be configured for the file, *stdout* and *stderr* outputs using the environment variables [`DEV_DSF_LOG_FILE_LEVEL`](./configuration.md#dev-dsf-log-file-level), [`DEV_DSF_LOG_CONSOLE_OUT_LEVEL`](./configuration.md#dev-dsf-log-console-out-level) and [`DEV_DSF_LOG_CONSOLE_ERR_LEVEL`](./configuration.md#dev-dsf-log-console-err-level). + +#### Output Style +Multiple styles are supported for the **Standard Application Logger** file, *stdout* and *stderr* outputs. All structured logging JSON styles include additional infos (Mapped Diagnostic Context) about the requesting user. The output style can be configured using the environment variables [`DEV_DSF_LOG_FILE_STYLE`](./configuration.md#dev-dsf-log-file-style), [`DEV_DSF_LOG_CONSOLE_OUT_STYLE`](./configuration.md#dev-dsf-log-console-out-style) and [`DEV_DSF_LOG_CONSOLE_ERR_STYLE`](./configuration.md#dev-dsf-log-console-err-style). The **TEXT_COLOR** and **TEXT_COLOR_MDC** styles are not supported for the file output. +* **TEXT** a minimal text format. +* **TEXT_COLOR** a minimal text format with ANSI escape sequences to colorize WARN and ERROR messages. Not supported for the file output. +* **TEXT_MDC** text format with additional infos (Mapped Diagnostic Context) about the requesting user. +* **TEXT_COLOR_MDC** text format with additional infos (Mapped Diagnostic Context) about the requesting user and ANSI escape sequences to colorize WARN and ERROR events. Not supported for the file output. +* **JSON_ECS** follows the Elastic Common Schema (ECS) reference. +* **JSON_GCP** uses the Google Cloud Platform structured logging model with additional `_thread`, `_logger` and `_exception` fields. +* **JSON_GELF** follows the Graylog Extended Log Format (GELF) payload specification with added `_thread` and `_logger` fields. +* **JSON_LOGSTASH** uses the Logstash json_event pattern for log4j. + +::: code-tabs#shell + +@tab TEXT + +```text :no-line-numbers +2026-01-13 15:57:57,567 [main] INFO dev.dsf.common.buildinfo.BuildInfoReaderImpl - Artifact: dsf-fhir-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:47+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685 +2026-01-13 16:03:28,524 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed +org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityDefinitionAuthorizationRule' defined in dev.dsf.fhir.spring.config.AuthorizationConfig: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130) + at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990) + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627) + at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394) + at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274) + at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501) + at org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348) + at org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429) + at org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066) + at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063) + at org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520) + at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92) + at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170) + at org.eclipse.jetty.server.Server.start(Server.java:689) + at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) + at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545) + at org.eclipse.jetty.server.Server.doStart(Server.java:630) + at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92) + at dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374) + at dev.dsf.fhir.FhirJettyServer.main(FhirJettyServer.java:56) +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 36 more +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver() + at dev.dsf.fhir.spring.config.AuthorizationConfig.activityDefinitionAuthorizationRule(AuthorizationConfig.java:123) + at dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.CGLIB$activityDefinitionAuthorizationRule$2() + at dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.activityDefinitionAuthorizationRule() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 39 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 60 more +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider() + at dev.dsf.fhir.spring.config.ReferenceConfig.referenceResolver(ReferenceConfig.java:54) + at dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.CGLIB$referenceResolver$1() + at dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 63 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 84 more +Caused by: java.lang.RuntimeException: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:92) + at dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1() + at dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 87 more +Caused by: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:435) + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:398) + at dev.dsf.fhir.spring.config.ClientConfig.createKeyStore(ClientConfig.java:111) + at dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:79) + ... 95 more +Caused by: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo.decryptPrivateKeyInfo(Unknown Source) + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:430) + ... 98 more +Caused by: org.bouncycastle.crypto.io.InvalidCipherTextIOException: Error finalising cipher + at org.bouncycastle.jcajce.io.CipherInputStream.finaliseCipher(Unknown Source) + at org.bouncycastle.jcajce.io.CipherInputStream.nextChunk(Unknown Source) + at org.bouncycastle.jcajce.io.CipherInputStream.read(Unknown Source) + at org.bouncycastle.util.io.Streams.pipeAll(Unknown Source) + at org.bouncycastle.util.io.Streams.pipeAll(Unknown Source) + at org.bouncycastle.util.io.Streams.readAll(Unknown Source) + ... 100 more +Caused by: javax.crypto.BadPaddingException: pad block corrupted + at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.doFinal(Unknown Source) + at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) + at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2139) + ... 106 more +2026-01-13 16:09:55,478 [jetty-server-95] INFO dev.dsf.fhir.authorization.AbstractMetaTagAuthorizationRule - Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/3 authorized for identity 'Test_Organization/webbrowser.test.user@invalid', matching access tag {ALL} +``` + +@tab TEXT_MDC + +```text :no-line-numbers +2026-01-13 16:11:47,115 [main] INFO dev.dsf.common.buildinfo.BuildInfoReaderImpl - Artifact: dsf-fhir-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:47+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685 +2026-01-13 16:12:36,611 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed +org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityDefinitionAuthorizationRule' defined in dev.dsf.fhir.spring.config.AuthorizationConfig: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130) + at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990) + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627) + at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394) + at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274) + at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501) + at org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348) + at org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429) + at org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066) + at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636) + at org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063) + at org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520) + at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92) + at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170) + at org.eclipse.jetty.server.Server.start(Server.java:689) + at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) + at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545) + at org.eclipse.jetty.server.Server.doStart(Server.java:630) + at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92) + at dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374) + at dev.dsf.fhir.FhirJettyServer.main(FhirJettyServer.java:56) +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 36 more +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver() + at dev.dsf.fhir.spring.config.AuthorizationConfig.activityDefinitionAuthorizationRule(AuthorizationConfig.java:123) + at dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.CGLIB$activityDefinitionAuthorizationRule$2() + at dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.activityDefinitionAuthorizationRule() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 39 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 60 more +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403) + at dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider() + at dev.dsf.fhir.spring.config.ReferenceConfig.referenceResolver(ReferenceConfig.java:54) + at dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.CGLIB$referenceResolver$1() + at dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 63 more +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) + ... 84 more +Caused by: java.lang.RuntimeException: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:92) + at dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1() + at dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$FastClass$$1.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400) + at dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider() + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) + at java.base/java.lang.reflect.Method.invoke(Method.java:565) + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172) + ... 87 more +Caused by: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:435) + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:398) + at dev.dsf.fhir.spring.config.ClientConfig.createKeyStore(ClientConfig.java:111) + at dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:79) + ... 95 more +Caused by: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher + at org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo.decryptPrivateKeyInfo(Unknown Source) + at de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:430) + ... 98 more +Caused by: org.bouncycastle.crypto.io.InvalidCipherTextIOException: Error finalising cipher + at org.bouncycastle.jcajce.io.CipherInputStream.finaliseCipher(Unknown Source) + at org.bouncycastle.jcajce.io.CipherInputStream.nextChunk(Unknown Source) + at org.bouncycastle.jcajce.io.CipherInputStream.read(Unknown Source) + at org.bouncycastle.util.io.Streams.pipeAll(Unknown Source) + at org.bouncycastle.util.io.Streams.pipeAll(Unknown Source) + at org.bouncycastle.util.io.Streams.readAll(Unknown Source) + ... 100 more +Caused by: javax.crypto.BadPaddingException: pad block corrupted + at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.doFinal(Unknown Source) + at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) + at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2139) + ... 106 more +2026-01-13 16:13:25,589 [jetty-server-94] INFO dev.dsf.fhir.authorization.AbstractMetaTagAuthorizationRule - {dsf.user.endpoint.identifier=fhir, dsf.user.name=Test_Organization/webbrowser.test.user@invalid, dsf.user.organization.identifier=Test_Organization, dsf.user.practitioner.dn=CN=Webbrowser Test User,O=DSF,C=DE, dsf.user.practitioner.identifier=webbrowser.test.user@invalid, dsf.user.practitioner.roles=[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN], dsf.user.practitioner.thumbprint=a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7, dsf.user.roles=[HISTORY, READ, CREATE, UPDATE, SEARCH]} - Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/5 authorized for identity 'Test_Organization/webbrowser.test.user@invalid', matching access tag {ALL} +``` + +@tab JSON_ECS + +```json :no-line-numbers +{ + "@timestamp": "2026-01-12T12:54:35.653Z", + "ecs.version": "1.2.0", + "log.level": "INFO", + "message": "Artifact: dsf-fhir-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:47+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685", + "process.thread.name": "main", + "log.logger": "dev.dsf.common.buildinfo.BuildInfoReaderImpl" +} +{ + "@timestamp": "2026-01-12T12:54:36.931Z", + "ecs.version": "1.2.0", + "log.level": "ERROR", + "message": "Context initialization failed", + "process.thread.name": "main", + "log.logger": "org.springframework.web.context.ContextLoader", + "error.type": "org.springframework.beans.factory.BeanCreationException", + "error.message": "Error creating bean with name 'activityDefinitionAuthorizationRule' defined in dev.dsf.fhir.spring.config.AuthorizationConfig: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher", + "error.stack_trace": "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityDefinitionAuthorizationRule' defined in dev.dsf.fhir.spring.config.AuthorizationConfig: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.fhir.FhirJettyServer.main(FhirJettyServer.java:56)\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 36 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig.activityDefinitionAuthorizationRule(AuthorizationConfig.java:123)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.CGLIB$activityDefinitionAuthorizationRule$2()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.activityDefinitionAuthorizationRule()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 39 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 60 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig.referenceResolver(ReferenceConfig.java:54)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.CGLIB$referenceResolver$1()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 63 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 84 more\nCaused by: java.lang.RuntimeException: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:92)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 87 more\nCaused by: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:435)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:398)\n\tat dev.dsf.fhir.spring.config.ClientConfig.createKeyStore(ClientConfig.java:111)\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:79)\n\t... 95 more\nCaused by: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo.decryptPrivateKeyInfo(Unknown Source)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:430)\n\t... 98 more\nCaused by: org.bouncycastle.crypto.io.InvalidCipherTextIOException: Error finalising cipher\n\tat org.bouncycastle.jcajce.io.CipherInputStream.finaliseCipher(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.nextChunk(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.read(Unknown Source)\n\tat org.bouncycastle.util.io.Streams.pipeAll(Unknown Source)\n\tat org.bounc…" +} +{ + "@timestamp": "2026-01-12T13:27:49.008Z", + "ecs.version": "1.2.0", + "log.level": "INFO", + "message": "Read of Organization/90500752-381a-46fa-858f-14d6d5b11627/_history/4 authorized for identity 'Test_Organization/webbrowser.test.user@invalid', matching access tag {ALL}", + "process.thread.name": "jetty-server-83", + "log.logger": "dev.dsf.fhir.authorization.AbstractMetaTagAuthorizationRule", + "dsf.user.endpoint.identifier": "fhir", + "dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "dsf.user.organization.identifier": "Test_Organization", + "dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "dsf.user.roles": "[UPDATE, READ, CREATE, HISTORY, SEARCH]" +} +``` + +@tab JSON_GCP + +```json :no-line-numbers +{ + "timestampSeconds": 1768222644, + "timestampNanos": 461746234, + "severity": "INFO", + "message": "Artifact: dsf-fhir-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:47+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685", + "logging.googleapis.com/sourceLocation": { + "function": "dev.dsf.common.buildinfo.BuildInfoReaderImpl.logBuildInfo" + }, + "logging.googleapis.com/trace_sampled": true, + "thread": "main", + "logger": "dev.dsf.common.buildinfo.BuildInfoReaderImpl" +} +{ + "timestampSeconds": 1768222645, + "timestampNanos": 738845490, + "severity": "ERROR", + "message": "Context initialization failed\norg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityDefinitionAuthorizationRule' defined in dev.dsf.fhir.spring.config.AuthorizationConfig: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.fhir.FhirJettyServer.main(FhirJettyServer.java:56)\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 36 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig.activityDefinitionAuthorizationRule(AuthorizationConfig.java:123)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.CGLIB$activityDefinitionAuthorizationRule$2()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.activityDefinitionAuthorizationRule()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 39 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 60 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig.referenceResolver(ReferenceConfig.java:54)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.CGLIB$referenceResolver$1()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 63 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 84 more\nCaused by: java.lang.RuntimeException: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:92)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 87 more\nCaused by: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:435)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:398)\n\tat dev.dsf.fhir.spring.config.ClientConfig.createKeyStore(ClientConfig.java:111)\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:79)\n\t... 95 more\nCaused by: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo.decryptPrivateKeyInfo(Unknown Source)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:430)\n\t... 98 more\nCaused by: org.bouncycastle.crypto.io.InvalidCipherTextIOException: Error finalising cipher\n\tat org.bouncycastle.jcajce.io.CipherInputStream.finaliseCipher(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.nextChunk(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.read(Unknown Source)\n\tat org.bouncycastle.util.io.Streams.pipeAll…", + "logging.googleapis.com/sourceLocation": { + "function": "org.springframework.web.context.ContextLoader.initWebApplicationContext" + }, + "logging.googleapis.com/trace_sampled": true, + "exception": "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityDefinitionAuthorizationRule' defined in dev.dsf.fhir.spring.config.AuthorizationConfig: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.fhir.FhirJettyServer.main(FhirJettyServer.java:56)\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 36 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig.activityDefinitionAuthorizationRule(AuthorizationConfig.java:123)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.CGLIB$activityDefinitionAuthorizationRule$2()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.activityDefinitionAuthorizationRule()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 39 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 60 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig.referenceResolver(ReferenceConfig.java:54)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.CGLIB$referenceResolver$1()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 63 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 84 more\nCaused by: java.lang.RuntimeException: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:92)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 87 more\nCaused by: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:435)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:398)\n\tat dev.dsf.fhir.spring.config.ClientConfig.createKeyStore(ClientConfig.java:111)\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:79)\n\t... 95 more\nCaused by: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo.decryptPrivateKeyInfo(Unknown Source)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:430)\n\t... 98 more\nCaused by: org.bouncycastle.crypto.io.InvalidCipherTextIOException: Error finalising cipher\n\tat org.bouncycastle.jcajce.io.CipherInputStream.finaliseCipher(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.nextChunk(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.read(Unknown Source)\n\tat org.bouncycastle.util.io.Streams.pipeAll(Unknown Source)\n\tat org.bounc…", + "thread": "main", + "logger": "org.springframework.web.context.ContextLoader" +} +{ + "timestampSeconds": 1768225245, + "timestampNanos": 847212542, + "severity": "INFO", + "message": "Read of Organization/90500752-381a-46fa-858f-14d6d5b11627/_history/5 authorized for identity 'Test_Organization/webbrowser.test.user@invalid', matching access tag {ALL}", + "logging.googleapis.com/labels": { + "dsf.user.endpoint.identifier": "fhir", + "dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "dsf.user.organization.identifier": "Test_Organization", + "dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "dsf.user.roles": "[UPDATE, READ, HISTORY, CREATE, SEARCH]" + }, + "logging.googleapis.com/sourceLocation": { + "function": "dev.dsf.fhir.authorization.AbstractMetaTagAuthorizationRule.reasonReadAllowed" + }, + "logging.googleapis.com/trace_sampled": true, + "thread": "jetty-server-63", + "logger": "dev.dsf.fhir.authorization.AbstractMetaTagAuthorizationRule" +} +``` + +@tab JSON_GELF + +```json :no-line-numbers +{ + "version": "1.1", + "host": "46e6824590a7", + "short_message": "Artifact: dsf-fhir-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:47+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685", + "timestamp": 1768224184.7015762, + "level": 6, + "_logger": "dev.dsf.common.buildinfo.BuildInfoReaderImpl", + "_thread": "main" +} +{ + "version": "1.1", + "host": "46e6824590a7", + "short_message": "Context initialization failed", + "full_message": "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityDefinitionAuthorizationRule' defined in dev.dsf.fhir.spring.config.AuthorizationConfig: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.fhir.FhirJettyServer.main(FhirJettyServer.java:56)\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 36 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig.activityDefinitionAuthorizationRule(AuthorizationConfig.java:123)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.CGLIB$activityDefinitionAuthorizationRule$2()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.activityDefinitionAuthorizationRule()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 39 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 60 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig.referenceResolver(ReferenceConfig.java:54)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.CGLIB$referenceResolver$0()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 63 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 84 more\nCaused by: java.lang.RuntimeException: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:92)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 87 more\nCaused by: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:435)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:398)\n\tat dev.dsf.fhir.spring.config.ClientConfig.createKeyStore(ClientConfig.java:111)\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:79)\n\t... 95 more\nCaused by: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo.decryptPrivateKeyInfo(Unknown Source)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:430)\n\t... 98 more\nCaused by: org.bouncycastle.crypto.io.InvalidCipherTextIOException: Error finalising cipher\n\tat org.bouncycastle.jcajce.io.CipherInputStream.finaliseCipher(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.nextChunk(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.read(Unknown Source)\n\tat org.bouncycastle.util.io.Streams.pipeAll(Unknown Source)\n\tat org.bounc…", + "timestamp": 1768224186.0572188, + "level": 3, + "_logger": "org.springframework.web.context.ContextLoader", + "_thread": "main" +} +{ + "version": "1.1", + "host": "f169cdb63fde", + "short_message": "Read of Organization/90500752-381a-46fa-858f-14d6d5b11627/_history/6 authorized for identity 'Test_Organization/webbrowser.test.user@invalid', matching access tag {ALL}", + "timestamp": 1768225406.81688, + "level": 6, + "_logger": "dev.dsf.fhir.authorization.AbstractMetaTagAuthorizationRule", + "_thread": "jetty-server-89", + "_dsf.user.endpoint.identifier": "fhir", + "_dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "_dsf.user.organization.identifier": "Test_Organization", + "_dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "_dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "_dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "_dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "_dsf.user.roles": "[CREATE, SEARCH, READ, UPDATE, HISTORY]" +} +``` + +@tab:active JSON_LOGSTASH + +```json :no-line-numbers +{ + "@version": 1, + "source_host": "da524e19dd3e", + "message": "Artifact: dsf-fhir-server-jetty, version: 2.0.1, build: 2025-11-26T20:24:47+01:00, branch: main, commit: 77ac1d45a35fae8666d531953572ab6c51a58685", + "thread_name": "main", + "@timestamp": "2026-01-12T14:24:17.152+0100", + "level": "INFO", + "logger_name": "dev.dsf.common.buildinfo.BuildInfoReaderImpl" +} +{ + "exception": { + "exception_class": "org.springframework.beans.factory.BeanCreationException", + "exception_message": "Error creating bean with name 'activityDefinitionAuthorizationRule' defined in dev.dsf.fhir.spring.config.AuthorizationConfig: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher", + "stacktrace": "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityDefinitionAuthorizationRule' defined in dev.dsf.fhir.spring.config.AuthorizationConfig: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)\n\tat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394)\n\tat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274)\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:126)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1614)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:501)\n\tat org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:675)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1348)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startWebapp(WebAppContext.java:1429)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1387)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1066)\n\tat org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1636)\n\tat org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1063)\n\tat org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:520)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:170)\n\tat org.eclipse.jetty.server.Server.start(Server.java:689)\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)\n\tat org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:545)\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:630)\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:92)\n\tat dev.dsf.common.jetty.JettyServer.start(JettyServer.java:374)\n\tat dev.dsf.fhir.FhirJettyServer.main(FhirJettyServer.java:56)\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.authorization.AuthorizationRule]: Factory method 'activityDefinitionAuthorizationRule' threw exception with message: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 36 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'referenceResolver' defined in dev.dsf.fhir.spring.config.ReferenceConfig: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig.activityDefinitionAuthorizationRule(AuthorizationConfig.java:123)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.CGLIB$activityDefinitionAuthorizationRule$2()\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.AuthorizationConfig$$SpringCGLIB$$0.activityDefinitionAuthorizationRule()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 39 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.service.ReferenceResolver]: Factory method 'referenceResolver' threw exception with message: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 60 more\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientProvider' defined in dev.dsf.fhir.spring.config.ClientConfig: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:489)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:432)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:403)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig.referenceResolver(ReferenceConfig.java:54)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.CGLIB$referenceResolver$1()\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ReferenceConfig$$SpringCGLIB$$0.referenceResolver()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 63 more\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.dsf.fhir.client.ClientProvider]: Factory method 'clientProvider' threw exception with message: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 84 more\nCaused by: java.lang.RuntimeException: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:92)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.CGLIB$clientProvider$1()\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$FastClass$$1.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)\n\tat dev.dsf.fhir.spring.config.ClientConfig$$SpringCGLIB$$0.clientProvider()\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)\n\t... 87 more\nCaused by: java.io.IOException: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:435)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:398)\n\tat dev.dsf.fhir.spring.config.ClientConfig.createKeyStore(ClientConfig.java:111)\n\tat dev.dsf.fhir.spring.config.ClientConfig.clientProvider(ClientConfig.java:79)\n\t... 95 more\nCaused by: org.bouncycastle.pkcs.PKCSException: unable to read encrypted data: Error finalising cipher\n\tat org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo.decryptPrivateKeyInfo(Unknown Source)\n\tat de.hsheilbronn.mi.utils.crypto.io.PemReader.readPrivateKey(PemReader.java:430)\n\t... 98 more\nCaused by: org.bouncycastle.crypto.io.InvalidCipherTextIOException: Error finalising cipher\n\tat org.bouncycastle.jcajce.io.CipherInputStream.finaliseCipher(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.nextChunk(Unknown Source)\n\tat org.bouncycastle.jcajce.io.CipherInputStream.read(Unknown Source)\n\tat org.bouncycastle.util.io.Streams.pipeAll(Unknown Source)\n\tat org.bounc…" + }, + "@version": 1, + "source_host": "da524e19dd3e", + "message": "Context initialization failed", + "thread_name": "main", + "@timestamp": "2026-01-12T14:24:18.486+0100", + "level": "ERROR", + "logger_name": "org.springframework.web.context.ContextLoader" +} +{ + "mdc": { + "dsf.user.endpoint.identifier": "fhir", + "dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "dsf.user.organization.identifier": "Test_Organization", + "dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "dsf.user.roles": "[UPDATE, READ, CREATE, HISTORY, SEARCH]" + }, + "@version": 1, + "source_host": "4bc83d5bca72", + "message": "Read of Organization/90500752-381a-46fa-858f-14d6d5b11627/_history/7 authorized for identity 'Test_Organization/webbrowser.test.user@invalid', matching access tag {ALL}", + "thread_name": "jetty-server-89", + "@timestamp": "2026-01-12T14:44:52.948+0100", + "level": "INFO", + "logger_name": "dev.dsf.fhir.authorization.AbstractMetaTagAuthorizationRule" +} +``` + +::: + +### Audit Logger +The file, *stdout* and *stderr* outputs for the **Audit Logger** can be enabled or disabled using the environment variables [`DEV_DSF_LOG_AUDIT_FILE_ENABLED`](./configuration.md#dev-dsf-log-audit-file-enabled), [`DEV_DSF_LOG_AUDIT_CONSOLE_OUT_ENABLED`](./configuration.md#dev-dsf-log-audit-console-out-enabled) and [`DEV_DSF_LOG_AUDIT_CONSOLE_ERR_ENABLED`](./configuration.md#dev-dsf-log-audit-console-err-enabled). + +All audit messages are logged with the same severity level (INFO). Audit messages are not included in the Standard Application Logger output. + +#### Output Style +Multiple styles are supported for the **Audit Logger** file, *stdout* and *stderr* outputs. All structured logging JSON styles include additional infos (Mapped Diagnostic Context) about the requesting user. The output style can be configured using the environment variables [`DEV_DSF_LOG_AUDIT_FILE_STYLE`](./configuration.md#dev-dsf-log-audit-file-style), [`DEV_DSF_LOG_AUDIT_CONSOLE_OUT_STYLE`](./configuration.md#dev-dsf-log-audit-console-out-style) and [`DEV_DSF_LOG_AUDIT_CONSOLE_ERR_STYLE`](./configuration.md#dev-dsf-log-audit-console-err-style). +* **TEXT** a minimal text format. +* **TEXT_MDC** text format with additional infos (Mapped Diagnostic Context) about the requesting user. +* **JSON_ECS** follows the Elastic Common Schema (ECS) reference. +* **JSON_GCP** uses the Google Cloud Platform structured logging model with additional `_thread`, `_logger` and `_exception` fields. +* **JSON_GELF** follows the Graylog Extended Log Format (GELF) payload specification with added `_thread` and `_logger` fields. +* **JSON_LOGSTASH** uses the Logstash json_event pattern for log4j. + +::: code-tabs#shell + +@tab TEXT + +```text :no-line-numbers +2026-01-14 13:05:15,281 Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/6 allowed for identity 'Test_Organization/webbrowser.test.user@invalid', reason: Identity has role READ [Organization], matching access tag {ALL} +2026-01-14 13:05:15,281 Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/6 for identity 'Test_Organization/webbrowser.test.user@invalid' successful, status: 200 OK +``` + +@tab TEXT_MDC + +```text :no-line-numbers +2026-01-14 13:06:58,279 {dsf.user.endpoint.identifier=fhir, dsf.user.name=Test_Organization/webbrowser.test.user@invalid, dsf.user.organization.identifier=Test_Organization, dsf.user.practitioner.dn=CN=Webbrowser Test User,O=DSF,C=DE, dsf.user.practitioner.identifier=webbrowser.test.user@invalid, dsf.user.practitioner.roles=[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN], dsf.user.practitioner.thumbprint=a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7, dsf.user.roles=[HISTORY, READ, CREATE, UPDATE, SEARCH]} Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/7 allowed for identity 'Test_Organization/webbrowser.test.user@invalid', reason: Identity has role READ [Organization], matching access tag {ALL} +2026-01-14 13:06:58,281 {dsf.user.endpoint.identifier=fhir, dsf.user.name=Test_Organization/webbrowser.test.user@invalid, dsf.user.organization.identifier=Test_Organization, dsf.user.practitioner.dn=CN=Webbrowser Test User,O=DSF,C=DE, dsf.user.practitioner.identifier=webbrowser.test.user@invalid, dsf.user.practitioner.roles=[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN], dsf.user.practitioner.thumbprint=a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7, dsf.user.roles=[HISTORY, READ, CREATE, UPDATE, SEARCH]} Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/7 for identity 'Test_Organization/webbrowser.test.user@invalid' successful, status: 200 OK +``` + +@tab JSON_ECS + +```json :no-line-numbers +{ + "@timestamp": "2026-01-14T12:10:18.467Z", + "ecs.version": "1.2.0", + "log.level": "INFO", + "message": "Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/8 allowed for identity 'Test_Organization/webbrowser.test.user@invalid', reason: Identity has role READ [Organization], matching access tag {ALL}", + "process.thread.name": "jetty-server-84", + "log.logger": "dsf-audit-logger", + "dsf.user.endpoint.identifier": "fhir", + "dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "dsf.user.organization.identifier": "Test_Organization", + "dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "dsf.user.roles": "[UPDATE, READ, CREATE, HISTORY, SEARCH]" +} +{ + "@timestamp": "2026-01-14T12:10:18.470Z", + "ecs.version": "1.2.0", + "log.level": "INFO", + "message": "Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/8 for identity 'Test_Organization/webbrowser.test.user@invalid' successful, status: 200 OK", + "process.thread.name": "jetty-server-84", + "log.logger": "dsf-audit-logger", + "dsf.user.endpoint.identifier": "fhir", + "dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "dsf.user.organization.identifier": "Test_Organization", + "dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "dsf.user.roles": "[UPDATE, READ, CREATE, HISTORY, SEARCH]" +} +``` + +@tab JSON_GCP + +```json :no-line-numbers +{ + "timestampSeconds": 1768392701, + "timestampNanos": 247233466, + "severity": "INFO", + "message": "Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/9 allowed for identity 'Test_Organization/webbrowser.test.user@invalid', reason: Identity has role READ [Organization], matching access tag {ALL}", + "logging.googleapis.com/labels": { + "dsf.user.endpoint.identifier": "fhir", + "dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "dsf.user.organization.identifier": "Test_Organization", + "dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "dsf.user.roles": "[UPDATE, CREATE, SEARCH, READ, HISTORY]" + }, + "logging.googleapis.com/sourceLocation": { + "function": "dev.dsf.fhir.webservice.secure.AbstractResourceServiceSecure.checkRead" + }, + "logging.googleapis.com/trace_sampled": true, + "thread": "jetty-server-76", + "logger": "dsf-audit-logger" +} +{ + "timestampSeconds": 1768392701, + "timestampNanos": 249559501, + "severity": "INFO", + "message": "Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/9 for identity 'Test_Organization/webbrowser.test.user@invalid' successful, status: 200 OK", + "logging.googleapis.com/labels": { + "dsf.user.endpoint.identifier": "fhir", + "dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "dsf.user.organization.identifier": "Test_Organization", + "dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "dsf.user.roles": "[UPDATE, CREATE, SEARCH, READ, HISTORY]" + }, + "logging.googleapis.com/sourceLocation": { + "function": "dev.dsf.fhir.webservice.secure.AbstractResourceServiceSecure.lambda$checkRead$1" + }, + "logging.googleapis.com/trace_sampled": true, + "thread": "jetty-server-76", + "logger": "dsf-audit-logger" +} +``` + +@tab JSON_GELF + +```json :no-line-numbers +{ + "version": "1.1", + "host": "5061409e4b61", + "short_message": "Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/10 allowed for identity 'Test_Organization/webbrowser.test.user@invalid', reason: Identity has role READ [Organization], matching access tag {ALL}", + "timestamp": 1768393090.890408, + "level": 6, + "_logger": "dsf-audit-logger", + "_thread": "jetty-server-63", + "_dsf.user.endpoint.identifier": "fhir", + "_dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "_dsf.user.organization.identifier": "Test_Organization", + "_dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "_dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "_dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "_dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "_dsf.user.roles": "[CREATE, SEARCH, HISTORY, READ, UPDATE]" +} +{ + "version": "1.1", + "host": "5061409e4b61", + "short_message": "Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/10 for identity 'Test_Organization/webbrowser.test.user@invalid' successful, status: 200 OK", + "timestamp": 1768393090.8934536, + "level": 6, + "_logger": "dsf-audit-logger", + "_thread": "jetty-server-63", + "_dsf.user.endpoint.identifier": "fhir", + "_dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "_dsf.user.organization.identifier": "Test_Organization", + "_dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "_dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "_dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "_dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "_dsf.user.roles": "[CREATE, SEARCH, HISTORY, READ, UPDATE]" +} +``` + +@tab:active JSON_LOGSTASH + +```json :no-line-numbers +{ + "mdc": { + "dsf.user.endpoint.identifier": "fhir", + "dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "dsf.user.organization.identifier": "Test_Organization", + "dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "dsf.user.roles": "[UPDATE, READ, HISTORY, CREATE, SEARCH]" + }, + "@version": 1, + "source_host": "df1d729560c0", + "message": "Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/11 allowed for identity 'Test_Organization/webbrowser.test.user@invalid', reason: Identity has role READ [Organization], matching access tag {ALL}", + "thread_name": "jetty-server-89", + "@timestamp": "2026-01-14T13:19:02.403+0100", + "level": "INFO", + "logger_name": "dsf-audit-logger" +} +{ + "mdc": { + "dsf.user.endpoint.identifier": "fhir", + "dsf.user.name": "Test_Organization/webbrowser.test.user@invalid", + "dsf.user.organization.identifier": "Test_Organization", + "dsf.user.practitioner.dn": "CN=Webbrowser Test User,O=DSF,C=DE", + "dsf.user.practitioner.identifier": "webbrowser.test.user@invalid", + "dsf.user.practitioner.roles": "[http://dsf.dev/fhir/CodeSystem/practitioner-role|DSF_ADMIN]", + "dsf.user.practitioner.thumbprint": "a8874b56a7442fae17f27acc8f91a6b8f531c1855c9c7070ce04baf3a3ba17cc5cc337ba7cbd9cbb1a24d331ce99d2eb71c1368de1ae4b142084c696991214e7", + "dsf.user.roles": "[UPDATE, READ, HISTORY, CREATE, SEARCH]" + }, + "@version": 1, + "source_host": "df1d729560c0", + "message": "Read of Organization/6d40351b-2237-486f-8fa0-6bed0ca08e72/_history/11 for identity 'Test_Organization/webbrowser.test.user@invalid' successful, status: 200 OK", + "thread_name": "jetty-server-89", + "@timestamp": "2026-01-14T13:19:02.406+0100", + "level": "INFO", + "logger_name": "dsf-audit-logger" +} +``` + +::: + +### Custom Logging Config +A fully custom log4j2 xml logging config can be set via the environment variable [`DEV_DSF_LOG_CONFIG`](./configuration.md#dev-dsf-log-config). diff --git a/docs/src/operations/v2.1.3/fhir/oidc.md b/docs/src/operations/v2.1.3/fhir/oidc.md new file mode 100644 index 000000000..519c6625f --- /dev/null +++ b/docs/src/operations/v2.1.3/fhir/oidc.md @@ -0,0 +1,63 @@ +--- +title: OpenID Connect +icon: config +--- + +## Overview +Access to the DSF FHIR server REST API and user interface can be configured via [access control roles](access-control). By default users are only authenticated using X.509 client certificates, but authentication for local users via OAuth 2.0 OpenID Connect can also be enabled. + +The DSF FHIR server supports [Authorization Code Flow](https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth) for the user interface as well as [Bearer Token Authentication](https://datatracker.ietf.org/doc/html/rfc6750) for the REST API. [Back-Channel Logout](https://openid.net/specs/openid-connect-backchannel-1_0.html) is also supported. + + +::: tip FHIR Reverse Proxy +The DSF FHIR reverse proxy requires client certificates by default. To use OpenID Connect authentication the configuration parameter [SSL_VERIFY_CLIENT](../fhir-reverse-proxy/configuration.html#ssl-verify-client) needs to be set to `optional`. +::: + + +## Authorization Code Flow + +To enable authentication via OpenID Connect authorization code flow, set the configuration parameter [DEV_DSF_SERVER_AUTH_OIDC_AUTHORIZATION_CODE_FLOW](configuration#dev-dsf-server-auth-oidc-authorization-code-flow) to `true` and specify the following parameters: + +- [DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_REALM_BASE_URL](configuration#dev-dsf-server-auth-oidc-provider-realm-base-url) +- [DEV_DSF_SERVER_AUTH_OIDC_CLIENT_ID](configuration#dev-dsf-server-auth-oidc-client-id) +- [DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET](configuration#dev-dsf-server-auth-oidc-client-secret) + +Optionally, back channel logout can be enabled by setting [DEV_DSF_SERVER_AUTH_OIDC_BACK_CHANNEL_LOGOUT](configuration#dev-dsf-server-auth-oidc-back-channel-logout) to `true`. The DSF FHIR server accepts logout tokens at [DEV_DSF_FHIR_SERVER_BASE_URL](configuration#dev-dsf-fhir-server-base-url) + `/back-channel-logout`. The path can be modified via [DEV_DSF_SERVER_AUTH_OIDC_BACK_CHANNEL_LOGOUT_PATH](configuration#dev-dsf-server-auth-oidc-back-channel-logout-path). + + +## Bearer Token Authentication + +To enable bearer token authentication, set the configuration parameter [DEV_DSF_SERVER_AUTH_OIDC_BEARER_TOKEN](configuration#dev-dsf-server-auth-oidc-bearer-token) to `true` and specify the following parameter: +- [DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_REALM_BASE_URL](configuration#dev-dsf-server-auth-oidc-provider-realm-base-url) + + +## Additional ODIC Configuration Parameter + +A number of additional `DEV_DSF_SERVER_AUTH_OIDC ...` configuration parameter are specify on the DSF FHIR server [configuration parameter page](configuration). + +For example the configuration parameter [DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_TRUST_SERVER_CERTIFICATE_CAS](configuration#dev-dsf-server-auth-oidc-provider-client-trust-server-certificate-cas) can be used to specify a PEM encoded file with trusted root certificates to be used when accessing the OpenID Connect provider. If not specify the JVM default trusted root certificates are used for this connection. + + +## Example +```yaml +services: + app: + image: ghcr.io/datasharingframework/fhir:1.5.2 + # ... + secrets: + - keycloak_root_ca.pem + # ... + environment: + # ... + DEV_DSF_SERVER_AUTH_OIDC_AUTHORIZATION_CODE_FLOW: 'true' + DEV_DSF_SERVER_AUTH_OIDC_BACK_CHANNEL_LOGOUT: 'true' + DEV_DSF_SERVER_AUTH_OIDC_BEARER_TOKEN: 'true' + DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_REALM_BASE_URL: https://keycloak.test.org/realms/dsf + DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_TRUST_SERVER_CERTIFICATE_CAS: /run/secrets/keycloak_root_ca.pem + DEV_DSF_SERVER_AUTH_OIDC_CLIENT_ID: dsf-fhir + DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET: n9bCMtjugv3Y_.szktXyQ2RH5se+J%o3 + # ... +secrets: + keycloak_root_ca.pem: + file: ./secrets/keycloak_root_ca.pem +``` \ No newline at end of file diff --git a/docs/src/operations/v2.1.3/image-verification.md b/docs/src/operations/v2.1.3/image-verification.md new file mode 100644 index 000000000..46731312b --- /dev/null +++ b/docs/src/operations/v2.1.3/image-verification.md @@ -0,0 +1,107 @@ +--- +title: Verify Image Signature +icon: safe +--- + +# How to Verify Image Signatures + +Starting with DSF {{release.tag}}, all official Docker images published to [ghcr.io/datasharingframework](https://github.com/orgs/datasharingframework/packages) are signed using [Cosign](https://docs.sigstore.dev/cosign/overview/) with [keyless signing](https://docs.sigstore.dev/cosign/signing/overview/) backed by GitHub's OIDC identity provider. Each image additionally has a CycloneDX SBOM attached to the registry, which is signed the same way. + +Verifying signatures before pulling images into production is strongly recommended. It ensures that the image was built and published by the official DSF GitHub Actions release workflow and has not been tampered with. + +## Prerequisites + +- [Cosign](https://docs.sigstore.dev/cosign/installation/) v2.0 or newer installed on the host running the verification. +- Network access to `ghcr.io` and the public Sigstore transparency log (`rekor.sigstore.dev`). +- The exact image digest (`sha256:...`) of the image you want to verify. The digest can be looked up on the [GitHub package page](https://github.com/orgs/datasharingframework/packages) of the respective image or via: + + ```bash + docker buildx imagetools inspect ghcr.io/datasharingframework/: + ``` + +::: warning Always pin the digest +Verifying by tag alone (`:{{release.tag}}`) is not sufficient — tags can be reassigned. Always include the immutable `@sha256:` in the verification command and in your production `docker-compose.yml`. +::: + +## Verify the Image Signature + +A successful verification prints the verified claims to stdout and exits with status `0`. The certificate identity confirms the signature was created by a workflow inside the `datasharingframework/dsf` repository, the OIDC issuer confirms it was a GitHub Actions run. + +The commands below are pre-filled with the correct image tag for this release. Replace `` with the digest you looked up for the image you intend to deploy. + +### FHIR Server (`fhir`) + +- Image: [`ghcr.io/datasharingframework/fhir`](https://github.com/datasharingframework/dsf/pkgs/container/fhir) + +```bash +cosign verify \ + {{release.image.fhir}}@sha256:{{release.digest.fhir}} \ + --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ + --certificate-oidc-issuer "https://token.actions.githubusercontent.com" +``` + +### FHIR Reverse Proxy (`fhir_proxy`) + +- Image: [`ghcr.io/datasharingframework/fhir_proxy`](https://github.com/datasharingframework/dsf/pkgs/container/fhir_proxy) + +```bash +cosign verify \ + {{release.image.fhir_proxy}}@sha256:{{release.digest.fhir_proxy}} \ + --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ + --certificate-oidc-issuer "https://token.actions.githubusercontent.com" +``` + +### BPE Server (`bpe`) + +- Image: [`ghcr.io/datasharingframework/bpe`](https://github.com/datasharingframework/dsf/pkgs/container/bpe) + +```bash +cosign verify \ + {{release.image.bpe}}@sha256:{{release.digest.bpe}} \ + --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ + --certificate-oidc-issuer "https://token.actions.githubusercontent.com" +``` + +### BPE Reverse Proxy (`bpe_proxy`) + +- Image: [`ghcr.io/datasharingframework/bpe_proxy`](https://github.com/datasharingframework/dsf/pkgs/container/bpe_proxy) + +```bash +cosign verify \ + {{release.image.bpe_proxy}}@sha256:{{release.digest.bpe_proxy}} \ + --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ + --certificate-oidc-issuer "https://token.actions.githubusercontent.com" +``` + +## Verify the SBOM Attestation + +Each image has a signed CycloneDX SBOM attached. Substitute `` with one of `fhir`, `fhir_proxy`, `bpe`, `bpe_proxy` and `` with the digest of the image you are verifying: + +```bash +cosign verify-attestation \ + --type cyclonedx \ + ghcr.io/datasharingframework/:{{release.tag}}@sha256: \ + --certificate-identity-regexp "https://github.com/datasharingframework/dsf/.*" \ + --certificate-oidc-issuer "https://token.actions.githubusercontent.com" +``` + +To extract the SBOM payload for further processing (e.g. dependency or vulnerability analysis): + +```bash +cosign download attestation \ + --predicate-type https://cyclonedx.org/bom \ + ghcr.io/datasharingframework/:{{release.tag}}@sha256: \ + | jq -r .payload | base64 -d | jq .predicate > sbom.cdx.json +``` + +## Troubleshooting + +- **`no matching signatures`** — The image was not signed by the official DSF release workflow. Do not use it in production. Re-check the registry path (`ghcr.io/datasharingframework/...`) and the digest. +- **`certificate identity ... did not match`** — The signature exists but was produced by a different repository or workflow. Verify you are pulling from the official `datasharingframework/dsf` org. +- **Network errors against `rekor.sigstore.dev`** — Cosign queries the public transparency log during verification. In air-gapped environments, pre-fetch and cache the log entries, or run cosign with `--insecure-ignore-tlog=true` only after carefully assessing the security implications. + +## Further Reading + +- [Cosign documentation](https://docs.sigstore.dev/cosign/overview/) +- [Sigstore keyless signing](https://docs.sigstore.dev/cosign/signing/overview/) +- [CycloneDX SBOM specification](https://cyclonedx.org/specification/overview/) diff --git a/docs/src/operations/v2.1.3/index.md b/docs/src/operations/v2.1.3/index.md new file mode 100644 index 000000000..a4125fc26 --- /dev/null +++ b/docs/src/operations/v2.1.3/index.md @@ -0,0 +1,23 @@ +--- +title: DSF {{release.tag}} +icon: guide +--- + +Data Sharing Framework 2.x is the new upcoming release of the Data Sharing Framework. + + +# System Administrators + +- [Install DSF {{release.tag}}](install) +- [Upgrade from DSF {{release.previousTag}}](upgrade-from-2) + + +## New features +- See [Release Notes](https://github.com/datasharingframework/dsf/releases/tag/v{{release.tag}}) + + diff --git a/docs/src/operations/v2.1.3/install-plugins.md b/docs/src/operations/v2.1.3/install-plugins.md new file mode 100644 index 000000000..0af001fca --- /dev/null +++ b/docs/src/operations/v2.1.3/install-plugins.md @@ -0,0 +1,78 @@ +--- +title: Install Plugins +icon: plugin +--- + + +## **Overview** +- You can find an overview of compatable process plugins below (last updated 2026-01-19). + + +| Process Plugin | released for test | released for production | +| -------------- | ----------------- | ----------------------- | +| [Ping-Pong](https://github.com/datasharingframework/dsf-process-ping-pong/releases) | [v1.0.1.0](https://github.com/datasharingframework/dsf-process-ping-pong/releases/tag/v1.0.1.0) & [v2.0.0.2](https://github.com/datasharingframework/dsf-process-ping-pong/releases/tag/v2.0.0.2) | [v1.0.1.0](https://github.com/datasharingframework/dsf-process-ping-pong/releases/tag/v1.0.1.0) & [v2.0.0.2](https://github.com/datasharingframework/dsf-process-ping-pong/releases/tag/v2.0.0.2) | +| [Allow-List](https://github.com/datasharingframework/dsf-process-allow-list/releases) | [v1.0.0.1](https://github.com/datasharingframework/dsf-process-allow-list/releases/tag/v1.0.0.1) | [v1.0.0.1](https://github.com/datasharingframework/dsf-process-allow-list/releases/tag/v1.0.0.1) | +| [MII Process Feasibility](https://github.com/medizininformatik-initiative/mii-process-feasibility/releases) | [v1.0.0.11](https://github.com/medizininformatik-initiative/mii-process-feasibility/releases/tag/v1.0.0.11) | [v1.0.0.11](https://github.com/medizininformatik-initiative/mii-process-feasibility/releases/tag/v1.0.0.11) | +| [MII Process Report](https://github.com/medizininformatik-initiative/mii-process-report/releases) | [v2.0.0.0](https://github.com/medizininformatik-initiative/mii-process-report/releases/tag/v2.0.0.0) | [v2.0.0.0](https://github.com/medizininformatik-initiative/mii-process-report/releases/tag/v2.0.0.0) | +| [MII Process Data Transfer](https://github.com/medizininformatik-initiative/mii-process-data-transfer/releases) | [v1.1.0.1](https://github.com/medizininformatik-initiative/mii-process-data-transfer/releases/tag/v1.1.0.1) | [v1.1.0.1](https://github.com/medizininformatik-initiative/mii-process-data-transfer/releases/tag/v1.1.0.1) | +| [MII Process Data Sharing](https://github.com/medizininformatik-initiative/mii-process-data-sharing/releases) | [v1.1.0.0](https://github.com/medizininformatik-initiative/mii-process-data-sharing/releases/tag/v1.1.0.0) | [v1.1.0.0](https://github.com/medizininformatik-initiative/mii-process-data-sharing/releases/tag/v1.1.0.0) | +| [NUM Dashboard Report](https://github.com/medizininformatik-initiative/dsf-plugin-numdashboard/releases) [Note](#num-dashboard-report-on-dsf-2) | [v1.1.0.0](https://github.com/medizininformatik-initiative/dsf-plugin-numdashboard/releases/tag/v1.1.0.0) | [v1.1.0.0](https://github.com/medizininformatik-initiative/dsf-plugin-numdashboard/releases/tag/v1.1.0.0) | + +- Deploying the process plugin to the DSF involves copy the process jar-file and configuring environment variable for the business process engine (BPE). + + +### Prerequisites +- A DSF installation of version 2.0.0 or higher. An installation guide can be found [here](https://dsf.dev/operations/latest/install.html). + +### Deployment +- Add the process jar-file to the DSF BPE folder `/opt/bpe/process`: +``` +wget (your jar-file download link) +``` + +For example: +``` + wget https://github.com/medizininformatik-initiative/mii-process-data-sharing/releases/download/v1.1.0.0/mii-process-data-sharing-1.1.0.0.jar +``` + +- Make sure the process is readable by the bpe user or group, for example by executing: +``` +sudo chmod 440 (your jar-file name.jar) +sudo chown root:bpe (your jar-file name.jar) +``` +For example: +``` +sudo chmod 440 mii-process-data-sharing-1.1.0.0.jar +sudo chown root:bpe mii-process-data-sharing-1.1.0.0.jar +``` + +- Modify the process exclude config in `/opt/bpe/docker-compose.yml` +- **Reminder:** Update/verify required configurations in `docker-compose.yml` + + +### NUM Dashboard Report on DSF 2 +The NUM Dashboard Report Plugin is now fully compabile with DSF 2.0.2 and above. If you implemented the workaround for DSF 2.0.1 and below, you can remove it: + + +1. Remove the file with the name `api-v1-allowed-bpe-classes.list` + + +2. Edit the `docker-compose.yml` file and remove the following volume and environment variable: + +```yaml +... + app: + image: ghcr.io/datasharingframework/bpe:2.0.2 +... + volumes: +... + - type: bind + source: api-v1-allowed-bpe-classes.list + target: /api-v1-allowed-bpe-classes.list +... + environment: + DEV_DSF_BPE_PROCESS_API_ALLOWED_BPE_CLASSES: "{v1: '/api-v1-allowed-bpe-classes.list'}" +... +``` + +3. Restart the application container with `docker compose up -d && docker compose logs -f`. diff --git a/docs/src/operations/v2.1.3/install.md b/docs/src/operations/v2.1.3/install.md new file mode 100644 index 000000000..0f81cd78f --- /dev/null +++ b/docs/src/operations/v2.1.3/install.md @@ -0,0 +1,228 @@ +--- +title: Install DSF {{release.tag}} +icon: install +--- + +In the following installation manual we will show you how you can install your own DSF instance to be part of an already existing DSF network. + + +## Prerequisites +### Virtual Machines +* DSF FHIR VM: min. 4 GB RAM, 4 vCPU, 100 GB HDD +* DSF BPE VM: min. 8 GB RAM, 4 vCPU, 20 GB HDD + +If you plan to transfer a lot of large files, we recommend a larger FHIR VM disk for temporary storage (if your largest file to transfer is 200GB in size, we recommend a disk with a size of at least 1TB). + +Please make sure to use a CPU with a modern instruction set with crypto acceleration enabled. We saw large performance drops on systems with inadequate hardware. + +### Docker / Docker-Compose +Both VMs need latest docker and docker compose. For the latest install guide see https://docs.docker.com/engine/install. + +``` +sudo apt-get update +sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg +echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null +sudo apt-get update +sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin +sudo systemctl enable docker.service +sudo systemctl enable containerd.service +``` + +The current version of docker compose is installed with the current docker version. + +### Client/Server Certificates +Two Certificates from a list of allowed certificate authorities (see [details about certificates](root-certificates.html)) are needed: +* Certificate _A_: Server Certificate - `TLS Web Server Authentication` +* Certificate _B_: Client Certificate - `TLS Web Client Authentication` + +If you use GÉANT TCS certificates, then they are configured by default with the necessary *X509v3 Extended Key Usage*s until the end of February 2026: `TLS Web Server Authentication, TLS Web Client Authentication`. + +For further details on supported Root Certificate Authorities click [here](root-certificates.html#list-of-default-trusted-certificate-authorities) + + +### Network setup / Network access + +* The DSF FHIR server needs to be accessible via the internet and able to access the internet without TLS interception. +* The BPE FHIR server should only be accessible by the internal network and able to access your DSF FHIR server via its external FQDN and the internet without TLS interception. + +Here is a quick overview of the expected network setup. + +| Source | Target | Port | Protocol | +| ----------------------------- | ----------------------------- | ---- | ---------------------- | +| DSF BPE (local) | DSF FHIR (local) | 443 | https, wss | +| DSF BPE (local) | DSF FHIR (other DSF communication partners) | 443 | https | +| DSF FHIR (local) | DSF FHIR (other DSF communication partners) | 443 | https (HTTP HEAD only) | +| DSF BPE (other DSF communication partners) | DSF FHIR (local) | 443 | https | +| DSF FHIR (other DSF communication partners) | DSF FHIR (local) | 443 | https (HTTP HEAD only) | + + Connections to services that are used by process plugins (e.g. a fTTP, a terminology server, simplifier.net or a local FHIR server) are not listed. Please refer to the respective process plugin documentation pages for more information. + + + +## Setup +### Prepare Certificates +1. Server Certificate (certificate _A_) + _This certificate will be used as the DSF FHIR servers server certificate (ssl_certificate_file.pem, ssl_certificate_key_file.pem)_ + * Store PEM encoded certificate as `ssl_certificate_file.pem` + * Store unencrypted, PEM encoded private-key as `ssl_certificate_key_file.pem` + * Store PEM encoded certificate chain (all intermediate CAs between the server and the root certificate, excluding root) as `ssl_certificate_chain_file.pem` + +1. Client Certificate (Certificate _B_) + _This certificate will be used as the DSF BPE servers client certificate (client_certificate.pem, client_certificate_private_key.pem) as well as the DSF FHIR servers client certificate (client_certificate.pem, client_certificate_private_key.pem)_ + * Store PEM encoded certificate as `client_certificate.pem` + * Store encrypted or not encrypted, PEM encoded private-key as `client_certificate_private_key.pem` + +### DSF FHIR Server +1. Add Group/User + Add group and user used by the DSF FHIR java application. Ubuntu compatible commands below: + ``` + sudo groupadd --gid 2101 fhir + sudo useradd --system --no-create-home --uid 2101 --gid 2101 fhir + ``` + +1. Download and Extract Config Files + Download and unpack the prepared DSF FHIR server config files and folder structure: + ``` + cd /opt + wget https://dsf.dev/download/dsf_fhir_{{release.tagUnderscored}}.tar.gz + sudo tar --same-owner -zxvf dsf_fhir_{{release.tagUnderscored}}.tar.gz + ``` + _The `tar` command will unpack the config files at `/opt/fhir` assuming you changed into the `/opt` directory._ + +1. Verify that the `fhir` system user or group can write into the following folder + * `/opt/fhir/log` + +1. Add certificates and keys + * Add the server certificate (certificate _A_), the corresponding private-key and the certificate chain (one file with all intermediate certificates, excluding the root CA) to **/opt/fhir/secrets/** + * ssl_certificate_file.pem (chmod: 440, chown: root:4101, 4101 is the user of the fhir proxy) + * ssl_certificate_key_file.pem (chmod: 440, chown: root:4101) + * ssl_certificate_chain_file.pem (chmod: 444, chown: root:fhir) + * Add the client certificate (Certificate _B_) and the corresponding private-key to **/opt/fhir/secrets/** + * client_certificate.pem (chmod: 440, chown: root:fhir) + * client_certificate_private_key.pem (chmod: 440, chown: root:fhir) + * If the private key is encrypted, add a password file with the password as the only content to **/opt/fhir/secrets/client_certificate_private_key.pem.password** + * If the private key is not encrypted, remove the corresponding docker secret lines from the `docker-compose.yml` file + ``` + L37: - app_client_certificate_private_key.pem.password + ... + L50: DEV_DSF_FHIR_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD_FILE: /run/secrets/app_client_certificate_private_key.pem.password + ... + L108: app_client_certificate_private_key.pem.password: + L109: file: ./secrets/client_certificate_private_key.pem.password + ``` + + ::: tip How to chmod / chown + For the example *ssl_certificate_file.pem (chmod: 440, chown: root:4101)* you must: + + 1. Set the file content as requested + 2. Change the file permissions to 440 (allow read access to the owner of the file and the group the file belongs to, deny write access to everybody and deny read for other users): + `chmod 440 /opt/fhir/secrets/ssl_certificate_file.pem` + 3. Change the owner of the file to the user root and the group the file belongs to to the id 4101: + `chown fhir:docker /opt/fhir/secrets/ssl_certificate_file.pem` + + ::: + +1. Modify database passwords + * **/opt/fhir/secrets/db_liquibase.password** + * Generate a random password (min. 32 characters recommended) and replace the content of the file. + * **/opt/fhir/secrets/db_user.password** + * Generate a random password (min. 16 characters recommended) and replace the content of the file. + * **/opt/fhir/secrets/db_user_permanent_delete.password** + * Generate a random password (min. 16 characters recommended) and replace the content of the file. + +1. Modify the docker-compose.yml file and set environment variables to the appropriate values + * **services -> proxy -> environment:** + * **HTTPS_SERVER_NAME_PORT**: `dsf.todo.organization.com:443` + Set your FHIR servers external FQDN, e.g. `https://foo.bar.de` -> `foo.bar.de:443` + * For additional environment variables, see the FHIR Reverse Proxy [Configuration Parameters](fhir-reverse-proxy/configuration) page. + * **services -> app -> environment:** + * **DEV_DSF_FHIR_SERVER_ORGANIZATION_IDENTIFIER_VALUE**: `todo.organization.com` + Set your Organizations DSF identifier, aka the shortest FQDN that resolves to the main homepage of the organization, e.g. `hs-heilbronn.de` + * **DEV_DSF_FHIR_SERVER_BASE_URL**: `https://dsf.todo.organization.com/fhir` + Set your FHIR servers external FQDN, e.g. `foo.bar.de` -> `https://foo.bar.de/fhir` + * **DEV_DSF_FHIR_SERVER_ROLECONFIG**: `|` + (Optional) You can add other client certificates (e.g. personal certificates from admins) to your DSF instance. For additional information, see the FHIR server [Access Control](fhir/access-control) page. + + * For additional environment variables, see the FHIR server [Configuration Parameters](fhir/configuration) page. + +1. Start the DSF FHIR Server + Start using: `docker compose up -d && docker compose logs -f` (Ctrl-C will close log, but not stop container) + +### DSF BPE Server +1. Add Group/User + Add group and user used by the DSF BPE java application. Ubuntu compatible commands below: + ``` + sudo groupadd --gid 2202 bpe + sudo useradd --system --no-create-home --uid 2202 --gid 2202 bpe + ``` +1. Download and Extract Config Files + Download and extract prepared DSF BPE server config files and folder structure: + ``` + cd /opt + wget https://dsf.dev/download/dsf_bpe_{{release.tagUnderscored}}.tar.gz + sudo tar --same-owner -zxvf dsf_bpe_{{release.tagUnderscored}}.tar.gz + ``` + _The `tar` command will unpack the config files at `/opt/bpe` assuming you changed into the `/opt` directory._ + +1. Verify that the `bpe` system user or group can write into the following folders + * `/opt/bpe/log` + +1. Add certificates and keys + * Add the client certificate (Certificate _B_) and the corresponding private-key to **/opt/bpe/secrets/** + * client_certificate.pem (chmod: 440 chown: root:bpe) + * client_certificate_private_key.pem (chmod: 440 chown: root:bpe) + * If the private key is encrypted, add a password file with the password as the only content to **/opt/bpe/secrets/client_certificate_private_key.pem.password** + * If the private key is not encrypted, remove the corresponding docker secret lines from the `docker-compose.yml` file + ``` + L11: - app_client_certificate_private_key.pem.password + ... + L31: DEV_DSF_BPE_FHIR_CLIENT_CERTIFICATE_PRIVATE_KEY_PASSWORD_FILE: /run/secrets/app_client_certificate_private_key.pem.password + ... + L82: app_client_certificate_private_key.pem.password: + L83: file: ./secrets/client_certificate_private_key.pem.password + ``` +1. Modify database passwords + * **/opt/bpe/secrets/db_liquibase.password** + * Generate a random password (min. 32 characters recommended) and replace the content of the file. + * **/opt/bpe/secrets/db_user.password** + * Generate a random password (min. 16 characters recommended) and replace the content of the file. + * **/opt/bpe/secrets/db_user_camunda.password** + * Generate a random password (min. 16 characters recommended) and replace the content of the file. + +1. Modify the docker-compose.yml file and set environment variables to the appropriate values + * **services -> app -> environment:** + * **DEV_DSF_BPE_FHIR_SERVER_BASE_URL**: `https://dsf.todo.organization.com/fhir` + Set your FHIR servers external FQDN, e.g. `foo.bar.de` -> `https://foo.bar.de/fhir` + + * For additional environment variables, see the BPE server [Configuration Parameters](bpe/configuration) page. + +1. Start the DSF BPE Server (without process plugins) + Start using: `docker compose up -d && docker compose logs -f` (Ctrl-C will close log, but not stop container) + +1. Verify DSF BPE Startup + * Check that the BPE was able to download new Task resources from the DSF FHIR server during startup. + * Check that the BPE was able to download a Subscription resource from the DSF FHIR server during startup. + * Check that the BPE was able to connect to the websocket endpoint of the DSF FHIR server during startup. + + If you need to debug the TLS connection to your DSF FHIR server use for example: + `docker run -it --rm alpine/openssl s_client your-fhir-server.fqdn:443` + The command above should print the server certificate of your DSF FHIR server (certificate _A_) and end with a message like `[...]tlsv13 alert certificate required[...]` + + +### Logs +By default, we will log both to the console (collected by docker) and to files in the log directory, so you can use `docker compose logs -f` in `/opt/bpe` and `/opt/fhir` to view informational, warning and error logs. If you encounter any error and the reported information is not detailed enough, you can also check the logs in the `/opt/fhir/log` and `/opt/bpe/log` directories with debugging logs. There, you will also find older log files. If you have any questions and can't resolve them by yourself please always include the latest logs from `/opt/fhir/log` and `/opt/bpe/log` in your support request. + +On a successful BPE start, you should see the following entries in your BPE log: + +``` +INFO Grizzly(1) - INFO Grizzly(1) - ClientEndpoint.onOpen(37) | Websocket open, session SOME_RANDOM_UUID1 +INFO Grizzly(1) - INFO Grizzly(1) - ClientEndpoint.onOpen(37) | Websocket open, session SOME_RANDOM_UUID2 +``` + +### On-Boarding +Please visit the on boarding website of your network for more information. + +::: tip Ideas for improvement? +Have you found an error or is something unclear to you? Then please feel free to write to us at dsf-gecko@hs-heilbronn.de. Thank you very much! +::: \ No newline at end of file diff --git a/docs/src/operations/v2.1.3/passwords-secrets.md b/docs/src/operations/v2.1.3/passwords-secrets.md new file mode 100644 index 000000000..62bb2ef1f --- /dev/null +++ b/docs/src/operations/v2.1.3/passwords-secrets.md @@ -0,0 +1,33 @@ +--- +title: Passwords and Secrets +icon: safe +--- + +Environment variables ending in `_PASSWORD` or `_SECRET` can be configured using plain-text files. To achieve this, environment variable should be defined with `_FILE` appended to the name with the value defined as the location of the file. For all variables ending in `_PASSWORD_FILE` or `_SECRET_FILE` the DSF FHIR and DSF BPE applications will read the content of the fist line of the referenced file and dynamically define the corresponding `_PASSWORD` or `_SECRET` environment variables with the read values. + +### Example Environment Variables +- **DEV_DSF_BPE_DB_USER_PASSWORD_FILE**: If set to `/run/secrets/db_user_password`, the application will read the contents of the `/run/secrets/db_user_password` file and set the `DEV_DSF_BPE_DB_USER_PASSWORD` environment variable with the content from that file. +- **DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET_FILE**: If set to `/run/secrets/oidc_client_secret`, the application will read the contents of the referenced file and set the `DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET` environment variable accordingly. + +### Docker Secrets + +It is recommended to use [docker secrets](https://docs.docker.com/compose/how-tos/use-secrets) as files for these environment variables. Docker secrets are mounted as files in `/run/secrets/` inside the container. + +#### Example docker-compose +```yaml +services: + app: + image: ghcr.io/datasharingframework/fhir + secrets: + - db_user_password + - oidc_client_secret + environment: + DEV_DSF_BPE_DB_USER_PASSWORD_FILE: /run/secrets/db_user_password + DEV_DSF_SERVER_AUTH_OIDC_CLIENT_SECRET_FILE: /run/secrets/oidc_client_secret + +secrets: + db_user_password: + file: ./secrets/db_user.password + api_key: + file: ./secrets/oidc_client.secret +``` \ No newline at end of file diff --git a/docs/src/operations/v2.1.3/release-notes.md b/docs/src/operations/v2.1.3/release-notes.md new file mode 100644 index 000000000..3787b1862 --- /dev/null +++ b/docs/src/operations/v2.1.3/release-notes.md @@ -0,0 +1,60 @@ +--- +title: Release Notes (v2.1.3) +icon: note +--- + +## [Release Notes for v2.1.3](https://github.com/datasharingframework/dsf/releases/tag/v2.1.3) + +::: tip Release Notes +You can access all release notes on our [GitHub](https://github.com/datasharingframework/dsf/releases). +::: + +### 2.1.3 - Maintenance Release +General remarks: + +- This is a maintenance update for DSF 2.x with security improvements. +- To Update from an existing 2.x installation, please see the [2.x -> 2.1.3 Upgrade Guide](/operations/v2.1.3/upgrade-from-2.html). +- For a fresh deployment, follow the [installation instructions](/operations/v2.1.3/install.html). + +Bug Fixes: +- A jetty dependency upgrade in the 2.1.2 release was missing corresponding code changes in the `dsf-common-jetty` module (fc22889), resulting in failed OIDC logins (HTTP status 500). [#615](https://github.com/datasharingframework/dsf/issues/615) + +Docker images for this release can be accessed via the GitHub Docker registry - ghcr.io: +* **bpe**: [ghcr.io/datasharingframework/bpe:2.1.3](https://github.com/orgs/datasharingframework/packages/container/bpe/1619172005?tag=2.1.3) + Digest: `sha256:faea3800b035b0565f139b2c85fff3bb98fdba961dc4ad1759269e26fe63e703` +* **bpe_proxy**: [ghcr.io/datasharingframework/bpe_proxy:2.1.3](https://github.com/orgs/datasharingframework/packages/container/bpe_proxy/1619168829?tag=2.1.3) + Digest: `sha256:aaf8d6caad0a60f13885ed08d8f43431a552aeb7049eb8f1a93ff0c535719d2b` +* **fhir**: [ghcr.io/datasharingframework/fhir:2.1.3](https://github.com/orgs/datasharingframework/packages/container/fhir/1619171288?tag=2.1.3) + Digest: `sha256:8c411d26561544787e5cbe68a159b6cdf0f046d01e2b12960317164e4da357b8` +* **fhir_proxy**: [ghcr.io/datasharingframework/fhir_proxy:2.1.3](https://github.com/orgs/datasharingframework/packages/container/fhir_proxy/1619166219?tag=2.1.3) + Digest: `sha256:266d4dd4f080d2069fd57ff6691fc0819bd9c1c9ede472fcd5b4fc0c8d324e70` + +Process Plugin API v1 on Maven Central: +```xml + + dev.dsf + dsf-bpe-process-api-v1 + 2.1.3 + +``` +Process Plugin API v2 on Maven Central: +```xml + + dev.dsf + dsf-bpe-process-api-v2 + 2.1.3 + +``` +DSF Maven Plugin on Maven Central: +```xml + + dev.dsf + dsf-maven-plugin + 2.1.3 + +``` + +Issues closed: +- OIDC Login Fails [#615](https://github.com/datasharingframework/dsf/issues/615) + +This release contains contributions from [@hhund](https://github.com/hhund), [@jaboehri](https://github.com/jaboehri) and [@schwzr](https://github.com/schwzr). diff --git a/docs/src/operations/v2.1.3/root-certificates.md b/docs/src/operations/v2.1.3/root-certificates.md new file mode 100644 index 000000000..d97666ba4 --- /dev/null +++ b/docs/src/operations/v2.1.3/root-certificates.md @@ -0,0 +1,260 @@ +--- +title: Trusted Certificates +icon: safe +--- + +A number of trusted certificate authorities (CAs) are included in the DSF docker images [fhir_proxy](https://github.com/datasharingframework/dsf/pkgs/container/fhir_proxy), [fhir](https://github.com/datasharingframework/dsf/pkgs/container/fhir), [bpe_proxy](https://github.com/datasharingframework/dsf/pkgs/container/bpe_proxy) and [bpe](https://github.com/datasharingframework/dsf/pkgs/container/bpe) by default. Root and intermediate certificates as well as the configured usage of issuing CAs as either **server**, **client** oder **server and client** CA are listed at the end. + +:::info +Please ensure that you are using an organization-validated certificate (OV). We check for the presence of certain elements in the FHIR proxy. These are not set for domain-validated (DV) certificates. DV-validated certificates cannot be used in the standard setup. +::: + +## Extending or Replacing Trusted Certificate Authorities +X.509 certificates of default trusted CAs are stored as individual .pem files containing one certificate each in the docker images and can be replaced by either using docker [bind mounts](https://docs.docker.com/engine/storage/bind-mounts) or configuring appropriate environment variables with different targets. + +### FHIR Reverse Proxy +Defaults are configured for the list of issuing, intermediate and root CAs used for validating client certificates (Apache httpd mod_ssl configuration option [SSLCACertificatePath](https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcacertificatepath)) as well as the CA Certificates for defining acceptable CA names (option [SSLCADNRequestPath](https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcadnrequestpath)). The default values of the following environment variables point to folders containing .pem files with one file per trusted CA: +* [SSL_CA_CERTIFICATE_PATH](fhir-reverse-proxy/configuration.html#ssl-ca-certificate-path) + Default Value: `ca/client_ca_chains` + Default Folder Content: [client_ca_chains.zip](/download/2.1.0/client_ca_chains.zip) +* [SSL_CA_DN_REQUEST_PATH](fhir-reverse-proxy/configuration.html#ssl-ca-dn-request-path) + Default Value: `ca/client_issuing_cas` + Default Folder Content: [client_issuing_cas.zip](/download/2.1.0/client_issuing_cas.zip) + +Use docker bind mounts to replace all default files or add additional CAs to the folders. + +**Note:** Default file location are relative to the docker image work directory `/usr/local/apache2`. +**Also Note:** Using non default .pem files for the environment variables above may require also modifying the default values of the environment variables [SSL_EXPECTED_CLIENT_S_DN_C_VALUES](fhir-reverse-proxy/configuration.html#ssl-expected-client-s-dn-c-values) and [SSL_EXPECTED_CLIENT_I_DN_CN_VALUES](fhir-reverse-proxy/configuration.html#ssl-expected-client-i-dn-cn-values). + +### FHIR Server +Defaults are configured for the list of issuing, intermediate and root CAs used for validating client certificates as well as root CAs used for validating server certificates of remote DSF FHIR servers and the OIDC provider when using [OpenID Connect](fhir/oidc.html) for authenticating local users. + +**Note:** Default file location are relative to the docker image work directory `/opt/fhir`. + +You can add an additional certificate authority (e.g., your hospital CA) for + +- server certificates by creating a bind-mount of the CA file into the `/opt/fhir/ca/server_root_cas/` directory +- client certificates by creating bind-mounts of the intermediate CA files and their root CA file into the `/opt/fhir/ca/client_ca_chains/` directory. + +See the [BPE Server configuration](#bpe-server) for an example. + +If you can't override the default configuration with bind-mounts, you can use the following environment variables to configure non default .pem file directories or .pem file: +* [DEV_DSF_FHIR_CLIENT_TRUST_SERVER_CERTIFICATE_CAS](fhir/configuration.html#dev-dsf-fhir-client-trust-server-certificate-cas) + Default Value: `ca/server_root_cas` + Default Folder Content: [server_root_cas.zip](/download/2.1.0/server_root_cas.zip) +* [DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_TRUST_SERVER_CERTIFICATE_CAS](fhir/configuration.html#dev-dsf-server-auth-oidc-provider-client-trust-server-certificate-cas) + Default Value: `ca/server_root_cas` + Default Folder Content: [server_root_cas.zip](/download/2.1.0/server_root_cas.zip) +* [DEV_DSF_SERVER_AUTH_TRUST_CLIENT_CERTIFICATE_CAS](fhir/configuration.html#dev-dsf-server-auth-trust-client-certificate-cas) + Default Value: `ca/client_ca_chains` + Default Folder Content: [client_ca_chains.zip](/download/2.1.0/client_ca_chains.zip) + +### BPE Reverse Proxy +Defaults are configured for the list of issuing, intermediate and root CAs used for validating client certificates (Apache httpd mod_ssl configuration option [SSLCACertificatePath](https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcacertificatepath)) as well as the CA Certificates for defining acceptable CA names (option [SSLCADNRequestPath](https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcadnrequestpath)). The default values of the following environment variables point to folders containing .pem files with one file per trusted CA: +* [SSL_CA_CERTIFICATE_PATH](bpe-reverse-proxy/configuration.html#ssl-ca-certificate-path) + Default Value: `ca/client_ca_chains` + Default Folder Content: [client_ca_chains.zip](/download/2.1.0/client_ca_chains.zip) +* [SSL_CA_DN_REQUEST_PATH](bpe-reverse-proxy/configuration.html#ssl-ca-dn-request-path) + Default Value: `ca/client_issuing_cas` + Default Folder Content: [client_issuing_cas.zip](/download/2.1.0/client_issuing_cas.zip) + +Use docker bind mounts to replace all default files or add additional CAs to the folders. + +**Note:** Default file location are relative to the docker image work directory `/usr/local/apache2`. +**Also Note:** Using non default .pem files for the environment variables above may require also modifying the default values of the environment variables [SSL_EXPECTED_CLIENT_S_DN_C_VALUES](bpe-reverse-proxy/configuration.html#ssl-expected-client-s-dn-c-values) and [SSL_EXPECTED_CLIENT_I_DN_CN_VALUES](bpe-reverse-proxy/configuration.html#ssl-expected-client-i-dn-cn-values). + +### BPE Server +Defaults are configured for the list of issuing, intermediate and root CAs used for validating client certificates as well as root CAs used for validating server certificates of local and remote DSF FHIR servers, the local mail server (if configured and SMTP over TLS required) and the OIDC provider when using [OpenID Connect](fhir/oidc.html) for authenticating local users. + +**Note:** Default file location are relative to the docker image work directory `/opt/bpe`. + +You can add an additional certificate authority (e.g., your hospital CA) for + +- server certificates by creating a bind-mount of the CA file into the `/opt/bpe/ca/server_root_cas/` directory +- client certificates by creating bind-mounts of the intermediate CA files and their root CA file into the `/opt/bpe/ca/client_ca_chains/` directory. + +If you have an additional certificate authority (e.g., your hospital CA) as `hospital-root-ca.pem` in your `/opt/bpe/secrets` directory, you can add it by adding the following entry in your docker-compose.yml file: + +```diff +services: + app: +... + volumes: ++ - type: bind ++ source: ./secrets/hospital-root-ca.pem ++ target: /opt/bpe/ca/server_root_cas/hospital-root-ca.pem ++ read_only: true +``` + +Use the following environment variable to configure non default .pem files or override the existing files using docker bind mounts: +* [DEV_DSF_BPE_FHIR_CLIENT_CONNECTIONS_CONFIG_DEFAULT_TRUST_SERVER_CERTIFICATE_CAS](bpe/configuration.html#dev-dsf-bpe-fhir-client-connections-config-default-trust-server-certificate-cas) + Default Value: `ca/server_root_cas` + Default Folder Content: [server_root_cas.zip](/download/2.1.0/server_root_cas.zip) +* [DEV_DSF_BPE_FHIR_CLIENT_TRUST_SERVER_CERTIFICATE_CAS](bpe/configuration.html#dev-dsf-bpe-fhir-client-trust-server-certificate-cas) + Default Value: `ca/server_root_cas` + Default Folder Content: [server_root_cas.zip](/download/2.1.0/server_root_cas.zip) + [DEV_DSF_BPE_MAIL_TRUST_SERVER_CERTIFICATE_CAS](bpe/configuration.html#dev-dsf-bpe-mail-trust-server-certificate-cas) + Default Value: `ca/server_root_cas` + Default Folder Content: [server_root_cas.zip](/download/2.1.0/server_root_cas.zip) +* [DEV_DSF_SERVER_AUTH_OIDC_PROVIDER_CLIENT_TRUST_SERVER_CERTIFICATE_CAS](bpe/configuration.html#dev-dsf-server-auth-oidc-provider-client-trust-server-certificate-cas) + Default Value: `ca/server_root_cas` + Default Folder Content: [server_root_cas.zip](/download/2.1.0/server_root_cas.zip) +* [DEV_DSF_SERVER_AUTH_TRUST_CLIENT_CERTIFICATE_CAS](bpe/configuration.html#dev-dsf-server-auth-trust-client-certificate-cas) + Default Value: `ca/client_ca_chains` + Default Folder Content: [client_ca_chains.zip](/download/2.1.0/client_ca_chains.zip) + +## List of Default Trusted Certificate Authorities +If not mentioned explicitly, issuing CAs listed will sign X.509 certificates with [Extended Key Usage](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.12) entries `TLS WWW server authentication` and `TLS WWW client authentication`. + +* Root CA: **HARICA TLS ECC Root CA 2021** + Info: https://crt.sh/?caid=202185 + X509 Certificate: https://crt.sh/?id=4147045948 + Not after: Feb 13 11:01:09 2045 GMT + * Issuing CA: **GEANT TLS ECC 1** + Info: https://crt.sh/?caid=390050 + X509 Certificate: https://crt.sh/?id=16099180990 + Not after: Dec 31 11:14:20 2039 GMT + * Issuing CA: **HARICA OV TLS ECC** + Info: https://crt.sh/?caid=207661 + X509 Certificate: https://crt.sh/?id=4442848530 + Not after: Mar 15 09:33:51 2036 GMT +* Root CA: **HARICA TLS RSA Root CA 2021** + Info: https://crt.sh/?caid=202184 + X509 Certificate: https://crt.sh/?id=4147041876 + Not after: Feb 13 10:55:37 2045 GMT + * Issuing CA: **GEANT TLS RSA 1** + Info: https://crt.sh/?caid=390054 + X509 Certificate: https://crt.sh/?id=16099180997 + Not after: Dec 31 11:14:59 2039 GMT + * Issuing CA: **HARICA OV TLS RSA** + Info: https://crt.sh/?caid=207660 + X509 Certificate: https://crt.sh/?id=4442848529 + Not after: Mar 15 09:34:16 2036 GMT +* Root CA: **HARICA Client ECC Root CA 2021** [client certificates only] + Info: https://crt.sh/?caid=202189 + X509 Certificate: https://crt.sh/?id=4147052292 + Not after: Feb 13 11:03:33 2045 GMT + * Issuing CA: **GEANT S/MIME ECC 1** [client certificates only] + Info: https://crt.sh/?caid=390048 + X509 Certificate: https://crt.sh/?id=16099180988 + Not after: Dec 31 11:11:39 2039 GMT + * Issuing CA: **HARICA S/MIME ECC** [client certificates only] + Info: https://crt.sh/?caid=207659 + X509 Certificate: https://crt.sh/?id=4442848523 + Not after: Mar 15 09:36:57 2036 GMT + * Issuing CA: **HARICA Client Authentication ECC** [client certificates only] + Info: https://crt.sh/?caid=207671 + X509 Certificate: https://crt.sh/?id=4442848518 + Not after: Mar 15 09:17:38 2036 GMT +* Root CA: **HARICA Client RSA Root CA 2021** [client certificates only] + Info: https://crt.sh/?caid=202188 + X509 Certificate: https://crt.sh/?id=4147049674 + Not after: Feb 13 10:58:45 2045 GMT + * Issuing CA: **GEANT S/MIME RSA 1** [client certificates only] + Info: https://crt.sh/?caid=390049 + X509 Certificate: https://crt.sh/?id=16099180989 + Not after: Dec 31 11:13:07 2039 GMT + * Issuing CA: **HARICA S/MIME RSA** [client certificates only] + Info: https://crt.sh/?caid=207658 + X509 Certificate: https://crt.sh/?id=4442848517 + Not after: Mar 15 09:37:37 2036 GMT + * Issuing CA: **HARICA Client Authentication RSA** [client certificates only] + Info: https://crt.sh/?caid=207670 + X509 Certificate: https://crt.sh/?id=4442848531 + Not after: Mar 15 09:19:36 2036 GMT +* Root CA: **T-TeleSec GlobalRoot Class 2** [client certificates only, will be removed in a future release, incl. derived CAs] + Info: https://crt.sh/?caid=6068 + X509 Certificate: https://crt.sh/?id=8733622 + Not after: Oct 1 23:59:59 2033 GMT + * Intermediate Root CA: **DFN-Verein Certification Authority 2** [client certificates only, will be removed in a future release, incl. derived CAs] + Info: https://crt.sh/?caid=22818 + X509 Certificate: https://crt.sh/?id=23908438 + Not after: Feb 22 23:59:59 2031 GMT + * Issuing CA: **DFN-Verein Global Issuing CA** [client certificates only, no new certificates] + Info: https://crt.sh/?caid=23770 + X509 Certificate: https://crt.sh/?id=25484751 + Not after: Feb 22 23:59:59 2031 GMT + * Issuing CA: **Fraunhofer User CA - G02** [client certificates only, no new certificates] + Info: https://crt.sh/?caid=23772 + X509 Certificate: https://crt.sh/?id=25484789 + Not after: Feb 22 23:59:59 2031 GMT +* Root CA: **D-TRUST Root Class 3 CA 2 2009** + Info: https://crt.sh/?caid=712 + X509 Certificate: https://crt.sh/?id=133226 + Not after: Nov 5 08:35:58 2029 GMT + * Issuing CA: **D-TRUST SSL Class 3 CA 1 2009** [server certificates via TMF e.V.] + Info: https://crt.sh/?caid=713 + X509 Certificate: https://crt.sh/?id=133227 + Not after: Nov 5 08:35:58 2029 GMT +* Root CA: **D-TRUST BR Root CA 1 2020 (ECC)**, optionally crosssigned by D-TRUST Root Class 3 CA 2 2009 [server only] + Info: https://crt.sh/?caid=192951 + X509 Certificate: https://crt.sh/?id=3699642382 and https://crt.sh/?id=19754747817 + Not after: Feb 11 09:44:59 2035 +* Root CA: **D-TRUST BR Root CA 2 2023 (RSA)**, optionally crosssigned by D-TRUST Root Class 3 CA 2 2009 [server only] + Info: https://crt.sh/?caid=266681 + X509 Certificate: https://crt.sh/?id=9609658147 and https://crt.sh/?id=19754898942 + Not after: May 9 08:56:30 2038 GMT + +* Root CA: **USERTrust ECC Certification Authority** [will be removed in a future release, incl. derived CAs] + Info: https://crt.sh/?caid=1390 + X509 Certificate: https://crt.sh/?id=2841410 + Not after: Jan 18 23:59:59 2038 GMT + * Issuing CA: **Sectigo ECC Organization Validation Secure Server CA** + Info: https://crt.sh/?caid=105483 + X509 Certificate: https://crt.sh/?id=924467859 + Not after: Dec 31 23:59:59 2030 GMT + * Issuing CA: **GEANT OV ECC CA 4** + Info: https://crt.sh/?caid=160140 + X509 Certificate: https://crt.sh/?id=2475254970 + * Issuing CA: **GEANT Personal ECC CA 4** [client certificates only] + Info: https://crt.sh/?caid=160136 + X509 Certificate: https://crt.sh/?id=2475254903 + Not after: May 1 23:59:59 2033 GMT + * Issuing CA: **GEANT eScience Personal ECC CA 4** [client certificates only] + Info: https://crt.sh/?caid=160138 + X509 Certificate: https://crt.sh/?id=2475254888 + Not after: May 1 23:59:59 2033 GMT +* Root CA: **USERTrust RSA Certification Authority** [will be removed in a future release, incl. derived CAs] + Info: https://crt.sh/?caid=1167 + X509 Certificate: https://crt.sh/?id=1199354 + Not after: Jan 18 23:59:59 2038 GMT + * Issuing CA: **Sectigo RSA Organization Validation Secure Server CA** + Info: https://crt.sh/?caid=105487 + X509 Certificate: https://crt.sh/?id=924467857 + Not after: Dec 31 23:59:59 2030 GMT + * Issuing CA: **GEANT OV RSA CA 4** + Info: https://crt.sh/?caid=160137 + X509 Certificate: https://crt.sh/?id=2475254782 + Not after: May 1 23:59:59 2033 GMT + * Issuing CA: **GEANT Personal CA 4** [client certificates only] + Info: https://crt.sh/?caid=160144 + X509 Certificate: https://crt.sh/?id=2475255043 + Not after: May 1 23:59:59 2033 GMT + * Issuing CA: **GEANT eScience Personal CA 4** [client certificates only] + Info: https://crt.sh/?caid=160134 + X509 Certificate: https://crt.sh/?id=2475253350 + Not after: May 1 23:59:59 2033 GMT +* Root CA: **D-TRUST Limited Basic Root CA 1 2019** [client certificates only] + X509 Certificate: https://www.d-trust.net/cgi-bin/D-TRUST_Limited_Basic_Root_CA_1_2019.crt + Not after: Jun 19 08:15:51 2034 GMT + * Issuing CA: **D-TRUST Limited Basic CA 1-2 2019** [client certificates via TMF e.V.] + X509 Certificate: https://www.d-trust.net/cgi-bin/D-TRUST_Limited_Basic_CA_1-2_2019.crt + Not after: Jun 19 08:15:51 2034 GMT + * Issuing CA: **D-TRUST Limited Basic CA 1-3 2019** [client certificates via TMF e.V.] + X509 Certificate: https://www.d-trust.net/cgi-bin/D-TRUST_Limited_Basic_CA_1-3_2019.crt + Not after: Jun 19 08:15:51 2034 GMT +* Root CA: **DFN-Verein Community Root CA 2022** [client certificates only] + X509 Certificate: https://doku.tid.dfn.de/_media/de:dfnpki:ca:dfn-verein_community_root_ca_2022.pem + Not after: Jan 21 14:08:41 2042 GMT + * Issuing CA: **DFN-Verein Community Issuing CA 2022** [client certificates only] + X509 Certificate: https://doku.tid.dfn.de/_media/de:dfnpki:ca:dfn-verein_community_issuing_ca_2022.pem + Not after: Jan 21 14:08:41 2042 GMT + * Issuing CA: **Fraunhofer Service CA 2022** [client certificates only] + X509 Certificate: https://doku.tid.dfn.de/_media/de:dfnpki:ca:fraunhofer_service_ca_2022.pem + Not after: Jan 21 14:08:41 2042 GMT + * Issuing CA: **Fraunhofer User CA 2022** [client certificates only] + X509 Certificate: https://doku.tid.dfn.de/_media/de:dfnpki:ca:fraunhofer_user_ca_2022.pem + Not after: Jan 21 14:08:41 2042 GMT + * Issuing CA: **MPG Community CA** [client certificates only] + X509 Certificate: https://doku.tid.dfn.de/_media/de:dfnpki:ca:mpg_community_ca.pem + Not after: Jan 21 14:08:41 2042 GMT diff --git a/docs/src/operations/v2.1.3/upgrade-from-1.md b/docs/src/operations/v2.1.3/upgrade-from-1.md new file mode 100644 index 000000000..663f9d6cf --- /dev/null +++ b/docs/src/operations/v2.1.3/upgrade-from-1.md @@ -0,0 +1,214 @@ +--- +title: Upgrade from DSF 1.9.0 +icon: update +--- + +Upgrading the DSF from 1.9.0 to {{release.tag}} involves modifying the docker-compose.yml files and recreating the containers. + +::: warning Update to DSF 1.9.0 first +When upgrading from DSF version < 1.9.0 it is important to migrate to [DSF 1.9.0 first](../v1.9.0/upgrade-from-1). +::: + +For DSF 2, we refined the [system requirements](install.md#prerequisites). If your current DSF 1 setup works, it should also work with DSF 2. As DSF 2 is designed to support large file transfers, you might need to increase the storage on the DSF FHIR Server instance. + +::: info Non-standard configuration changes + +Most non-standard configuration changes working in DSF 1 will continue to work in DSF 2. If you have set custom timeout options in the DSF configuration (starting with `DEV_DSF_...`) please change them to the ISO 8601 standard. `120000` (Milliseconds) must be changed to `PT2M`. The configuration options for process plugins (e.g., starting with `DE_...`) remain unchanged. + +- You can now use more advanced [logging options](./fhir/logging.md). +- If you use your own certificate authority, the [configuration](root-certificates.md) will be easier. +- More granular control in [access control / role config settings](./fhir/access-control.md). +::: + +We recommend upgrading the PostgreSQL DBMS from version 15 to version 18. At present, it is possible to use PostgreSQL version 15, but we exclusively support PostgreSQL version 18 and test the DSF solely with version 18. +The DBMS upgrade is described below in the update instructions. + +DSF 2 was designed to run DSF 1 (APIv1) process plugins, but due to stricter validation rules in DSF 2 we strongly recommend using the latest compatible plugin versions. Updates within the same major and minor version (e.g., from 1.2.3.4 to 1.2.9.9) are generally safe. An overview of the recommended MII/NUM versions can be found [here](./install-plugins.md). + +## Modify DSF FHIR Server Setup +1. Preparation / Backup + * We recommend to create a backup of the `/opt/fhir` directory before proceeding with the upgrade. + For example using: `sudo cp -rp /opt/fhir /opt/fhir_backup_pre_{{release.tag}}_upgrade` + +2. Modify the DSF FHIR docker-compose.yml file, replace the version number with {{release.tag}}. +```diff + version: '3.8' + services: + proxy: +- image: ghcr.io/datasharingframework/fhir_proxy:1.9.0 ++ image: ghcr.io/datasharingframework/fhir_proxy:{{release.tag}} + restart: on-failure +... + app: +- image: ghcr.io/datasharingframework/fhir:1.9.0 ++ image: ghcr.io/datasharingframework/fhir:{{release.tag}} + restart: on-failure +... + environment: +- DEV_DSF_FHIR_SERVER_ORGANIZATION_THUMBPRINT: f4344032fe77bffb... +... + +``` +The environment variable `DEV_DSF_FHIR_SERVER_ORGANIZATION_THUMBPRINT` does not need to be specified starting version 2.0.0. The thumbprint is now calculated based on the client certificate specified via `DEV_DSF_FHIR_CLIENT_CERTIFICATE`. + + +3. Upgrade the DSF FHIR containers + From `/opt/fhir` execute + ``` + docker compose up -d && docker compose logs -f + ``` + +## Modify DSF BPE Server Setup +1. Preparation / Backup + * We recommend to create a backup of the `/opt/bpe` directory before proceeding with the upgrade. + For example using: `sudo cp -rp /opt/bpe /opt/bpe_backup_pre_{{release.tag}}_upgrade` + +2. Modify the DSF BPE docker-compose.yml file, replace the version number with {{release.tag}}. +```diff + version: '3.8' + services: + app: +- image: ghcr.io/datasharingframework/bpe:1.9.0 ++ image: ghcr.io/datasharingframework/bpe:{{release.tag}} + restart: on-failure +... + environment: +- DEV_DSF_BPE_DB_USER_CAMUNDA_PASSWORD_FILE: /run/secrets/db_user_camunda.password ++ DEV_DSF_BPE_DB_USER_ENGINE_PASSWORD_FILE: /run/secrets/db_user_camunda.password +... + +``` + +3. Upgrade the DSF BPE containers + From `/opt/bpe` execute + ``` + docker compose up -d && docker compose logs -f + ``` + +5. Verify your upgrade: + * Verify the DSF FHIR server is running in version {{release.tag}}. The log should contain a message: + `INFO main - BuildInfoReaderImpl.logBuildInfo(137) | Artifact: dsf-fhir-server-jetty, version: {{release.tag}}, [...]` + * Verify the DSF FHIR server started without errors + * Verify the DSF FHIR server is accessible via https, for example by browsing to https://your-dsf-endpoint.de/fhir/ (authentication with your client-certificate) + * Verify the DSF BPE server is running in version {{release.tag}}. The log should contain a message: + `INFO main - BuildInfoReaderImpl.logBuildInfo(137) | Artifact: dsf-bpe-server-jetty, version: {{release.tag}}, [...]` + * Verify the DSF BPE server started without errors + * Verify your install with a ping/pong test + + +## Upgrade PostgreSQL from 15 to 18 +To upgrade your DSF databases, you have to stop the application, dump your database, recreate the bind mount directory, update the version, start it, restore the backup and start the application again. + +### On the DSF FHIR Server + +1. Stop the application + From `/opt/fhir` execute + ``` + docker compose down app + ``` +2. Dump the database + From `/opt/fhir` execute + ``` + docker compose exec db pg_dumpall -U liquibase_user > dump.sql + ``` +3. Stop the database + From `/opt/fhir` execute + ``` + docker compose down db + ``` +4. Recreate the database bind mount directory + From `/opt/fhir` execute + ``` + mv postgres-data postgres-data-psql-15 + mkdir postgres-data + ``` +5. Update the version and change the bind mount target to respect the [PostgreSQL best practices](https://github.com/docker-library/postgres/pull/1259) in `/opt/fhir/docker-compose.yml` + ```diff + db: + - image: postgres:15 + + image: postgres:18 + restart: always + healthcheck: + test: ["CMD-SHELL", "pg_isready -U liquibase_user -d fhir"] + interval: 10s + timeout: 5s + retries: 5 + volumes: + - type: bind + source: ./postgres-data + - target: /var/lib/postgresql/data + + target: /var/lib/postgresql + ``` +6. Start the new database + From `/opt/fhir` execute + ``` + docker compose up -d db + ``` +7. Restore the database dump + From `/opt/fhir` execute + ``` + cat dump.sql | docker compose exec -T db psql -U liquibase_user fhir + ``` +8. Start the application + From `/opt/fhir` execute + ``` + docker compose up -d && docker compose logs -f app + ``` + +### On the DSF BPE Server + +1. Stop the application + From `/opt/bpe` execute + ``` + docker compose down app + ``` +2. Dump the database + From `/opt/bpe` execute + ``` + docker compose exec db pg_dumpall -U liquibase_user > dump.sql + ``` +3. Stop the database + From `/opt/bpe` execute + ``` + docker compose down db + ``` +4. Recreate the database bind mount directory + From `/opt/bpe` execute + ``` + mv postgres-data postgres-data-psql-15 + mkdir postgres-data + ``` +5. Update the version and change the bind mount target to respect the [PostgreSQL best practices](https://github.com/docker-library/postgres/pull/1259) in `/opt/bpe/docker-compose.yml` + ```diff + db: + - image: postgres:15 + + image: postgres:18 + restart: always + healthcheck: + test: ["CMD-SHELL", "pg_isready -U liquibase_user -d bpe"] + interval: 10s + timeout: 5s + retries: 5 + volumes: + - type: bind + source: ./postgres-data + - target: /var/lib/postgresql/data + + target: /var/lib/postgresql + ``` +6. Start the new database + From `/opt/bpe` execute + ``` + docker compose up -d db + ``` +7. Restore the database dump + From `/opt/bpe` execute + ``` + cat dump.sql | docker compose exec -T db psql -U liquibase_user bpe + ``` +8. Start the application + From `/opt/bpe` execute + ``` + docker compose up -d && docker compose logs -f app + ``` + +Once you have ensured that DSF is working successfully with the new database, you can remove the dump.sql file and the postgres-data-psql-15 directory. As a precaution, we recommend keeping the postgres-data-psql-15 directory for some time. diff --git a/docs/src/operations/v2.1.3/upgrade-from-2.md b/docs/src/operations/v2.1.3/upgrade-from-2.md new file mode 100644 index 000000000..15d4be871 --- /dev/null +++ b/docs/src/operations/v2.1.3/upgrade-from-2.md @@ -0,0 +1,67 @@ +--- +title: Upgrade from DSF {{release.previousTag}} +icon: update +--- + +Upgrading the DSF from {{release.previousTag}} to {{release.tag}} involves modifying the image versions in the docker-compose.yml files and recreating the containers. + +DSF 2 was designed to run DSF 1 (APIv1) process plugins, but due to stricter validation rules in DSF 2 we strongly recommend using the latest compatible plugin versions. Updates within the same major and minor version (e.g., from 1.2.3.4 to 1.2.9.9) are generally safe. An overview of the recommended MII/NUM versions can be found [here](./install-plugins.md). + +If you have installed the NUM Dashboard Process Plugin, you can [remove the workaround](./install-plugins.md). + +## Modify DSF FHIR Server Setup +1. Preparation / Backup + * We recommend to create a backup of the `/opt/fhir` directory before proceeding with the upgrade. + For example using: `sudo cp -rp /opt/fhir /opt/fhir_backup_pre_{{release.tag}}_upgrade` + +2. Modify the DSF FHIR docker-compose.yml file, replace the version number with {{release.tag}}. +```diff + services: + proxy: +- image: ghcr.io/datasharingframework/fhir_proxy:{{release.previousTag}} ++ image: ghcr.io/datasharingframework/fhir_proxy:{{release.tag}} + restart: on-failure +... + app: +- image: ghcr.io/datasharingframework/fhir:{{release.previousTag}} ++ image: ghcr.io/datasharingframework/fhir:{{release.tag}} + restart: on-failure +... +``` + +3. Upgrade the DSF FHIR containers + From `/opt/fhir` execute + ``` + docker compose up -d && docker compose logs -f + ``` + +## Modify DSF BPE Server Setup +1. Preparation / Backup + * We recommend to create a backup of the `/opt/bpe` directory before proceeding with the upgrade. + For example using: `sudo cp -rp /opt/bpe /opt/bpe_backup_pre_{{release.tag}}_upgrade` + +2. Modify the DSF BPE docker-compose.yml file, replace the version number with {{release.tag}}. +```diff + services: + app: +- image: ghcr.io/datasharingframework/bpe:{{release.previousTag}} ++ image: ghcr.io/datasharingframework/bpe:{{release.tag}} + restart: on-failure +... +``` + +3. Upgrade the DSF BPE containers + From `/opt/bpe` execute + ``` + docker compose up -d && docker compose logs -f + ``` + +5. Verify your upgrade: + * Verify the DSF FHIR server is running in version {{release.tag}}. The log should contain a message: + `INFO main - BuildInfoReaderImpl.logBuildInfo(160) | Artifact: dsf-fhir-server-jetty, version: {{release.tag}}, [...]` + * Verify the DSF FHIR server started without errors + * Verify the DSF FHIR server is accessible via https, for example by browsing to https://your-dsf-endpoint.de/fhir/ (authentication with your client-certificate) + * Verify the DSF BPE server is running in version {{release.tag}}. The log should contain a message: + `INFO main - BuildInfoReaderImpl.logBuildInfo(160) | Artifact: dsf-bpe-server-jetty, version: {{release.tag}}, [...]` + * Verify the DSF BPE server started without errors + * Verify your install with a ping/pong test