Skip to content

Increase secrets-store max value length from 1024 to 2048 characters #9707

@BattlefieldDuck

Description

@BattlefieldDuck

Describe the solution

Issue

npx wrangler secrets-store secret create <store-id> --name DKIM_PRIVATE_KEY --value <value> --scopes workers
 Creating secret... (Name: DKIM_PRIVATE_KEY, Value: REDACTED, Scopes: workers, Comment: undefined)

X [ERROR] A request to the Cloudflare API (/accounts/<accounts>/secrets_store/stores/<stores>/secrets) failed.

  secret_value_too_long [code: 1001]

  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose

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_KEY is 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_1 and DKIM_PRIVATE_KEY_2 for splitting the secret value :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions