Skip to content

[JENKINS-55799] Performance: Introduce caching of SIDs in RoleMap #545

@jenkins-infra-bot

Description

@jenkins-infra-bot

Currently RoleMap has no caching for SIDs though all performance requests actually operate with SIDs. Each time the permissions is checked, all matching roles have to be checked for SIDs: https://github.com/jenkinsci/role-strategy-plugin/blob/role-strategy-2.9.0/src/main/java/com/michelin/cio/hudson/plugins/rolestrategy/RoleMap.java#L107 

Extra caching could help in the case of the cases when there are many roles defined in the RoleMap. 

Such caching needs to be aware of potential security concerns, and there should be proper invalidation

 


Originally reported by oleg_nenashev, imported from: Performance: Introduce caching of SIDs in RoleMap
  • status: Open
  • priority: Minor
  • component(s): role-strategy-plugin
  • label(s): performance
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251211-223321
Raw content of original issue

Currently RoleMap has no caching for SIDs though all performance requests actually operate with SIDs. Each time the permissions is checked, all matching roles have to be checked for SIDs: https://github.com/jenkinsci/role-strategy-plugin/blob/role-strategy-2.9.0/src/main/java/com/michelin/cio/hudson/plugins/rolestrategy/RoleMap.java#L107 

Extra caching could help in the case of the cases when there are many roles defined in the RoleMap. 

Such caching needs to be aware of potential security concerns, and there should be proper invalidation

 

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions