Skip to content

Unit tests for index and cluster privileges #50867

Open
@albertzaharovits

Description

@albertzaharovits

Lately, see #50489 (comment) and #50643 we've learned that we miss unit test cases for index and cluster privileges. Right now we test them in the integ tests , IndexPrivilegeTests and ClusterPrivilegeTests, but we need to test which actions a privilege grants without having to start a cluster node and create a role and an user; these tests are more suited for a mix of privileges/roles to test the full authorization mechanism.

I think we need a new class of tests, modeled after the AuthorizationServiceTests, where we can pick on every privilege and every index (and cluster) action.

Metadata

Metadata

Assignees

Labels

:Security/AuthorizationRoles, Privileges, DLS/FLS, RBAC/ABAC>testIssues or PRs that are addressing/adding testsTeam:SecurityMeta label for security team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions