Skip to content

feat(api-server): support assigning multiple roles#1061

Merged
DavidePrincipi merged 2 commits intomainfrom
bug-7836
Jan 30, 2026
Merged

feat(api-server): support assigning multiple roles#1061
DavidePrincipi merged 2 commits intomainfrom
bug-7836

Conversation

@DavidePrincipi
Copy link
Member

Split role assignments on comma to grant a module multiple roles on the same target. For example a nethvoice-proxy application can be granted both fwadm and portsadm on node/1.

The resulting list of authorized actions will be the union of all granted roles.

Refs NethServer/dev#7836

This comment was marked as resolved.

This comment was marked as resolved.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DavidePrincipi DavidePrincipi marked this pull request as ready for review January 28, 2026 17:49
Authorization of node actions is splitted in three roles:

- fwadm
- portsadm
- tunadm

Implement multiple role assignments for a single agent. With this new
feature, a module like nethvoice-proxy can be granted both fwadm and
portsadm role on the same node, eliminating the hack that define fake
role names like "fwadm,portsadm".

The comma in role names is now considered a split point by api-server to
authorize the requested action.
Split role assignments on comma to grant a module multiple roles on the
same target. For example a nethvoice-proxy application can be granted
both fwadm and portsadm on node/1.

The resulting list of authorized actions will be the union of all
granted roles.
@DavidePrincipi DavidePrincipi added the testing Start test suite label Jan 30, 2026
@DavidePrincipi DavidePrincipi merged commit 671e9a0 into main Jan 30, 2026
7 checks passed
@DavidePrincipi DavidePrincipi deleted the bug-7836 branch January 30, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Start test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants