Skip to content

Conversation

@SauravBizbRolly
Copy link
Contributor

@SauravBizbRolly SauravBizbRolly commented Sep 12, 2025

πŸ“‹ Description

JIRA ID:

Please provide a summary of the change and the motivation behind it. Include relevant context and details.


βœ… Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • πŸ”₯ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • πŸ›  Refactor (change that is neither a fix nor a new feature)
  • βš™οΈ Config change (configuration file or build script updates)
  • πŸ“š Documentation (updates to docs or readme)
  • πŸ§ͺ Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • πŸš€ Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

Summary by CodeRabbit

  • Chores
    • Standardized CI environment configuration for identity-related data sources by aligning connection-setting names.
    • Reduces configuration drift and simplifies maintenance across CI deployments.
    • Other data sources remain unchanged.
    • No user-facing changes; application functionality remains the same.

@coderabbitai
Copy link

coderabbitai bot commented Sep 12, 2025

Walkthrough

Updated environment variable placeholders in src/main/environment/common_ci.properties for two data sources: dbidentity and db1097identity. URLs, usernames, and password mappings were changed to different environment variable names; other data source entries were left unchanged.

Changes

Cohort / File(s) Summary of Changes
CI environment properties updates
src/main/environment/common_ci.properties
For dbidentity: URL changed to @env.DATABASE_IDENTITY_URL@; username to @env.DATABASE_IDENTITY_USERNAME@; password now references @env.DATABASE_IDENTITY_USERNAME@. For db1097identity: URL changed to @env.DATABASE_1097_IDENTITY_URL@; username now uses @env.DATABASE_IDENTITY_USERNAME@; password changed to @env.DATABASE_IDENTITY_PASSWORD@. Other sections unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • Update ci fileΒ #40 β€” Similar updates to dbidentity and db1097identity variable names in src/main/environment/common_ci.properties.

Suggested reviewers

  • ravishanigarapu

Pre-merge checks (3 passed)

βœ… Passed checks (3 passed)
Check name Status Explanation
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check βœ… Passed The title "update ci file" correctly signals that the PR touches CI configuration (the changes modify src/main/environment/common_ci.properties) so it is not misleading, but it is overly generic and does not state the primary change (renaming CI environment variables for identity databases). Given the guidance that partially related but concise titles may pass, this title is acceptable but suboptimal for reviewers scanning history. It therefore meets the minimum criteria while lacking helpful specificity.
Docstring Coverage βœ… Passed No functions found in the changes. Docstring coverage check skipped.

Poem

I hop through lines of config light,
Two DB keys find names more right.
URLs moved, users in a row,
Passwords follow where they go.
A rabbit’s tweak β€” CI’s set to flight πŸ‡βœ¨


πŸ“œ Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between de2efe6 and eac54fa.

πŸ“’ Files selected for processing (1)
  • src/main/environment/common_ci.properties (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/main/environment/common_ci.properties
✨ Finishing touches
πŸ§ͺ Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

πŸ“œ Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 083d15f and de2efe6.

πŸ“’ Files selected for processing (1)
  • src/main/environment/common_ci.properties (2 hunks)

Comment on lines +8 to 11
spring.datasource.dbidentity.url=@env.DATABASE_IDENTITY_URL@
spring.datasource.dbidentity.username=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.dbidentity.password=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.dbidentity.driver-class-name=com.mysql.cj.jdbc.Driver
Copy link

Choose a reason for hiding this comment

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

πŸ’‘ Verification agent

🧩 Analysis chain

Password points to USERNAME env var; fix to use DATABASE_IDENTITY_PASSWORD.

Line 10 maps the password to @env.DATABASE_IDENTITY_USERNAME@. This will fail auth and risks masking misconfigured secrets in CI.

Apply this diff:

 spring.datasource.dbidentity.url=@env.DATABASE_IDENTITY_URL@
 spring.datasource.dbidentity.username=@env.DATABASE_IDENTITY_USERNAME@
-spring.datasource.dbidentity.password=@env.DATABASE_IDENTITY_USERNAME@
+spring.datasource.dbidentity.password=@env.DATABASE_IDENTITY_PASSWORD@

Run to confirm the corresponding CI/env vars exist:


🏁 Script executed:

#!/bin/bash
# Verify references to new Identity vars across the repo
rg -nP 'DATABASE_IDENTITY_(URL|USERNAME|PASSWORD)' -S -C1

Length of output: 988


Fix password env var mapping: use DATABASE_IDENTITY_PASSWORD (2 locations)

Password properties currently reference DATABASE_IDENTITY_USERNAME β€” change to DATABASE_IDENTITY_PASSWORD to avoid CI auth failures and secret-masking.

File: src/main/environment/common_ci.properties β€” lines 8–11 and 20–23

 spring.datasource.dbidentity.url=@env.DATABASE_IDENTITY_URL@
 spring.datasource.dbidentity.username=@env.DATABASE_IDENTITY_USERNAME@
-spring.datasource.dbidentity.password=@env.DATABASE_IDENTITY_USERNAME@
+spring.datasource.dbidentity.password=@env.DATABASE_IDENTITY_PASSWORD@
 spring.datasource.dbidentity.driver-class-name=com.mysql.cj.jdbc.Driver
 spring.datasource.db1097identity.url=@env.DATABASE_1097_IDENTITY_URL@
 spring.datasource.db1097identity.username=@env.DATABASE_IDENTITY_USERNAME@
-spring.datasource.db1097identity.password=@env.DATABASE_IDENTITY_USERNAME@
+spring.datasource.db1097identity.password=@env.DATABASE_IDENTITY_PASSWORD@
 spring.datasource.db1097identity.driver-class-name=com.mysql.cj.jdbc.Driver
πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
spring.datasource.dbidentity.url=@env.DATABASE_IDENTITY_URL@
spring.datasource.dbidentity.username=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.dbidentity.password=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.dbidentity.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.dbidentity.url=@env.DATABASE_IDENTITY_URL@
spring.datasource.dbidentity.username=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.dbidentity.password=@env.DATABASE_IDENTITY_PASSWORD@
spring.datasource.dbidentity.driver-class-name=com.mysql.cj.jdbc.Driver
πŸ€– Prompt for AI Agents
In src/main/environment/common_ci.properties around lines 8–11 and 20–23 the
password property is incorrectly mapped to @env.DATABASE_IDENTITY_USERNAME@;
change both occurrences to @env.DATABASE_IDENTITY_PASSWORD@ so
spring.datasource.dbidentity.password uses the correct env var; verify both
replacements and commit.

Comment on lines 20 to 23
spring.datasource.db1097identity.url=@env.DATABASE_1097_IDENTITY_URL@
spring.datasource.db1097identity.username=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.db1097identity.password=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.db1097identity.driver-class-name=com.mysql.cj.jdbc.Driver
Copy link

Choose a reason for hiding this comment

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

πŸ’‘ Verification agent

🧩 Analysis chain

1097 Identity: password maps to USERNAME; and USERNAME may need 1097-specific var.

  • Line 22 should reference a password variable, not username.
  • Given URL uses DATABASE_1097_IDENTITY_URL, make USERNAME/PASSWORD symmetric unless credentials are intentionally shared.

Preferred symmetric fix:

 spring.datasource.db1097identity.url=@env.DATABASE_1097_IDENTITY_URL@
-spring.datasource.db1097identity.username=@env.DATABASE_IDENTITY_USERNAME@
-spring.datasource.db1097identity.password=@env.DATABASE_IDENTITY_USERNAME@
+spring.datasource.db1097identity.username=@env.DATABASE_1097_IDENTITY_USERNAME@
+spring.datasource.db1097identity.password=@env.DATABASE_1097_IDENTITY_PASSWORD@

If sharing creds with the primary identity store is intended, at minimum fix the password and add a clarifying comment:

 spring.datasource.db1097identity.url=@env.DATABASE_1097_IDENTITY_URL@
-spring.datasource.db1097identity.username=@env.DATABASE_IDENTITY_USERNAME@
-spring.datasource.db1097identity.password=@env.DATABASE_IDENTITY_USERNAME@
+spring.datasource.db1097identity.username=@env.DATABASE_IDENTITY_USERNAME@
+spring.datasource.db1097identity.password=@env.DATABASE_IDENTITY_PASSWORD@
+# Note: 1097 Identity uses shared Identity credentials by design.

Quick check for 1097 vars:


🏁 Script executed:

#!/bin/bash
rg -nP 'DATABASE_1097_IDENTITY_(URL|USERNAME|PASSWORD)' -S -C1

Length of output: 294


🏁 Script executed:

#!/bin/bash
set -euo pipefail
f="src/main/environment/common_ci.properties"
echo "== $f lines 18-24 =="
nl -ba "$f" | sed -n '18,24p' || true
echo
echo "== grep for relevant DATABASE_* vars in the file =="
rg -n --hidden -S 'DATABASE_1097_IDENTITY_(URL|USERNAME|PASSWORD)|DATABASE_IDENTITY_(USERNAME|PASSWORD)|DATABASE_1097_IDENTITY_URL' "$f" || true

Length of output: 529


Fix incorrect password placeholders and add 1097-specific credentials

Passwords are pointing at USERNAME vars; change db1097 to use DATABASE_1097_IDENTITY_USERNAME/PASSWORD and fix the primary identity password.

Location: src/main/environment/common_ci.properties β€” lines 9–10 and 20–22.

Preferred fix for db1097:

 spring.datasource.db1097identity.url=@env.DATABASE_1097_IDENTITY_URL@
-spring.datasource.db1097identity.username=@env.DATABASE_IDENTITY_USERNAME@
-spring.datasource.db1097identity.password=@env.DATABASE_IDENTITY_USERNAME@
+spring.datasource.db1097identity.username=@env.DATABASE_1097_IDENTITY_USERNAME@
+spring.datasource.db1097identity.password=@env.DATABASE_1097_IDENTITY_PASSWORD@

Also update primary identity password (line 10):
spring.datasource.dbidentity.password=@env.DATABASE_IDENTITY_PASSWORD@

πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
spring.datasource.db1097identity.url=@env.DATABASE_1097_IDENTITY_URL@
spring.datasource.db1097identity.username=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.db1097identity.password=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.db1097identity.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.db1097identity.url=@env.DATABASE_1097_IDENTITY_URL@
spring.datasource.db1097identity.username=@env.DATABASE_1097_IDENTITY_USERNAME@
spring.datasource.db1097identity.password=@env.DATABASE_1097_IDENTITY_PASSWORD@
spring.datasource.db1097identity.driver-class-name=com.mysql.cj.jdbc.Driver
πŸ€– Prompt for AI Agents
In src/main/environment/common_ci.properties (lines ~9–10 and 20–23), the
password placeholders are incorrect: update the primary identity password line
to use @env.DATABASE_IDENTITY_PASSWORD@ instead of the username var, and update
the db1097 datasource to use @env.DATABASE_1097_IDENTITY_USERNAME@ for username
and @env.DATABASE_1097_IDENTITY_PASSWORD@ for password so the 1097-specific
credentials are used.

@sonarqubecloud
Copy link

@drtechie
Copy link
Member

@SauravBizbRolly there are conflicts.
Also if you are changing anything please ensure docker properties are also taken care of.

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.

2 participants