WIP: add RBAC testing to e2e suite - #5115
Draft
d2burkhalter wants to merge 2 commits into
Draft
Conversation
Signed-off-by: David.Burkhalter <d2.burkhalter@gmail.com>
Signed-off-by: David.Burkhalter <d2.burkhalter@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work in progress on adding role based access control to the e2e test suite starting with the global permissions. Added configs to keycloak for service accounts with different groups as well as human roles for local development. Added
auth_contextfield to testspec to define what context to use when taking actions andexpectErrorCodefor actions denied when not authorized. Still working on how we want to define queues in testing because some persist between tests and other are created and destroyed for individual tests, would like everything to be defined within the testspec instead of using mage for setup but if it makes things too complicated. Also working on how we want to separate running the basic unauthorized tests and authorized tests since it will require updating the config that the services are run with and we are encountering wanting to modify the config for certain services within tests.