eclipse-basyx / basyx-java-server-sdk

MIT License
60 stars 47 forks source link

[Question] RBAC Configuration Databridge - Missing Documentation #462

Closed gerberm-at-msg closed 2 months ago

gerberm-at-msg commented 2 months ago

Describe the question At first I like to ask, is RBAC implemented in the Databridge too?

If yes how is it configured? I tried the following (analog to the other services), which isn't working:

basyx.cors.allowed-origins=*
basyx.cors.allowed-methods=GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD

basyx.feature.authorization.enabled = true
basyx.feature.authorization.type = rbac
basyx.feature.authorization.jwtBearerTokenProvider = keycloak
basyx.feature.authorization.rbac.file = file:/application/rbac_rules.json // linked in docker container
spring.security.oauth2.resourceserver.jwt.issuer-uri= http://192.168.178.76:9097/realms/BaSyx

basyx.databridge.authorization.preconfiguration.token-endpoint=http://192.168.178.76:9097/realms/BaSyx/protocol/openid-connect/token
basyx.databridge.authorization.preconfiguration.grant-type=CLIENT_CREDENTIALS
basyx.databridge.authorization.preconfiguration.client-id=databridge
basyx.databridge.authorization.preconfiguration.client-secret=mysupersaveclientsecretisetinkeycloak

Thank you for your help!

aaronzi commented 2 months ago

Hello @gerberm-at-msg,

there is no documentation for that because the DataBridge currently does not support RBAC. I created a new ticket in our backlog. You can find it here: eclipse-basyx/basyx-databridge#316