Skip to content

Normalize permission model#317

Open
emeremikwu-lm wants to merge 16 commits intoDependencyTrack:mainfrom
emeremikwu-lm:normalize-permission-model
Open

Normalize permission model#317
emeremikwu-lm wants to merge 16 commits intoDependencyTrack:mainfrom
emeremikwu-lm:normalize-permission-model

Conversation

@emeremikwu-lm
Copy link
Copy Markdown
Contributor

Description

Changes related to Apiserver Normalization PR

Addressed Issue

Additional Details

Checklist

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
…top level nav components

- Updated permission directives to use a more consistent approach with apiserver spec.
- Removed unnecessary permission checks and simplified the logic in components such as VulnerabilityAudit, LicenseGroupList, PolicyList, and others.
- Enhanced tab management in VulnerabilityAudit.vue by removing redundant data properties and methods.
- Streamlined the creation and management of policies and licenses by consolidating permission checks.
- Improved the handling of modal visibility and button states based on user permissions.
- Cleaned up unused imports and code comments for better maintainability.

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
…, and VULNERABILITY_ANALYSIS permissions to use PROJECT_READ and FINDING_UPDATE

This refactor migrates the usage of the following legacy permissions:
- VIEW_POLICY_VIOLATION
- VIEW_VULNERABILITY
- VULNERABILITY_ANALYSIS and its sub-permissions (CREATE, READ, UPDATE)

To (apiserver pr spec.)
- PROJECT_READ
- FINDING_UPDATE

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
@emeremikwu-lm emeremikwu-lm changed the title Normalize permission model Normalize permission model (in progress) Jul 30, 2025
…ct-related components

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
…DetailsModal

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
…ervice and ServiceDetailsModal components

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
…paration of logic and ehnancements

Refactor BToggleableDisplayButton to use v-model for better state management

Add AlertListItemDetails component for detailed alert configuration with various input fields and toggles

Refactor PolicyListItemDetails to improve project and tag limiting functionality with collapsible sections

Enhance PolicyCondition component by simplifying subject selection logic and improving permission handling

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
…e related components

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
@emeremikwu-lm emeremikwu-lm force-pushed the normalize-permission-model branch 2 times, most recently from 5fcb0be to 5f4f5a3 Compare July 31, 2025 08:03
- Introduced `PolicyListDetails.vue` for enhanced policy detail editing with conditions and project/tag limitations.
- Added `ProjectPolicyViolationDetails.vue` to display detailed information about policy violations, including comments and analysis options.
- Updated `PolicyList.vue` to utilize the new `PolicyListDetails` component for better detail management.
- Refactored `FindingAudit.vue` to correct permission directive usage.
- Replaced inline detail rendering in `ProjectPolicyViolations.vue` with the new `ProjectPolicyViolationDetails` component for cleaner code and better maintainability.
- Adjusted permission checks in `TaggedVulnerabilityListModal.vue` and `VulnerabilityList.vue` for consistency and clarity.

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
@emeremikwu-lm emeremikwu-lm force-pushed the normalize-permission-model branch from 5f4f5a3 to 4dee5e3 Compare July 31, 2025 09:55
…olved i18n error

- Migrated remaining legacysub permissions of permissions (PORTFOLIO_MANAGEMENT) to their appropriate modern counterparts.
- Updated and enhanced associated logic to use new permission constants
- Improved permission checks and ensured consistency across the codebase.
- Cleaned up unused or deprecated permission exports.
- resolved i18n 'Inactive' key error

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
…omponents

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
@emeremikwu-lm emeremikwu-lm changed the title Normalize permission model (in progress) Normalize permission model Jul 31, 2025
Comment thread src/router/index.js Fixed
@emeremikwu-lm emeremikwu-lm force-pushed the normalize-permission-model branch from 9c93fb1 to 77d9efa Compare August 5, 2025 14:21
…ion logic.

Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
@emeremikwu-lm emeremikwu-lm force-pushed the normalize-permission-model branch from 77d9efa to 0f8b8a1 Compare August 5, 2025 14:25
Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com>
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