dimas-b commented on code in PR #2000:
URL: https://github.com/apache/polaris/pull/2000#discussion_r2191153809


##########
runtime/defaults/src/main/resources/application.properties:
##########
@@ -145,6 +145,8 @@ polaris.rate-limiter.token-bucket.requests-per-second=9999
 polaris.rate-limiter.token-bucket.window=PT10S
 
 polaris.active-roles-provider.type=default
+# Per-realm overrides:
+# polaris.realm1.active-roles-provider.type=custom

Review Comment:
   The config prefix matters. It is associated with the 
`QuarkusAuthenticationConfiguration` config class.
   
   A config entry like `polaris.active-roles-provider.type=ABC` will map to the 
`DEFAULT_REALM_KEY` in the 
[realms()](https://github.com/apache/polaris/blob/ab228afa4d975faabb7aaf1e8abb0804f5b9d353/runtime/service/src/main/java/org/apache/polaris/service/quarkus/auth/QuarkusAuthenticationConfiguration.java#L36)
 map.
   
   A config entry like `polaris.realm1.active-roles-provider.type=DEF` will map 
to the `realm1` key in the same map.
   
   Look up is handled by 
[AuthenticationConfiguration](https://github.com/apache/polaris/blob/e1c0a1ccdad4e4e432c026cdc3ae30dcb8112da1/service/common/src/main/java/org/apache/polaris/service/auth/AuthenticationConfiguration.java#L34)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to