Problem with OAuth2 and Spring Clound DataflowSkipper - Stack Overflow

Here's the context of my task that I'm not able to achieve : We have a component (an app) tha

Here's the context of my task that I'm not able to achieve : We have a component (an app) that is deployed to Spring Cloud Dataflow and is then used by streams that we define. Everythings works great until the point where I'm supposed to add some security. What we want is to be able to switch different security modes (Keycloak, custom roles defined by our own security application and no security). We decided to have a parameter in the config file to enable the type of the security we wanted.

To do so, we activate our SecurityFilterChain bean according to the value specified in the config file (via @Conditional) and it works fine when I run the app locally.

The problem comes when I deploy my app to Dataflow and then create a stream. I always have a log saying that there are missing OAuth2 properties so it skips the auth interceptor configuration (which is kinda problematic) and whatever the security mode I chose.

Is it because I have some OAuth2 dependencies in my pom.xml ? Then why does it work on my machine but not on Dataflow ? Does Skipper/Dataflow pass some properties thinking OAuth2 is configured while it's not ?

I know it's a hard question without knowing our infrastructure but I'm throwing a bottle into the ocean.

FYI : Spring boot 3.3.5, Spring Security 6.2 and Skipper 2.7. something (I think we tried both .5 & .11)

Thanks for any help :)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745173343a4615060.html

相关推荐

  • Problem with OAuth2 and Spring Clound DataflowSkipper - Stack Overflow

    Here's the context of my task that I'm not able to achieve : We have a component (an app) tha

    1小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信