Skip to content

fix: add missing @RequiresPermissions to testConnection endpoint#16

Open
MarkLee131 wants to merge 1 commit intodromara:masterfrom
MarkLee131:fix/testconnection-missing-permission
Open

fix: add missing @RequiresPermissions to testConnection endpoint#16
MarkLee131 wants to merge 1 commit intodromara:masterfrom
MarkLee131:fix/testconnection-missing-permission

Conversation

@MarkLee131
Copy link
Copy Markdown

Fix #15

The testConnection endpoint at /system/dbconfig/testConnection is
missing @RequiresPermissions annotation, while all other endpoints
in the same controller (list, add, edit, remove, export) have
proper permission checks.

This allows any authenticated user to test database connections
regardless of their assigned role, bypassing the intended access
control for database configuration management.

Add @RequiresPermissions("system:dbconfig:edit") to testConnection
to enforce the same permission level as editing data sources.
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.

[Security] Missing @RequiresPermissions on /system/dbconfig/testConnection endpoint

1 participant