Skip to content

NethVoice proxy: add trunkadm permission for trunk actions #8170

Description

@Amygos

Problem

Other NS8 modules need to manage trunk routing in NethVoice proxy, but there is no dedicated permission for trunk actions. The existing routeadm role only covers domain routes.

Proposed solution

Add a trunkadm permission so authorized modules can create or update, inspect, list, and remove trunk routing rules. Make it available on both fresh installations and upgrades..

QA test cases

Use a test NS8 node with a configured NethVoice destination. Run authorization checks as a caller module without administrator access or broader grants on the proxy.

  1. Fresh installation: install the updated proxy and verify that trunkadm grants exactly add-trunk, get-trunk, remove-trunk, and list-trunks.
  2. Trunk management: grant the caller module only trunkadm on the proxy. Add a valid trunk rule, retrieve it, list it, update its destination through add-trunk, and remove it. Every action succeeds and the returned configuration reflects each change.
  3. Access restrictions: verify that the same caller cannot use add-route or configure-module. A caller without trunkadm or a broader grant cannot invoke any of the four trunk actions.
  4. Upgrade and regression: upgrade an existing proxy with route and trunk rules. Verify that trunkadm becomes available, existing rules are preserved, and the trunk management case succeeds. Confirm that existing routeadm callers can still manage domain routes and the proxy retains access to its own actions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

nethvoiceBug or features releted to the NethVoice projectverifiedAll test cases were verified successfully

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions