almazgalievisl opened a new issue, #281:
URL: https://github.com/apache/polaris/issues/281

   ### Is this a possible security vulnerability?
   
   - [X] This is NOT a possible security vulnerability
   
   ### Describe the bug
   
   
[PolarisApplicationConfig](https://github.com/apache/polaris/blob/cc58730a0c626dba574c2577b32081b17b97b7a8/polaris-service/src/main/java/org/apache/polaris/service/config/PolarisApplicationConfig.java#L117)
 defines defaultRealm and allows overriding it trough configuration file. 
[DefaultContextResolver](https://github.com/apache/polaris/blob/cc58730a0c626dba574c2577b32081b17b97b7a8/polaris-service/src/main/java/org/apache/polaris/service/context/DefaultContextResolver.java#L52)
 ignores a value from the configuration. 
   
   ### To Reproduce
   
   0. Setup an eclipse link with a database name which is different from 
`default-realm`
   1. Set `defaultRealm`  in the configuration yaml file
   2. Try to connect to get the token without setting `realm` explicitly in the 
request's headers
   3. Polaris returns an error: 
   ```
   FATAL: database 'default-realm' does not exist
   ```
   
   ### Actual Behavior
   
   Configuration setting is not a source of truth for the all components
   
   ### Expected Behavior
   
   Configuration setting defines a default value for the all components
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _No response_


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