Commit Graph

23 Commits

Author SHA1 Message Date
stefan
dac0c691c8 fix port conflict and KeycloakIntegrationTest.kt 2025-09-06 11:32:47 +02:00
stefan
a3a3a5f87c fix port conflict and KeycloakIntegrationTest.kt 2025-09-06 11:27:37 +02:00
stefan
f160dd2988 fix tests 2025-09-05 11:33:29 +02:00
1eb00ad15d update auth-module ping-service consul 2025-09-04 21:01:49 +02:00
stefan
63a1b97db7 optimierungen auth-Modul und cache-Modul 2025-09-03 15:19:11 +02:00
stefan
3acc760653 Gradle Build Issues and Suggested Solutions 2025-09-01 13:26:37 +02:00
stefan
e77c2561dc upgrade(docker) 2025-08-29 12:03:00 +02:00
20788bde91 fixing(gradle) 2025-08-28 21:07:20 +02:00
8fd09a4aa1 fixing(gradle) 2025-08-25 21:15:25 +02:00
89ef9698af fixing(gradle) 2025-08-24 21:31:31 +02:00
8d01fa0e9a fixing(gradle) 2025-08-17 01:12:42 +02:00
1738e729d7 fixing(gradle) 2025-08-17 00:15:29 +02:00
stefan
9c21154199 upgrade(docker) 2025-08-16 15:47:57 +02:00
281e0ffa8e refactoring(infra-auth) 2025-08-15 21:59:26 +02:00
a308efad2f refactoring(infra-auth) 2025-08-14 21:24:38 +02:00
fa04c16ece refactoring(infra-auth) 2025-08-14 21:21:53 +02:00
d0232c23a0 fixing(gateway) 2025-08-14 00:35:51 +02:00
f9927066a2 refactor(infra-auth): Relocate auth models and add JWT tests
This commit resolves the build failures caused by the refactoring of the `core` module and significantly improves the quality of the `auth-client` module.

### Architectural Refinements

- **Relocated Auth Enums:** The `RolleE` and `BerechtigungE` enums have been moved from the `core` module to their correct logical home within `:infrastructure:auth:auth-client`. The `auth-client` is now the single source of truth for authorization models, making it a self-contained and more coherent module.
- **Improved Type Safety:** The `AuthenticationService` interface and its DTOs now use the type-safe `BerechtigungE` enum instead of raw `List<String>`, improving consistency and reducing the risk of runtime errors.
- The `JwtService` now uses `kotlin.time.Duration` for token expiration, aligning it with project-wide best practices.

### Testing Enhancements

- **Added JWT Service Tests:** Introduced a comprehensive `JwtServiceTest` suite.
- The tests cover token generation, validation (including successful, invalid secret, and expired token scenarios), and the correct extraction of claims like user ID and permissions.
- This ensures the reliability and security of our core authentication mechanism.
2025-08-09 19:35:53 +02:00
stefan
a9a43a7acf fixing Gradle 2025-08-01 11:31:29 +02:00
stefan
df5919fac8 feat(build): Refactor infrastructure modules and establish single source of truth
This commit introduces a major refactoring of the build system and the core infrastructure modules. The primary goal is to establish a strict "Single Source of Truth" for all dependencies using Gradle Version Catalogs and to create a clean, maintainable, and scalable foundation for all current and future services.

### 1. Centralized Dependency Management (`libs.versions.toml`)

- **Established Single Source of Truth:** All dependency versions are now exclusively managed in `gradle/libs.versions.toml`. Hardcoded versions have been removed from all build scripts.
- **Introduced Gradle Bundles:** To simplify module dependencies, several bundles have been created (e.g., `testing-jvm`, `redis-cache`, `spring-cloud-gateway`, `monitoring-client`). This drastically reduces boilerplate in the `build.gradle.kts` files and improves readability.
- **Cleaned up Aliases:** All library and plugin aliases have been standardized for consistency.

### 2. Infrastructure Module Refactoring

All infrastructure modules (`core`, `platform`, `auth`, `cache`, `event-store`, `messaging`, `monitoring`, `gateway`) have been refactored to align with the new dependency management strategy.

- **Simplified Build Scripts:** The `build.gradle.kts` for each module now uses the new bundles and aliases, making them significantly cleaner and easier to understand.
- **Consistent Structure:** The architecture of each module now clearly follows the Port-Adapter pattern where applicable (e.g., `cache-api`/`redis-cache`).
- **Standardized `platform-bom`:** The project's own Bill of Materials (`platform-bom`) now also includes the Spring Cloud BOM, ensuring version consistency for all Spring-related dependencies.

### 3. Added Infrastructure Documentation

To improve onboarding and architectural understanding, a dedicated `README-*.md` file has been created for each refactored infrastructure module:
- `README-CORE.md`
- `README-PLATFORM.md`
- `README-INFRA-AUTH.md`
- `README-INFRA-CACHE.md`
- `README-INFRA-EVENT-STORE.md`
- `README-INFRA-MESSAGING.md`
- `README-INFRA-MONITORING.md`
- `README-INFRA-GATEWAY.md`

These documents explain the purpose, architecture, and usage of each component within the system. This lays the groundwork for our "Tracer Bullet" development approach.
2025-07-31 14:09:22 +02:00
81cb4582d6 fixing gradle build 2025-07-31 00:02:12 +02:00
ea75bbdb24 fixing gradle build 2025-07-30 00:01:22 +02:00
stefan
a256622f37 refactor: Migrate from monolithic to modular architecture
- Restructure project into domain-specific modules (core, masterdata, members, horses, events, infrastructure)
- Create shared client components in common-ui module
- Implement CI/CD workflows with GitHub Actions
- Consolidate documentation in docs directory
- Remove deprecated modules and documentation files
- Add cleanup and migration scripts for transition
- Update README with new project structure and setup instructions
2025-07-22 18:44:18 +02:00