SECENG-12857: Increase secrets-store max value length from 1024 to 2048 characters #13266
Replies: 17 comments
|
I've pinged the relevant team internally |
Secret Size Limits Comparison
ObservationCompared to other popular platforms, Cloudflare's 1 KB secret size limit is extremely restrictive. For many use cases, this limit is sufficient for small tokens or API keys, but it quickly becomes a limitation for more complex secrets, such as:
SuggestionIt would be highly beneficial if Cloudflare:
ConclusionWhile Cloudflare's edge environment emphasizes lightweight, minimal resource usage, relaxing the current 1 KB limit — at least for advanced plans — would greatly improve developer flexibility without compromising performance for typical workloads. |
|
I see an internal ticket ( |
|
I'm running into a similar issue trying to add a GCP service account key to secrets store which is around 2300 characters. |
|
+1 to longer secret length. have run into private keys being too long multiple times |
|
+1, we are running into this limit for several keys |
|
There is an internal ticket tracking this (SECENG-12857). Pinging them again. |
|
We have had to go down the route of splitting the credential into 1024 byte chunks - also for the GCP service account key. So adding my +1 here |
|
+1. Have to split GCP Service key 😑 |
|
+1 |
|
+1 |
|
+1 |
|
+1 |
|
+1 |
|
I have pinged the internal team again asking for an update and referencing these recent notes of splitting credentials across multiple secrets as a workaround. |
|
+1 Having to split the key |
|
This issue seems to be the main reason why large projects are deterred from deploying on Cloudflare Workers. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the solution
Issue
I had a old email worker that use secret, and now I am trying to use the new secrets store on Cloudflare.
My worker secret
DKIM_PRIVATE_KEYis 1624 long, which is longer than 1024 characters, but it reaches the limit value length of the secrets store.Possible solution
I hope it can increase the limit to 2048 characters.
Current solution
Using the old secret env var on the worker, or creating
DKIM_PRIVATE_KEY_1andDKIM_PRIVATE_KEY_2for splitting the secret value :(All reactions