Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe Helm Deployment template conditionally renders ChangesAdditional volume configuration
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related issues
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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 |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop-go #2330 +/- ##
=============================================
Coverage ? 66.35%
=============================================
Files ? 123
Lines ? 7987
Branches ? 110
=============================================
Hits ? 5300
Misses ? 2272
Partials ? 415
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
… template extraVolumes and extraVolumeMounts were defined in values.yaml but never referenced by templates/deployment.yaml, making them dead defaults. Add the standard passthrough (common.tplvalues.render), mirroring the already-working extraEnvVars pattern. No-op for all current profiles (default []) — enables mounting a PKCS12 keystore file as a volume for deployments that opt into KEYMANAGER_KEYSTORE_TYPE: PKCS12 instead of the default PKCS11 setup. mosip#2333 Signed-off-by: bhumi46 <thisisbn46@gmail.com>
b7e4f51 to
b840cb8
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
….yaml Document how to mount a file-based secret (e.g. a PKCS12 keystore) using the extraVolumes/extraVolumeMounts pair now that they're actually rendered by templates/deployment.yaml. mosip#2333 Signed-off-by: bhumi46 <thisisbn46@gmail.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@helm/esignet/values.yaml`:
- Around line 372-387: Update the commented extraVolumes example near
extraVolumeMounts to document that the esignet-keystore Secret must contain a
data key named esignet.pfx, or add an items mapping that maps this key to
esignet.pfx. Ensure the documented mount produces
/home/mosip/keys/secret/esignet.pfx for the PKCS12 configuration.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: b86aa10f-66b9-440e-91c1-2df9adb903d3
📒 Files selected for processing (1)
helm/esignet/values.yaml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: bhumi46 <111699703+bhumi46@users.noreply.github.com>
|
As per discussion we don’t this changes hence closing |
Summary
CodeRabbit flagged
MOSIP_P12_PASSWORDandCRYPTO_ENCRYPTION_KEYas hardcoded credentials (CWE-798) in the chart's defaultextraEnvVars(helm/esignet/values.yaml).extraEnvVarsis a generic passthrough (common.tplvalues.renderintemplates/deployment.yaml) that already supportsvalueFrom.secretKeyRef— several neighboring entries in the same list (REDIS_PASSWORD,DB_DBUSER_PASSWORD,MOSIP_IDA_CLIENT_SECRET) already use it. No template change was needed, only the default values.Deployments must now supply an
esignet-cryptoKubernetes secret withp12-passwordandcrypto-encryption-keykeys (or overrideextraEnvVarsentirely, as themosip/infradeployment profiles already do).Test plan
helm template helm/esignetrenders without errorsesignet-cryptosecret present and confirm the pod starts and can unlock its P12 keystore🤖 Generated with Claude Code
Summary by CodeRabbit