Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBAC integration #168

Merged
merged 1 commit into from
Jun 24, 2024
Merged

RBAC integration #168

merged 1 commit into from
Jun 24, 2024

Conversation

JumasJM
Copy link
Collaborator

@JumasJM JumasJM commented May 10, 2024

TYPE: Improvement
JIRA: DEP-686

@JumasJM JumasJM force-pushed the rbac_int branch 3 times, most recently from 60fe504 to 4dcaf94 Compare June 3, 2024 10:26
PR includes:
- RBAC integretion in 'rest' module
- updated tests
- added dependencies in build.gradle files
- V3 schema in archive module for storing roles and groups from json_data into rbac_labels
- javadoc

Added new package 'rbac' to rest sub-module with sub-package 'annotations' for spring AOP.

Added new classes:

RbacHttpFilter
First step of validation.
Handles:
- no validation healthcheck
- stores all groups and roles values from request
- creates object of type UserType for further processing
- prevents triggering endpoints when request is not validated

RbacAccessAspect
Aspect class for handling annotated rest controller methods.
Handles:
- triggering methods only accessible by admin
- triggering BulkResponse methods and modifing returned object
- triggering methods that require certain parameters in path or in body of request
- when user has not access, 403 is thrown

RbacDbHandler
Validation of certain parameteres before reaching endpoints and returning of certain object (omitting direct endpoints).
Handles:
- checks if certain parameters are present in db and if user has access due to provided values in groups and roles of header
- returns all Task/Workflow definitions and SeachResult object with param Workflow/WorkflowSummary directly

RbacProperties
Properties class to return admin roles and groups specified in properties file.

UserType
POJO for creating user object.

TYPE: Improvement
JIRA: DEP-686
Signed-off-by: jmasar <[email protected]>
@JumasJM JumasJM merged commit 94d3148 into master Jun 24, 2024
2 checks passed
@JumasJM JumasJM deleted the rbac_int branch June 24, 2024 10:36
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.

2 participants