-
Notifications
You must be signed in to change notification settings - Fork 14
update ci file #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
update ci file #42
Conversation
WalkthroughUpdated environment variable placeholders in Changes
Estimated code review effortπ― 2 (Simple) | β±οΈ ~10 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks (3 passed)β Passed checks (3 passed)
Poem
π Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro π Files selected for processing (1)
π§ Files skipped from review as they are similar to previous changes (1)
β¨ Finishing touchesπ§ͺ Generate unit tests
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. Comment |
There was a problem hiding this 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
| 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 |
There was a problem hiding this comment.
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 -C1Length 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.
| 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.
| 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 |
There was a problem hiding this comment.
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 -C1Length 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" || trueLength 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.
| 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.
|
|
@SauravBizbRolly there are conflicts. |



π Description
JIRA ID:
Please provide a summary of the change and the motivation behind it. Include relevant context and details.
β Type of Change
βΉοΈ 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