-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REST endpoint /rules should be accessible without admin rights #3390
Comments
This affects the GET
Both these endpoints are type of security relevant, we could probably make the unauthorised access for widgets configurable, so the user can disable it if he doesn‘t need it and has security concerncs. |
I don't think so, as the rule action is not newly introduced and it would not have made sense to implement it without being able to use it within the widgets. Therefore I would assume that it is already accessible without authorization. |
I have just checked, and you are right. |
I checked the rules-endpoint in RuleResource.java if I am not mistaken the applicable methods should be
I think we rather have a problem on the runnow than on the getRules or does the absence of "RolesAllowed" mean something different?
but I think I read that wrong because my tests tell me something else: I cannot see the rules when I am not logged in (I get a 401 on the /rules endpoint). |
You found the right methods, but you read it wrong: The We therefore need to add the |
With the new scenes aeditor being merged into MainUI, there is a need to extend the oh-repeater component to access rules with tags "Scene" for creating custom widgets. This is already prepared with
openhab/openhab-webui#1724
To make it work, the REST endpoint for rules needs o be accessible without admin rights.
The text was updated successfully, but these errors were encountered: