Skip to content

[4.4.x] Restrict shell .invoke, .redirect, addCommand, removeCommand and alias -p to admin role - #3154

Open
jbonofre wants to merge 1 commit into
apache:karaf-4.4.xfrom
jbonofre:restrict-shell-invoke-redirect-4.4.x
Open

jbonofre wants to merge 1 commit into
apache:karaf-4.4.xfrom
jbonofre:restrict-shell-invoke-redirect-4.4.x

Conversation

@jbonofre

Copy link
Copy Markdown
Member

Backport of #3153 to karaf-4.4.x.

…s -p to admin role

SecuredSessionFactoryImpl enforces RBAC checks on shell:.invoke and shell:.redirect, but those rules were only added to the itest fixture and omitted from the shipped shell feature and child-instance templates. Also restrict shell:addCommand, shell:removeCommand, and shell:alias -p/--persist to admin, and comment out the unused max_colors/right-prompt reflection block in shell.init.script so non-admin logins succeed cleanly.
@github-actions

Copy link
Copy Markdown

Test Results

  694 files  ±0    694 suites  ±0   52m 42s ⏱️ - 5m 23s
1 085 tests +1  1 042 ✅ +1   43 💤 ±0  0 ❌ ±0 
2 979 runs  +2  2 858 ✅ +2  121 💤 ±0  0 ❌ ±0 

Results for commit b516585. ± Comparison against base commit 35be638.

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