Skip to content

fix: request routeadm on the node Traefik only - #136

Open
DavidePrincipi wants to merge 1 commit into
mainfrom
feat-8354
Open

DavidePrincipi wants to merge 1 commit into
mainfrom
feat-8354

Conversation

@DavidePrincipi

Copy link
Copy Markdown
Member

The application asks for permission to manage the HTTP routes of every Traefik instance in the cluster (traefik@any:routeadm), but it only changes routes on the Traefik instance of its own node. Ask only for what it needs: traefik@node:routeadm. NethServer/dev#8354

The application behaves as before. New installations get the narrower permission. Installed applications keep the old, wider one after the update until NethServer/dev#8329 is fixed, which is harmless. No dedicated release is needed: this change can ship with the next regular release of the application.

How to test

  • Install the application on a cluster with at least two nodes, then redis-cli hgetall roles/module/<module_id> lists only the Traefik of the application node with role routeadm.
  • Configure the application host name or path: the HTTP route is created and the application is reachable.
  • Remove the application: its HTTP routes are removed.

Generated by Claude Code:claude-sonnet-5-5 with nethserver-pr

The module sets HTTP routes only on the Traefik instance of its own
node. Ask for the routeadm role on that instance, instead of on every
Traefik instance of the cluster.

Assisted-by: Claude Code:claude-sonnet-5-5

This branch has not been deployed

No deployments
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.

1 participant