Skip to content

Feature/genai improvement#37

Merged
yassinsws merged 47 commits intomainfrom
feature/genai-improvement
Jul 20, 2025
Merged

Feature/genai improvement#37
yassinsws merged 47 commits intomainfrom
feature/genai-improvement

Conversation

@waleedbaroudi
Copy link
Collaborator

No description provided.

marvin-heinrich and others added 25 commits July 16, 2025 15:21
Set up kubernetes again with the new microservices changes
…ge builds

- Remove redundant workflows (deploy-rancher.yml, studymate-rancher-cicd.yml)
- Update AWS deployment to use ec2-specific images
- Create unified Kubernetes deployment workflow
- Implement environment-specific image tagging (ec2-*, k8s-*, validation-*)
- Update Docker Compose template for EC2 deployment
- Add comprehensive deployment guide
- Fix client API base URL configuration for both environments
…types

- Add specific location blocks for /assets/ and static file extensions
- Prevent fallback to index.html for asset requests
- Fix MIME type issue causing JavaScript modules to be served as HTML
- Add proper caching headers for static assets
- Resolves: Failed to load module script error
yassinsws added 11 commits July 18, 2025 23:49
…neration

- Updated GitHub workflow to use secrets.POSTGRES_PASSWORD and secrets.JWT_SECRET
- Updated local deployment script to require same environment variables
- Fixed PostgreSQL database name configuration
- Set proper placeholders in values.yaml since they're overridden by --set-string
- Added proper Jackson serialization configuration for health endpoints
- Enabled health probes for Kubernetes readiness/liveness checks
- Fixed HttpMessageNotWritableException in all Spring Boot services
- This should resolve the 503 Service Unavailable errors in Kubernetes
- Updated Spring Boot services to use environment variables for database config
- Changed hardcoded 'postgres' password to use SPRING_DATASOURCE_PASSWORD env var
- Services now properly use the GitHub secret password in Kubernetes
- Fixes 'password authentication failed for user postgres' errors
- Falls back to hardcoded values for local development
- Updated JWT secrets to use JWT_SECRET environment variable in all services
- Fixed service URLs to use environment variables (AUTH_SERVICE_URL, etc.)
- Added JWT_EXPIRATION and JWT_REFRESH_EXPIRATION environment variable support
- Services now properly use Kubernetes-provided configuration
- Maintains fallback values for local development

This should resolve authentication and inter-service communication issues.
- File upload limits now use SPRING_SERVLET_MULTIPART_* environment variables
- Fixed database hostname from 'postgres' to 'studymate-postgres' (correct Kubernetes service name)
- Rate limiting now uses RATE_LIMIT_REQUESTS_PER_MINUTE environment variable
- These were the last critical hardcoded values affecting Kubernetes deployment
yassinsws and others added 6 commits July 20, 2025 09:34
- Created JwtAuthenticationFilter for auth service
- Updated SecurityConfig to include JWT filter in chain
- Enables proper JWT token validation for authenticated endpoints like /api/auth/me
@waleedbaroudi waleedbaroudi force-pushed the feature/genai-improvement branch from 84ae1fd to 0b11997 Compare July 20, 2025 15:18
Copy link
Collaborator

@yassinsws yassinsws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yassinsws yassinsws merged commit e2098da into main Jul 20, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants