We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b17f851 commit c1036a4Copy full SHA for c1036a4
libs/agent-sm/agent-policy/src/main/java/org/opensearch/secure_sm/policy/PolicyFile.java
@@ -137,7 +137,13 @@ private static PermissionEntry expandPermissionName(PermissionEntry pe) {
137
while ((b = pe.name().indexOf("${{", startIndex)) != -1 && (e = pe.name().indexOf("}}", b)) != -1) {
138
sb.append(pe.name(), startIndex, b);
139
String value = pe.name().substring(b + 3, e);
140
- sb.append("${{").append(value).append("}}");
+ String propertyValue = System.getProperty(value);
141
+ if (propertyValue != null) {
142
+ sb.append(propertyValue);
143
+ } else {
144
+ // replacement not found
145
+ sb.append("${{").append(value).append("}}");
146
+ }
147
startIndex = e + 2;
148
}
149
0 commit comments