Skip to content

Conversation

bibhuti230185
Copy link
Contributor

@bibhuti230185 bibhuti230185 commented Sep 24, 2025

Migrate KeyCloak-SW360 Database Communication to Direct CouchDB Access

Overview

This PR migrates KeyCloak’s database communication from Thrift via the SW360 application to a direct CouchDB connection using library functions. This decouples KeyCloak from the SW360 application, allowing both to run independently and improving performance.

Changes

  • Integrated CouchDB library functions for direct access in KeyCloak
  • Reused existing Thrift-based data models (to be migrated later)
  • Implemented and verified direct connectivity between KeyCloak and CouchDB
  • Developed functional tests for read, write, import, and update operations
  • Ensured KeyCloak can operate without the SW360 application running
  • Updated documentation for new architecture and configuration

Test Cases (all completed)

  • KeyCloak can read data from CouchDB via the new direct connection
  • KeyCloak can write/update data in CouchDB via the new direct connection
  • KeyCloak can perform import operations directly to CouchDB
  • KeyCloak can perform update operations directly to CouchDB
  • KeyCloak interacts with CouchDB successfully when the SW360 application is not running

Impact

  • Simplifies communication architecture
  • Improves performance and reliability
  • Enables independent operation of KeyCloak and CouchDB

Closes #3405

Suggest Reviewer

@GMishx

@GMishx GMishx added needs code review needs special test Opposed to general testing, this requires dedicated check at some party's deployment labels Sep 24, 2025
@bibhuti230185 bibhuti230185 force-pushed the feat/Migrate_KeyCloak_SW360_Database_Communication_to_Direct_CouchDB_Access branch from 6bccbad to 0f99f31 Compare September 25, 2025 08:05
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Few optimization suggestions.

Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Few more things left out.

@bibhuti230185 bibhuti230185 force-pushed the feat/Migrate_KeyCloak_SW360_Database_Communication_to_Direct_CouchDB_Access branch from dbc23fd to 67f4a8d Compare October 15, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs code review needs special test Opposed to general testing, this requires dedicated check at some party's deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate KeyCloak-SW360 Database Communication to Direct CouchDB Access

2 participants