Limits to Secrets?

I am designing a system using workers that will have multiple tenants. I want to store secrets per tenant. Are there any limits (e.g. size or # of secrets) to the secret store? Also related: how does scaling work for the workers? I don't think I can have a dedicated worker for a tenant, right?
5 Replies
Sam
SamOP3w ago
Are there any limits to the number of secrets that can be stored? I guess you forgot to share the links
Sam
SamOP3w ago
Oh, i just realised that we can't store secrets programatically from within the worker. Is that the case? https://developers.cloudflare.com/workers/configuration/secrets/#adding-secrets-to-your-project
Cloudflare Docs
Secrets
Store sensitive information, like API keys and auth tokens, in your Worker.
Sam
SamOP3w ago
No worries man, you just said "here are some common examples:" and I thought the links are missing
Fizzgig
Fizzgig3w ago
I think so, they're usually for api keys. You could try encrypting your user secrets and saving them to d1
Gravite2090
Gravite20903w ago
You can use the cloudflare api Secret Store Or Wrangler CLI for standard worker secrets
Cloudflare API | Secrets Store
Interact with Cloudflare's products and services via the Cloudflare API

Did you find this page helpful?