Support keystore references for notification URLs - #1007
Conversation
Signed-off-by: Craig Perkins <craig5008@gmail.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (70.57%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1007 +/- ##
============================================
- Coverage 73.97% 70.57% -3.41%
- Complexity 916 1149 +233
============================================
Files 135 176 +41
Lines 6102 7976 +1874
Branches 753 958 +205
============================================
+ Hits 4514 5629 +1115
- Misses 1253 1948 +695
- Partials 335 399 +64 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
${keystore:<alias>}URL referencesMotivation
This is a prerequisite for opensearch-project/notifications#1267. Allowing only whole-field references keeps secret URL material out of the notification system index and prevents an authorized configuration editor from redirecting an embedded secret to another host.
The generic
validateUrlhelper remains unchanged; the reference syntax is scoped to notification configuration models.Testing
./gradlew test./gradlew test --tests org.opensearch.commons.notifications.NotificationConfigReferenceTests ktlint