Describe the bug
Hello! I'm using Bitwarden Secrets Manager as a secrets provider for External Secrets Operator, deployed via Helm with:
bitwarden-sdk-server:
enabled: true
Looking at memory consumption of this pod, it looks like there's a memory leak:
Checking quickly the code, it might be related to the Login function that creates a Bitwarden client, but never closes it.
This function call seems to be wrapped in a middleware, executed on all requests which could explain the leak?
To Reproduce
Steps to reproduce the behavior:
- Install ESO with Bitwarden Secrets Manager enabled
- Let it run for a while, check memory usage of sdk-server
Expected behavior
Memory usage should be proportional to HTTP traffic, not scale indefinitely.
Describe the bug
Hello! I'm using Bitwarden Secrets Manager as a secrets provider for External Secrets Operator, deployed via Helm with:
Looking at memory consumption of this pod, it looks like there's a memory leak:
Checking quickly the code, it might be related to the Login function that creates a Bitwarden client, but never closes it.
This function call seems to be wrapped in a middleware, executed on all requests which could explain the leak?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Memory usage should be proportional to HTTP traffic, not scale indefinitely.