spring-projects / spring-projects/spring-security
How can we have a Super User that has full authorization on the system without assigning any privileges.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
How can we have a Super User that has full authorization on the system without assigning any privileges?
I wonder how there is no simple way to disable the authorization checks for specific super users? developers are asking here and here if, using Spring Security, there's any way to set specific users as Super Admins who should be able to do anything without the need neither to have specific privileges nor inherit them from other users.
If this is really the case, I suggest that the community should add this ability, including the following features:
-
Add the ability to set specific roles or privilege owners or users as Super User who has access to all the resources regardless the configurations under the WebSecurityConfig configurations.
-
Reflect that on ThymeLeaf, and make hasRole, hasAuthority, etc return true whenever those super users are logged in.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the WebSecurityConfig authorization flow and the ThymeLeaf hasRole and hasAuthority entry points mentioned in the issue. Define the supported super-user sources and verify how access and template expressions should behave, then add tests covering the agreed behavior; the issue names no existing files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- authorization, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100