snazy opened a new pull request, #1661:
URL: https://github.com/apache/polaris/pull/1661

   Polaris allows using RSA key-paris for the JWT token broker. The recommended 
way is to [generate the RSA key 
pair](https://github.com/apache/polaris/blob/d8b862b13914d526ee147dc0e359bfc9c1e319ad/site/content/in-dev/unreleased/configuring-polaris-for-production.md?plain=1#L61-L66)
 and configure the location of the key files.
   
   However, if only `polaris.authentication.token-broker.type=rsa-key-pair` but 
not the `public/private-key-pair` options are configured, Polaris generates 
those and stores them in `/tmp` using random file names (using 
`Files.createTempFile()`) - this happens for each (matching) realm. Each 
Polaris startup generates new key-pairs for each of those realms. It's 
practically not possible to associate the files to a realm. There is already a 
[production readiness 
check](https://github.com/apache/polaris/blob/d8b862b13914d526ee147dc0e359bfc9c1e319ad/quarkus/service/src/main/java/org/apache/polaris/service/quarkus/config/ProductionReadinessChecks.java#L118-L166)
 to warn users about this behavior.
   
   Due to the issue that the files cannot be associated, those seem to be 
somewhat useless and bring no advantage over keeping these "ephemeral RSA key 
pairs" on heap. This PR changes the code to not write the key-pair to the file 
system and keeps these "ephemeral key pairs" on heap. Since the same code path 
is used for key-paris _provided_ by the user (via the `public/private-key-pair` 
config options), that code path now only reads those files once and not every 
time the private/public key is needed.
   


-- 
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: issues-unsubscr...@polaris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to