spring-projects / spring-projects/spring-security

hasIpAddress in RSocket Security

Open
#7,988 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: rsocket
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.