Skip to content

Commit 04a69db

Browse files
committed
Address review feedback
Signed-off-by: Craig Perkins <[email protected]>
1 parent 7258a39 commit 04a69db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/opensearch/security/resources/ResourceIndexListener.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ public void postIndex(ShardId shardId, Engine.Index index, Engine.IndexResult re
7979
String resourceId = index.id();
8080
ResourceProvider provider = resourcePluginInfo.getResourceProvider(resourceType);
8181
if (provider == null) {
82-
log.warn("Failed to create a resource sharing entry for resource: {} with type: {}", resourceId, resourceType);
82+
log.warn(
83+
"Failed to create a resource sharing entry for resource: {} with type: {}. The type is not declared as a protected type in plugins.security.experimental.resource_sharing.protected_types.",
84+
resourceId,
85+
resourceType
86+
);
8387
return;
8488
}
8589

0 commit comments

Comments
 (0)