Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • P Partition
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe SoftwareOpen Subsurface Data Universe Software
  • Platform
  • System
  • Partition
  • Issues
  • #1
Closed
Open
Issue created Sep 08, 2020 by Matt Wise@wsmatthOwner

Partition API routes are missing standard OSDU Roles

Routes in the partition service use a custom authorization filter that does not use Roles, but rather hardcodes a specific account type 'DomainAdminServiceAccount'.

pre-auth block in API methods:

@PreAuthorize("@authorizationFilter.hasPermissions()")

Authorization filter has the following function:

public boolean hasPermissions() {
    return authorizationService.isDomainAdminServiceAccount();
}

Should the partition service use standard roles rather than user types to be compliant with other services?

Other services use the following:

@PreAuthorize("@authorizationFilter.hasRole('" + DeliveryRole.VIEWER + "')")
Edited Sep 08, 2020 by Matt Wise
Assignee
Assign to
Time tracking