Skip to content

docs: warn about repeated authorization selectors - #1396

Merged
stephdl merged 2 commits into
mainfrom
docs-authorizations-repeated-selector
Nov 9, 2026
Merged

stephdl merged 2 commits into
mainfrom
docs-authorizations-repeated-selector

Conversation

@stephdl

@stephdl stephdl commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

While reviewing the app permissions display (#1395) I noticed that the org.nethserver.authorizations label has a trap that the developer manual does not mention. If a module repeats the same agent selector, like node: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 in cluster/grants.py.

Only the documentation changes.

  • docs/core/agents.md now 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.md and docs/core/tun.md told developers to "add" a node: value to the label. They now say to append the role with a comma when a node: 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

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 stephdl self-assigned this Nov 9, 2026
@stephdl
stephdl marked this pull request as ready for review November 9, 2026 14:23

@DavidePrincipi DavidePrincipi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose a lighter rewording.

Comment thread docs/core/agents.md Resolved
Co-authored-by: Davide Principi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants