OF-2009: Encrypt default value of encrypted properties#3380
OF-2009: Encrypt default value of encrypted properties#3380MilanTyagi2004 wants to merge 1 commit into
Conversation
Updates the System Properties admin console page to mask the default values of encrypted or sensitive properties (displaying "hidden" in the Default column). This also automatically hides them in the edit form default value field, preventing credential leakage in plain text.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR modifies the system-properties.jsp template to update how property visibility is displayed. The change replaces the conditional rendering logic in the default value column: instead of showing an "unknown" label when a property is not a system property, the page now shows a "hidden" label when the property's hidden flag is set to true. This aligns the UI label with the actual property attribute being checked. 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Description
Currently, system properties that are marked as encrypted or sensitive have their configured values masked as "hidden" in the Value column of the System Properties page. However, their default values are still displayed in plain text in both the Default column and the property's edit form.
This can unintentionally expose sensitive default values such as passwords, API tokens, or encryption keys through the Admin Console.
This change updates the Admin Console UI to mask the default values of encrypted or sensitive properties, making their behavior consistent with the handling of configured values.
Proposed Changes
Admin Console
Modified:
system-properties.jspproperty.hiddenwhen rendering the Default column.doEdit()JavaScript function reads the displayed value directly from the table row.Verification
Automated Verification
mvnw.cmd test -pl xmppserver -Dtest=SystemPropertyTestManual Verification
Build Verification
Impact