Fix schema authz check for non-CCloud message viewer instances #958
Labels
direct resources
Connecting to or interacting with Kafka or Schema Registry through a "direct" connection.
local resources
Discoverability or interactions with locally-running Kafka, Schema Registry, etc.
RBAC/authorization
Relates to how the extension handles RBAC checks or authorization for actions
#654 started using
LocalEnvironment
s and introducedDirectEnvironment
s, but there is still an old leftover assumption that local Kafka topics don't have an associatedenvironmentId
(which is false, since they have thevscode-local-connection
ID):vscode/src/authz/schemaRegistry.ts
Lines 29 to 48 in aca3bf5
So when opening message viewer for a local/direct Kafka topic, we see these in the logs:
We need to update this to correctly handle local/direct environments and migrate it to using the appropriate ResourceLoader instances.
The text was updated successfully, but these errors were encountered: