Authentication, authorization and filtering of messages. #527
Replies: 1 comment 6 replies
-
Why? The authentication is (and should be) handled by the bus.
I know it's hard to edit macro code (I myself dread it each time I've to do it) but this is still a matter of figuring out the code and making it happen.
Just FYI, if the high-level API is not cutting it for you, there is always the (slightly) low-level API, via |
Beta Was this translation helpful? Give feedback.
-
Hello!
I'm trying to add in application authentication of dbus calls. My initial attempt uses Sender in the header, see the following pseudo rust code.
This breaks down when it comes to properties, because of #218. I started implementing support for the ZBUS parameters but quickly ran into the same issues as this earlier attempt:
Draft: Allow #[zbus(...)] args in dbus_interface properties
So now I'm left scratching my head thinking of alternative approaches. If this was sd_bus I would have used sd_bus_add_filter which lets you filter messages.
I haven't been able to figure out a way of doing this with zbus. Is it possible? I think it would probably be an easier solution since the filtering could be done in one place instead of having to implement it in every method and property.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions