spring-projects / spring-projects/spring-security
hasIpAddress in RSocket Security
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
Summary
I cannot see any option to check/validate IP address of client using Spring Security RSocket library.
Actual Behavior
RSocket Security gives no option to validate or whitelist IP address of client on setup phase.
Expected Behavior
I would love to have similar method like .hasIpAddress in Webflux or MVC security configuration.
Configuration
Version
5.2.1.RELEASE
Sample
@Bean
PayloadSocketAcceptorInterceptor rsocketInterceptor(RSocketSecurity rSocket) {
return rSocket
.authorizePayload(authorize ->
authorize
.anyRequest().hasAnyRole(...) // hasIpAddress missing
.anyExchange().permitAll()
)
.jwt(Customizer.withDefaults())
.build();
}
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 with the RSocketSecurity authorization configuration shown in the example, then compare how hasIpAddress is exposed in WebFlux or MVC security configuration. The work is complete when RSocket setup-phase authorization can validate or whitelist a client's IP address through a comparable configuration option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100