meldestelle/config
StefanMo b35c4087a2
Fix: Test-Commit für VCS-Integration (MP-8) (#15)
* MP-8 OTHER Implementiere JWT-Authentifizierungs-Filter im Gateway

* Fix(ci): Update upload-artifact action to v4

* Fix(ci): Add start command for Keycloak and failure logs

* Fix(ci): Remove invalid 'command' property from Keycloak service

* Fix(ci): Use KC_DEV_MODE env var to start Keycloak

* Fix(ci): Keycloak service was removed from GitHub Actions services and replaced with a manual docker run step that starts Keycloak with the start-dev command.

* dev(ci): vereinheitliche Keycloak auf 26.4.2; aktiviere Health im CI (MP-8)

* Fix(ci): Stabilize Keycloak startup in integration tests via matrix

- Add `dev-file` Keycloak variant to matrix for stability fallback.
- Improve wait logic and health checks for Keycloak and Postgres.
- Unify Keycloak version to 26.4.2 across codebase.
- Add log dumps on failure.

* Fix(ci): Die betroffene Datei docs/Visionen-Ideen/Infrastruktur-Strategie_DSGVO-Konformität.md endet aktuell mit genau einer leeren Zeile (Zeile 87). Das entspricht der Regel MD047 („Files should end with a single newline character“). Damit ist deine Korrektur korrekt.

* Fix(ci): Repository-wide auto-fix for Markdown files was implemented with a GitHub Actions workflow and a local helper script. EditorConfig and markdownlint ignore files were added to ensure consistent formatting. Instructions for using the auto-fix both via GitHub Actions and locally were provided.

* fix(gradle): build.gradle.kts jsBrowser testTask disabled

* fix(gradle): build.gradle.kts jsBrowser testTask disabled

* Fix(ci): Stabilize integration tests with Keycloak matrix build (MP-8)

Introduces a matrix strategy (`keycloak_db: [postgres, dev-file]`)
in the integration-tests workflow to mitigate flaky Keycloak starts
when using the Postgres service container.

- Adds a `dev-file` Keycloak variant for stability fallback.
- Improves wait logic and health checks for Keycloak/Postgres.
- Unifies Keycloak version to 26.4.2 across codebase (Dockerfile, Compose,
  ADR, README, tests).
- Adds log dumps on failure in CI.
- Ensures `KC_HEALTH_ENABLED=true` is set.
- Updates related documentation (README, Schlachtplan).
- Includes broader Docker SSoT cleanup (versions.toml as source,
  script updates, env file cleanup, validator hardening).

This resolves recurring CI failures related to Keycloak startup and
ensures required checks for PRs (#15) are reliable, while also
improving overall Docker build consistency.

* feat(docs, ci): Implement YouTrack SSoT strategy with Dokka sync (MP-8)

- Add Dokka multi-module Gradle configuration and KDoc style guide.
- Add GitHub Actions workflow (docs-kdoc-sync.yml) and Python script
  (youtrack-sync-kb.py) to sync Dokka GFM output to YouTrack KB.
- Extend front-matter schema (bc, doc_type) and update relevant pages/stubs.
- Adapt CI scripts (validate-frontmatter, check-docs-drift, ci-docs link ignore).
- Update README.md to reference YouTrack KB.

* feat(docs, ci): Implement YouTrack SSoT strategy with Dokka sync (MP-8)

- Add Dokka multi-module Gradle configuration and KDoc style guide.
- Add GitHub Actions workflow (docs-kdoc-sync.yml) and Python script
  (youtrack-sync-kb.py) to sync Dokka GFM output to YouTrack KB.
- Extend front-matter schema (bc, doc_type) and update relevant pages/stubs.
- Adapt CI scripts (validate-frontmatter, check-docs-drift, ci-docs link ignore).
- Update README.md to reference YouTrack KB.

* Fix(ci): Replace OpenAPI validator with Spectral

Replaces the deprecated 'char0n/swagger-editor-validate' action,
which failed due to sandbox issues in GitHub Actions, with the
modern '@stoplight/spectral-cli'.

This ensures robust OpenAPI specification validation without
requiring a headless browser environment. The 'generate-api-docs'
job now depends on the successful completion of the Spectral validation.

Part of resolving CI failures for PR #15 (MP-8).

* Fix(ci): Specify spectral:oas ruleset for OpenAPI validation (MP-8)

* Fix(ci): Remove explicit ruleset argument for Spectral validation (MP-8)

* Fix(ci): Added a .spectral.yaml file to fix Spectral linting errors. Corrected markdown lint issues in two documentation files. Updated README.md with a new guidelines section to fix link validation errors.

* Fix(ci): Markdownlint errors were fixed by adding required blank lines. The Guidelines Validation error was resolved by updating the README.md link. The API Documentation Generator workflow was stabilized by updating paths, tasks, and validation steps.

* Fix(ci): Alle vier fehlerhaften GitHub-Action-Prüfungen wurden behoben. Fehler in der OpenAPI-Spezifikation, Probleme mit der Markdown-Linting-Analyse und Validierungsfehler bei Querverweisen wurden korrigiert. Die README.md enthält nun alle erforderlichen Links zu den Richtlinien.

* Fix(ci): Markdown linting errors in docs/api/README.md were fixed by specifying languages in fenced code blocks. OpenAPI specification errors in documentation.yaml were resolved by correcting example property types to strings. Cross-reference validation errors in README.md were fixed by adding the missing link to project-standards/coding-standards.md.

* Fix(ci): Duplicate heading errors in docs/api/members-api.md were fixed. Cross-reference validation errors for docker-architecture.md were resolved. All originally reported issues passed validation successfully.

* Fix(ci): The markdown heading levels in docs/api/members-api.md were corrected from h5 to h4 to fix linting errors. The missing cross-reference link from technology-guides/docker/docker-development.md to docker-overview.md was added. These fixes resolved the original validation and linting errors causing the process to fail.

* Fix(ci): Duplicate heading warnings in docs/api/members-api.md were resolved. Cross-reference validation for docker-development.md to docker-architecture.md was fixed. A new unrelated warning about docker-production.md was identified but not addressed.

* refactor(ci,docs): Simplify CI pipeline and migrate docs to YouTrack SSoT

BREAKING CHANGE: Documentation structure radically simplified

- Consolidate 9 GitHub Actions workflows into 1 main pipeline (ci-main.yml)
- Remove redundant workflows: ci-docs, markdownlint-autofix, guidelines-validation, api-docs
- Delete documentation migrated to YouTrack: api/, BCs/, Visionen-Ideen/, reference/, now/, overview/
- Keep only ADRs, C4 diagrams, and essential dev guides in repo
- Update README.md with YouTrack KB links
- Create new docs/README.md as documentation gateway
- Relax markdown-lint config for pragmatic developer experience

Kept workflows:
- ssot-guard.yml (Docker SSoT validation)
- docs-kdoc-sync.yml (KDoc → YouTrack sync)
- integration-tests.yml (Integration tests)
- deploy-proxmox.yml (Deployment)
- youtrack-sync.yml (YouTrack integration)

Related: MP-DOCS-001

* refactor(ci,docs): Simplify CI pipeline and migrate docs to YouTrack SSoT

BREAKING CHANGE: Documentation structure radically simplified

- Consolidate 9 GitHub Actions workflows into 1 main pipeline (ci-main.yml)
- Remove redundant workflows: ci-docs, markdownlint-autofix, guidelines-validation, api-docs
- Delete documentation migrated to YouTrack: api/, BCs/, Visionen-Ideen/, reference/, now/, overview/
- Keep only ADRs, C4 diagrams, and essential dev guides in repo
- Update README.md with YouTrack KB links
- Create new docs/README.md as documentation gateway
- Relax markdown-lint config for pragmatic developer experience

Kept workflows:
- ssot-guard.yml (Docker SSoT validation)
- docs-kdoc-sync.yml (KDoc → YouTrack sync)
- integration-tests.yml (Integration tests)
- deploy-proxmox.yml (Deployment)
- youtrack-sync.yml (YouTrack integration)

Related: MP-DOCS-001

* refactor(ci,docs): README.md und einige andere Dokumentationen überarbeitet.
ports-and-urls.md hinzugefügt.
Related: MP-DOCS-001

* refactor(ci,docs): Die Markdownlint-Fehler in README.md und docs/README.md wurden behoben, indem die Überschriftenebenen angepasst, überflüssige Satzzeichen am Ende entfernt und die notwendigen Leerzeilen um Überschriften, Listen, Tabellen und Codeblöcke eingefügt wurden. Das problematische Leerzeichen am Ende in docs/README.md wurde ebenfalls entfernt. Die Dateien entsprechen nun den vorgegebenen Markdownlint-Regeln und sollten die CI-Validierung bestehen.
Related: MP-DOCS-001

* refactor(ci,docs): Docker guideline cross-references were fixed and normalized to lowercase labels. Validation scripts confirmed zero cross-reference warnings and consistent metadata. Documentation was updated with a changelog and enhanced README navigation.
Related: MP-DOCS-001

* refactor(ci,docs): Docker guideline cross-references were fixed and normalized to lowercase labels. Validation scripts confirmed zero cross-reference warnings and consistent metadata. Documentation was updated with a changelog and enhanced README navigation.
Related: MP-DOCS-001

* refactor(ci,docs): Dead links in docs/architecture/adr were fixed by updating URLs to stable sources and adding an ignore pattern for a placeholder link. Specific ADR files had their broken links replaced with valid ones. The markdown-link-check GitHub Action is expected to pass with zero dead links now.
Related: MP-DOCS-001

* refactor(ci,docs): Links in ADR checked
Related: MP-DOCS-001

* refactor(ci,docs): Links in ADR checked
Related: MP-DOCS-001

* refactor(ci,docs): Markdown Regeln ausgebessert
Related: MP-DOCS-001

* refactor(ci,docs): Markdown Regeln ausgebessert
Related: MP-DOCS-001

* refactor(ci,docs): Markdown Regeln ausgebessert
Related: MP-DOCS-001

* Chore: Rerun CI checks with updated branch protection rules
2025-11-07 12:26:33 +01:00
..
kafka/secrets refactor: Migrate from monolithic to modular architecture 2025-07-24 14:20:48 +02:00
monitoring fixing docker-compose and cleanup 2025-09-15 11:08:55 +02:00
nginx refactor: Migrate from monolithic to modular architecture 2025-07-24 14:20:48 +02:00
postgres (vision) SCS/DDD 2025-07-21 23:54:13 +02:00
redis refactor: Migrate from monolithic to modular architecture 2025-07-24 14:20:48 +02:00
ssl Fix: Test-Commit für VCS-Integration (MP-8) (#15) 2025-11-07 12:26:33 +01:00
.env.dev fixing Frontend und libs.versions.toml 2025-10-07 15:26:12 +02:00
.env.prod ein wenig aufgeräumt 2025-09-06 13:35:32 +02:00
.env.staging feature Keycloak Auth 2025-10-06 00:17:18 +02:00
.env.template ein wenig aufgeräumt 2025-09-06 13:35:32 +02:00
.env.test ein wenig aufgeräumt 2025-09-06 13:35:32 +02:00
application.yml refactor: Migrate from monolithic to modular architecture 2025-07-23 14:29:40 +02:00
central.toml fixing docker-compose and cleanup 2025-09-15 11:08:55 +02:00
README.md Fix: Test-Commit für VCS-Integration (MP-8) (#15) 2025-11-07 12:26:33 +01:00

Zentrale Konfigurationsverwaltung - Single Source of Truth

Version: 4.0.0 Datum: 15. September 2025 Status: Produktiv - Eliminiert 38+ Port-Redundanzen und 72+ Spring-Profile-Duplikate

🎯 Überblick

Das zentrale Konfigurationssystem eliminiert Redundanzen über das gesamte Meldestelle-Projekt und stellt sicher, dass alle Konfigurationswerte aus einer einzigen Quelle der Wahrheit stammen.

Vor der Zentralisierung (Problem)

Port 8082 war in 38+ Dateien dupliziert:
├── gradle.properties
├── docker-compose.services.yml
├── dockerfiles/services/ping-service/Dockerfile
├── scripts/test/integration-test.sh
├── config/monitoring/prometheus.dev.yml
└── ... 33 weitere Dateien!

Nach der Zentralisierung (Lösung)

Port 8082 einmalig in config/central.toml definiert:
├── config/central.toml              [SINGLE SOURCE OF TRUTH]
└── scripts/config-sync.sh sync      [Automatische Synchronisation]
    └── 38+ Dateien automatisch aktualisiert ✓

📁 Verzeichnisstruktur

config/
├── central.toml              # 🎯 MASTER-Konfigurationsdatei
├── README.md                 # 📖 Diese Dokumentation
├── .env.template            # 🔧 Environment-Variables Template (Legacy)
└── monitoring/              # 📊 Monitoring-Konfigurationen
    ├── prometheus.yml
    ├── prometheus.dev.yml
    └── grafana/

🛠️ Verwendung

Schnellstart

# 1. Aktuelle Konfiguration anzeigen
./scripts/config-sync.sh status

# 2. Alle Konfigurationen synchronisieren
./scripts/config-sync.sh sync

# 3. Konfiguration validieren
./scripts/config-sync.sh validate

Port ändern (Beispiel)

# 1. central.toml bearbeiten
vim config/central.toml

[ports]
ping-service = 8092  # Geändert von 8082

# 2. Alle abhängigen Dateien aktualisieren
./scripts/config-sync.sh sync

# ✅ Ergebnis: 38+ Dateien automatisch synchronisiert!

Spring Profile ändern

# 1. central.toml bearbeiten
[spring-profiles.defaults]
services = "production"  # Geändert von "docker"

# 2. Synchronisieren
./scripts/config-sync.sh sync

# ✅ Ergebnis: 72+ Profile-Referenzen automatisch aktualisiert!

📋 Konfigurationsbereiche

1. Ports - Eliminiert 38+ Redundanzen

[ports]
# Infrastructure Services
api-gateway = 8081
auth-server = 8087
monitoring-server = 8088

# Application Services
ping-service = 8082
members-service = 8083
horses-service = 8084
events-service = 8085
masterdata-service = 8086

# External Infrastructure
postgres = 5432
redis = 6379
consul = 8500
prometheus = 9090
grafana = 3000

Synchronisiert folgende Dateien:

  • gradle.properties - Service-Port-Eigenschaften
  • docker-compose*.yml - Port-Mappings und Environment-Variablen
  • dockerfiles/*/Dockerfile - EXPOSE-Statements
  • scripts/test/*.sh - Test-Endpunkt-URLs
  • config/monitoring/*.yml - Prometheus-Targets
  • Und 25+ weitere Dateien!

2. Spring Profiles - Eliminiert 72+ Duplikate

[spring-profiles]
default = "default"
development = "dev"
docker = "docker"
production = "prod"
test = "test"

[spring-profiles.defaults]
infrastructure = "default"    # Infrastructure Services
services = "docker"          # Application Services
clients = "dev"             # Client Applications

Synchronisiert folgende Dateien:

  • Alle dockerfiles/*/Dockerfile - SPRING_PROFILES_ACTIVE Build-Args
  • docker-compose*.yml - Spring-Profile Environment-Variablen
  • docker/build-args/*.env - Build-Argument-Dateien
  • Und 60+ weitere Referenzen!

3. Service Discovery - Standardisiert URLs

[services.ping-service]
name = "ping-service"
port = 8082
internal-host = "ping-service"
external-host = "localhost"
internal-url = "http://ping-service:8082"
external-url = "http://localhost:8082"
health-endpoint = "/actuator/health/readiness"
metrics-endpoint = "/actuator/prometheus"
info-endpoint = "/actuator/info"

🚀 Scripts und Automatisierung

scripts/config-sync.sh - Haupttool

# Alle Konfigurationen synchronisieren
./scripts/config-sync.sh sync

# Nur bestimmte Bereiche synchronisieren
./scripts/config-sync.sh gradle       # gradle.properties
./scripts/config-sync.sh compose      # Docker Compose files
./scripts/config-sync.sh env          # Environment files
./scripts/config-sync.sh docker-args  # Docker build arguments
./scripts/config-sync.sh monitoring   # Prometheus/Grafana config
./scripts/config-sync.sh tests        # Test scripts

# Status und Validierung
./scripts/config-sync.sh status       # Aktuelle Konfiguration anzeigen
./scripts/config-sync.sh validate     # TOML-Syntax validieren

# Hilfe
./scripts/config-sync.sh --help

🎯 Best Practices

DO (Empfohlen)

# Vor Änderungen Status prüfen
./scripts/config-sync.sh status

# Nach Änderungen validieren
./scripts/config-sync.sh validate

# Regelmäßig synchronisieren
./scripts/config-sync.sh sync

# Backups vor wichtigen Änderungen
cp config/central.toml config/central.toml.backup

DON'T (Vermeiden)

# ❌ Niemals direkte Datei-Bearbeitung
vim docker-compose.yml              # Änderungen gehen verloren!
vim gradle.properties              # Wird überschrieben!

# ✅ Stattdessen zentrale Konfiguration verwenden
vim config/central.toml
./scripts/config-sync.sh sync

🔍 Debugging und Troubleshooting

Häufige Probleme

Problem: Synchronisation schlägt fehl

# Lösung: Validierung prüfen
./scripts/config-sync.sh validate

# TOML-Syntax-Fehler beheben
vim config/central.toml

Problem: Inkonsistente Konfiguration

# Lösung: Status prüfen und re-synchronisieren
./scripts/config-sync.sh status
./scripts/config-sync.sh sync

Problem: Backup wiederherstellen

# Backups anzeigen
ls -la *.bak.*

# Wiederherstellen
cp gradle.properties.bak.20250915_103927 gradle.properties

Validierung

# Umfassende Validierung
./scripts/config-sync.sh validate

# Prüft:
# ✓ TOML-Syntax
# ✓ Duplicate Sections
# ✓ Port-Konflikte
# ✓ Ungültige Werte

🚀 Migration und Integration

Die zentrale Konfigurationsverwaltung ist rückwärtskompatibel und kann schrittweise eingeführt werden:

  1. config/central.toml erstellen
  2. scripts/config-sync.sh ausführen
  3. Backups prüfen und validieren
  4. Entwickler-Workflow anpassen

🎉 Mit der zentralen Konfigurationsverwaltung haben Sie einen wartungsfreundlichen, skalierbaren und fehlerresistenten Ansatz für die Verwaltung aller Konfigurationswerte in Ihrem Meldestelle-Projekt!