Demonstrate how to consume a rotated secret in python function #446
Labels
documentation
Improvements or additions to documentation
kind/feature
Categorizes issue or PR as related to a new feature.
Description
Document an example function that demonstrates how to consume a secret that is being rotated.
The sample should not go into "restarting a pod" direction, but demonstrate how this common problem can be solved programatically in the application code.
AC
Reasons
There are no available sdks for python language that would dynamically handle changed secret file.
(
@sap/xsenv
is used for such use case in nodejs - unfortunately there is no equivalent for python )Serverless users struggle to understand how to dynamically detect a changed file and execute code to reload the content (i.e restart a client that relies on the secret)
Attachments
One idea: https://github.com/samuelcolvin/watchfiles
The text was updated successfully, but these errors were encountered: