Repository navigation
docs: warn about repeated authorization selectors - #1396
Merged
Merged
Conversation
Roles requested with the same agent selector overwrite each other instead of being merged. Document the comma syntax and point the firewall and tun pages to it.
stephdl
marked this pull request as ready for review
November 9, 2026 14:23
DavidePrincipi
approved these changes
Nov 9, 2026
DavidePrincipi
left a comment
Member
There was a problem hiding this comment.
I propose a lighter rewording.
Co-authored-by: Davide Principi <[email protected]>
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While reviewing the app permissions display (#1395) I noticed that the
org.nethserver.authorizationslabel has a trap that the developer manual does not mention. If a module repeats the same agent selector, likenode:fwadm node:portsadm, the roles are not merged. Each value overwrites the previous one for that agent, so the module gets only one role, and which one can change when permissions are refreshed. The label passes validation, so the developer gets no error. The behavior is intended and is only explained in a comment incluster/grants.py.Only the documentation changes.
docs/core/agents.mdnow explains the comma syntax (node:fwadm,portsadm) and warns that repeated selectors, or selectors that resolve to the same agent, overwrite each other.docs/core/firewall.mdanddocs/core/tun.mdtold developers to "add" anode:value to the label. They now say to append the role with a comma when anode:value is already there.I checked the other pages that mention the label (certificates, user domains, port allocation, images). Their examples are already correct.
See also