Skip to content

Merge Deploy change to Dev#108

Merged
sle3pyy merged 101 commits intodevfrom
deploy
Mar 28, 2026
Merged

Merge Deploy change to Dev#108
sle3pyy merged 101 commits intodevfrom
deploy

Conversation

@sle3pyy
Copy link
Copy Markdown
Member

@sle3pyy sle3pyy commented Mar 28, 2026

No description provided.

sle3pyy and others added 30 commits February 26, 2026 12:30
This pull request introduces several significant changes focused on improving code quality, security, and automation in the project. The main highlights are the addition of new GitHub Actions workflows for deployment and branch protection, a refactor and consolidation of dependency management in the API, and the cleanup of legacy or unused scripts and modules.

CI/CD and Branch Protection Automation:

    Added a new GitHub Actions workflow (.github/workflows/CD-workflow.yml) that automates the continuous deployment process. This workflow checks out the repository, sets up Docker Buildx, prepares environment files, and rebuilds/redeploys the Docker stack on pushes to the main branch.
    Introduced a new branch gatekeeper workflow (.github/workflows/check-merge-rules.yml) to enforce that only the dev branch or branches starting with hotfix can be merged into main, enhancing branch protection.
    Minor update to existing branch check workflow (.github/workflows/check-branch.yml) by removing a redundant echo statement for cleaner output.

API Dependency and Security Refactoring:

    Replaced the legacy api/src/core/deps.py with a new, more robust api/src/core/dependencies.py. The new module uses stricter token verification (via JWKS), introduces URL-safe realm handling, and provides improved dependency injection patterns for database sessions and realm extraction. 
    Removed the unused or legacy api/src/core/org_manager.py module, which previously handled Keycloak operations for org managers. Its removal suggests a shift toward a more centralized or secure approach for these operations.

Codebase Cleanup and Maintenance:

    Deleted the api/fetch_defaults.py and api/reproduce_issue.py scripts, indicating they are no longer needed for the current workflow or have been superseded by other mechanisms. 
    Cleaned up the database initialization logic in api/src/core/db.py by removing unnecessary model import comments and obsolete test code for sending profiles. 

CI/CD and Workflow Automation

    Added a new CD workflow for automated Docker-based deployment on main branch pushes (.github/workflows/CD-workflow.yml).
    Introduced a branch gatekeeper workflow to restrict merges into main to only dev or hotfix branches (.github/workflows/check-merge-rules.yml).
    Minor cleanup in branch check workflow for clearer output (.github/workflows/check-branch.yml).

API Dependency and Security Improvements

    Replaced api/src/core/deps.py with api/src/core/dependencies.py, improving token verification, dependency injection, and security for realm extraction. 
    Removed api/src/core/org_manager.py, consolidating or deprecating legacy Keycloak management logic.

General Cleanup

    Deleted legacy scripts: api/fetch_defaults.py and api/reproduce_issue.py. 
    Cleaned up database initialization and removed obsolete test code in api/src/core/db.py.
…pping"

This reverts commit 1e386be, reversing
changes made to 2bd17f1.
@sle3pyy sle3pyy changed the title Deploy Merge Deploy change to Dev Mar 28, 2026
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
36.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@sle3pyy sle3pyy merged commit e2904f6 into dev Mar 28, 2026
3 of 4 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.

1 participant