Read-only mirror of https://github.com/swiyu-admin-ch/swiyu-core-business-service — Bundesamt für Justiz. Issues & pull requests at the source.
  • Java 96.9%
  • HTML 2.8%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-03 04:06:55 +00:00
.git-hooks Snapshot import from 2026-06-25T05:22:01Z 2026-06-25 05:22:01 +00:00
.github/workflows Snapshot import from 2026-10-01T09:35:10Z 2026-10-01 09:35:10 +00:00
.idea/codeStyles Snapshot import from 2026-06-25T05:22:01Z 2026-06-25 05:22:01 +00:00
.mvn Snapshot import from 2026-11-25T04:06:12Z 2026-11-25 04:06:12 +00:00
.run Snapshot import from 2026-07-13T05:10:25Z 2026-07-13 05:10:25 +00:00
.skills Snapshot import from 2026-10-15T04:08:51Z 2026-10-15 04:08:51 +00:00
docker-compose-module Snapshot import from 2026-11-25T04:06:12Z 2026-11-25 04:06:12 +00:00
docs Snapshot import from 2026-11-23T04:06:45Z 2026-11-23 04:06:45 +00:00
scripts Snapshot import from 2026-11-17T04:05:52Z 2026-11-17 04:05:52 +00:00
specs Snapshot import from 2026-12-03T04:06:55Z 2026-12-03 04:06:55 +00:00
swiyu-core-business-service-app Snapshot import from 2026-12-03T04:06:55Z 2026-12-03 04:06:55 +00:00
swiyu-core-business-service-registry-identifier Snapshot import from 2026-12-03T04:06:55Z 2026-12-03 04:06:55 +00:00
swiyu-core-business-service-registry-status Snapshot import from 2026-12-03T04:06:55Z 2026-12-03 04:06:55 +00:00
swiyu-discrete-validator-client Snapshot import from 2026-12-03T04:06:55Z 2026-12-03 04:06:55 +00:00
.gitignore Snapshot import from 2026-10-01T09:35:10Z 2026-10-01 09:35:10 +00:00
.snyk Snapshot import from 2026-11-13T04:05:51Z 2026-11-13 04:05:51 +00:00
.testcontainers.properties Snapshot import from 2026-10-28T04:07:04Z 2026-10-28 04:07:05 +00:00
.trivyignore Snapshot import from 2026-06-25T05:22:01Z 2026-06-25 05:22:01 +00:00
CHANGELOG.md Snapshot import from 2026-12-03T04:06:55Z 2026-12-03 04:06:55 +00:00
docker-compose.local.yml Snapshot import from 2026-08-27T06:04:59Z 2026-08-27 06:04:59 +00:00
docker-compose.shared.yml Snapshot import from 2026-06-25T05:22:01Z 2026-06-25 05:22:01 +00:00
docker-compose.yml Snapshot import from 2026-06-25T05:22:01Z 2026-06-25 05:22:01 +00:00
Dockerfile Snapshot import from 2026-11-17T04:05:52Z 2026-11-17 04:05:52 +00:00
kafka_server_jaas.conf Snapshot import from 2026-06-25T05:22:01Z 2026-06-25 05:22:01 +00:00
mvnw Snapshot import from 2026-06-25T05:22:01Z 2026-06-25 05:22:01 +00:00
pom.xml Snapshot import from 2026-12-03T04:06:55Z 2026-12-03 04:06:55 +00:00
README.md Snapshot import from 2026-10-01T09:35:10Z 2026-10-01 09:35:10 +00:00
renovate.json Snapshot import from 2026-06-25T05:22:01Z 2026-06-25 05:22:01 +00:00
setVersions.sh Snapshot import from 2026-06-25T05:22:01Z 2026-06-25 05:22:01 +00:00

SWIYU Core Business Service

The service contains the business logic to implement the use cases and acts as a middleware between the registries and the internet with a strong focus on security aspects.

Getting Started

The swiyu-core-business-service has the entire local kafka setup needed in the docker-compose.local.yml file which is reused by the other services. To develop locally do the following:

  1. Start the core-business-service via Intellij (-> docker compose up is done automatically ) or via mvn command

Local Profile (uses registries in DEV stage and PAMS mock)

mvn spring-boot:run -Dspring-boot.run.profiles=local

Shared Profile (expects registries to run locally under localhost)

mvn spring-boot:run -Dspring-boot.run.profiles=local,shared
  1. Access confluent to observe the messages / topcis on http://localhost:9021/clusters

Limitations: The access to PAMS is mocked with local profile. When creating a BusinessPartner with this approach, the entity will not be registered at any external access system. In order to not mock anything start the app without local profile and configure all Environment Variables mentioned in application.yml.

Secrets config

Due to the necessity of local secrets for development there might be profiles used in the run configurations which are not part of this repository. Those profiles are generated outside of this repository and provided to the application als application-*.yaml files in the root /config directory or directly via environment variables.

Overview

@startuml
entity BusinessPartner #D00 {
    * foreignID
    name
    addInfo
    ProfileGroups
    }

entity BearerToken #D00 {
    iss
    aud
    bproles: {foreignID#1, ...}
}

entity BusinessEntity {
    * id
    * name
    * contact
}

BearerToken ||..|{ BusinessPartner
BusinessPartner ||--|| BusinessEntity : foreignID<->id

legend top left
 red: ePortal
endlegend
@enduml

Authentication & ePortal Integration (for FOITT internal usage only)

For an overview of roles, profiles and how they interact with the ePortal see confluence: Confluence - ePortal Integration for swiyu Service Portal