fix: added io.collate to allowed consumer packages (#21278)

This commit is contained in:
Imri Paran 2025-05-19 17:02:23 +02:00 committed by GitHub
parent b24c9f7ce3
commit 7314b33d5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,8 +42,9 @@ public class EventSubscriptionMapper
private String validateConsumerClass(String className) {
// Validate that the class belongs to our application package
if (!className.startsWith("org.openmetadata.")) {
throw new BadRequestException("Only classes from org.openmetadata package are allowed");
if (!className.startsWith("org.openmetadata.") && !className.contains("io.collate.")) {
throw new BadRequestException(
"Only classes from org.openmetadata or io.collate packages are allowed: " + className);
}
try {