Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demonstrate how to consume a rotated secret in python function #446

Open
2 tasks
kwiatekus opened this issue Nov 27, 2023 · 0 comments
Open
2 tasks

Demonstrate how to consume a rotated secret in python function #446

kwiatekus opened this issue Nov 27, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation kind/feature Categorizes issue or PR as related to a new feature.

Comments

@kwiatekus
Copy link
Contributor

kwiatekus commented Nov 27, 2023

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

  • Provide a python function sample that is able to detect a changed file mounted by a volume mount and execute logic.
  • STRETCH: Look into providing a convenience functions as part of our function sdk that is available in the provided programming interface

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

@kwiatekus kwiatekus added documentation Improvements or additions to documentation kind/feature Categorizes issue or PR as related to a new feature. labels Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant