You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/12/06 14:29:09 UTC

[GitHub] [flink] steveniemitz commented on pull request #21457: [FLINK-30309][runtime] Allow users to supply custom SslContexts

steveniemitz commented on PR #21457:
URL: https://github.com/apache/flink/pull/21457#issuecomment-1339472395

   > My general question is why we need to change all places the `SslContext` to `Supplier<SslContext>`? Is the plan to create new context all the time together w/ an `SSLHandlerFactory `? It would be good to describe what is the general lifecycle plan. Maybe if you can highlight use-cases it would be easier to understand.
   
   First, thanks for the quick review!  Appreciated.
   
   The reason for changing it to a Supplier is so that the SslContext can change over time.  A concrete use-case (and the reason for this PR) is hot-reloading certificates.  For example, if, while the JobManager is running, the server certificate changes (say it expires), an implementation of the supplier could detect this, create a new SslContext, and begin returning that instead.  It isn't expected that implementations would create a new SslContext for each call to get however.


-- 
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-unsubscribe@flink.apache.org

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