spring-projects / spring-projects/spring-security

Cache in DelegatingMethodSecurityMetadataSource

Open
#6,897 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

Summary

How can I delete a key from the internal cache in DelegatingMethodSecurityMetadataSource?

Another option to use another delegate?

I need to update the ConfigAttributes on runtime, but the DelegatingMethodSecurityMetadataSource cache does not allow me to do it, thanks.

Actual Behavior

The cache can not be accessed to delete.

Expected Behavior

Allow delete cache or a key from the cache.

Version

v5.1.xx

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading DelegatingMethodSecurityMetadataSource and tracing how its internal cache is populated and consulted. Determine the intended behavior for deleting one key, clearing the cache, or replacing a delegate when ConfigAttributes change at runtime. Done means the supported runtime update behavior is defined and verified without relying on inaccessible cache state.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
authorization, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.