Skip to content

UNOMI-977: Restrict router import/export configuration to system administrators - #853

Open
sergehuber wants to merge 1 commit into
masterfrom
UNOMI-977-router-config-authz
Open

UNOMI-977: Restrict router import/export configuration to system administrators#853
sergehuber wants to merge 1 commit into
masterfrom
UNOMI-977-router-config-authz

Conversation

@sergehuber

Copy link
Copy Markdown
Contributor

A router import or export configuration carries a Camel source or destination URI, so writing one
reaches the filesystem and remote endpoints. That is a host-level capability rather than one
confined to a tenant's own data, and it should require the corresponding role.

ImportConfigurationServiceEndPoint and ExportConfigurationServiceEndPoint now require
UnomiRoles.ADMINISTRATOR, on the oneshot and multipart upload paths as well as the CRUD ones.

RouterEndpointRoleSecurityIT exercises all four over HTTP rather than inspecting the annotations. A
role annotation that is present but not wired - an endpoint outside the security filter's scope, say

  • would still satisfy a unit test that only reads the annotation.

Jira: https://issues.apache.org/jira/browse/UNOMI-977

…nistrators

A router import or export configuration carries a Camel source or destination URI, so writing one
reaches the filesystem and remote endpoints. That is a host-level capability rather than one
confined to a tenant's own data, and it should require the corresponding role.

ImportConfigurationServiceEndPoint and ExportConfigurationServiceEndPoint now require
UnomiRoles.ADMINISTRATOR, on the oneshot and multipart upload paths as well as the CRUD ones.

RouterEndpointRoleSecurityIT exercises all four over HTTP rather than inspecting the annotations. A
role annotation that is present but not wired - an endpoint outside the security filter's scope, say
- would still satisfy a unit test that only reads the annotation.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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