Skip to content

feat(ui): explain app permissions in app info - #1395

Merged
stephdl merged 15 commits into
mainfrom
app-info-permissions
Nov 13, 2026
Merged

stephdl merged 15 commits into
mainfrom
app-info-permissions

Conversation

@stephdl

@stephdl stephdl commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

The Software Center app info modal shows the container images of an app, but it does not tell the administrator how much power the app gets once installed. I took the approach already used on the app catalog at nethserver.github.io/ns8-apps and applied the team feedback: each module and role pair is mapped to a short sentence in the language files, like categories, and the @any, @node and @cluster qualifier is shown separately as the scope.

Only the UI changes. The data already comes with the app: the rootfull flag and the org.nethserver.authorizations image label.

  • A new "Permissions" table lists what the app asks for, with three columns: Allowed actions, Scope and ID (the raw label, useful to spot custom or odd values).
  • A rootfull app gets a first row "Unlimited access to the installation node", because its roles do not limit it. self:selfadm is hidden because core gives it to every app.
  • Actions are looked up per module and role pair, then per core role (the built-in reader role exists on every module), then a generic "Role X on Y" sentence for third-party roles.
  • Only English strings are added. Other languages will come from Weblate.

How to test

  • Open the Software Center and the app info of a rootfull app (for example CrowdSec): the table shows the unlimited access row.
  • Open the app info of SOGo (mail@any:mailadm) and of NethVoice (comma separated roles on several modules): each role has its own row with actions, scope and ID.
  • Check that a role with no translation shows the generic sentence, and that a rootless app with no roles shows no table.

The catalog gets the same texts in NethServer/ns8-apps#18. The behavior of repeated selectors is documented in #1396.

Refs NethServer/dev#8321

Show whether the app runs rootless or as root, and list the roles
requested by the org.nethserver.authorizations label with a readable
description and scope sentence.
@stephdl stephdl self-assigned this Nov 9, 2026
@stephdl
stephdl marked this pull request as ready for review November 9, 2026 14:23
@stephdl

stephdl commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author
Image Image Image Image Image

@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.

ℹ️ Selector types:

Selector Grants the role on
traefik@node The default instance of traefik on the app's own node. That is the first instance installed on that node, stored in node/<N>/default_instance/traefik.
funmod@cluster The default instance of funmod for the whole cluster: the first one installed on any node, stored in cluster/default_instance/funmod.
mail@any Every instance whose module ID matches module/mail* and that defines the role. Instances added later are covered too.
node (no qualifier) The node agent of the app's own node.
cluster The cluster agent.
self The app itself. self:selfadm is always added.
1 (a number) The node agent node/1.
mail1 (any other value) That exact module instance.

Comment thread core/ui/public/i18n/en/translation.json Resolved
Comment thread core/ui/public/i18n/en/translation.json Resolved
Comment thread core/ui/public/i18n/en/translation.json Resolved
Comment thread core/ui/public/i18n/en/translation.json Resolved
Comment thread core/ui/public/i18n/en/translation.json Resolved
Comment thread core/ui/public/i18n/en/translation.json Resolved
Comment thread core/ui/public/i18n/en/translation.json Resolved
Comment thread core/ui/public/i18n/en/translation.json Resolved
@stephdl

stephdl commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author
image image

new nstable

Carbon paints pagination white inside modals. Move the
AppInfoModal override to core.scss so every NsDataTable
shown in a modal gets the same grey background.
@stephdl
stephdl merged commit 501a89a into main Nov 13, 2026
4 checks passed
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.

3 participants