durable objects for secret storage
Is durable object secured enough to store secrets (such as, api keys and tokens)?
6 Replies
Is there a reason you don't want to use worker secrets?
The number of my secret variables exceeds the limit.
You have more than 64/128? That's a lot. What are you doing?
I am building a web app that stores third-party access tokens per a user account. I am using "Pages" to render the user's frontend - I use the access tokens to pull some user specific data from the third-party server (for the frontend). I am using KV, DO and R2 to store other non-sensitiev user data. In another topic, does number of page functions count as workers? 🙂
Gotcha. Storing those access tokens sounds like a database thing. Can you store them in KV encrypted and then have the decryption key as a secret for your worker?
Thanks. That is a better approach from what I planned. 🙂