Backport Prevent panics when events are lacking PluginInfo, as with lease events. into ce/main (#14788)

This commit is contained in:
Vault Automation 2026-05-14 05:35:08 -06:00 committed by GitHub
parent 4a6007742d
commit f08bacf40e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

3
changelog/_14779.txt Normal file
View file

@ -0,0 +1,3 @@
```release-note:bug
events (enterprise): Fix panic when replicating lease events.
```

View file

@ -105,12 +105,19 @@ func (x *EventReceived) BexprDatum() any {
}
}
sourcePluginMount := ""
isLocal := false
if x.PluginInfo != nil {
sourcePluginMount = x.PluginInfo.MountPath
isLocal = x.PluginInfo.IsLocal
}
return &EventReceivedBexpr{
EventType: x.EventType,
Operation: operation,
SourcePluginMount: x.PluginInfo.MountPath,
SourcePluginMount: sourcePluginMount,
DataPath: dataPath,
Namespace: x.Namespace,
SourcePluginIsLocal: x.PluginInfo.IsLocal,
SourcePluginIsLocal: isLocal,
}
}