Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`cf workers secrets bulk` silently no-ops on the plain body shape; `secrets update` accepts invalid names

Aperta
#102 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api, cli, security

Direzione di ricerca

Start by reproducing the documented cf workers secrets bulk and secrets update commands, then trace the workers secrets command, help, and schema paths. Compare plain and wrapped bodies, .env input, and invalid names; done means the behavior is explicit, the body shape is documented in help and schema, and invalid names are rejected locally.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

upstream

cf version: 1.0.0-beta.5, macOS

1. cf workers secrets bulk silently does nothing with the plain (RFC 7396 merge-patch) body.

cf workers secrets bulk --worker W --body '{"API_KEY":{"type":"secret_text","text":"v"}}'

This returns 200 and exits 0, and the response lists the bindings, but the secret's value doesn't change (checked for 20 s). Only the wrapped shape {"secrets":{"API_KEY":{...}}} applies it.

  • --file with the plain shape: the same silent no-op.
  • --file with a .env file: [10026] Could not parse request body.
  • --help doesn't show the body shape, and cf schema workers secrets bulk shows requestBodyFields: [].

2. cf workers secrets update accepts invalid names. cf workers secrets update "bad-name!" --worker W --type secret_text --text v creates the secret (exit 0), although the help says the name must be "A JavaScript variable name". It can only be removed with delete "bad-name!" -f.

Expected: reject a body that won't apply, or accept the plain shape; document the body in --help and the schema; validate secret names locally.

Related, but a different problem: #96 (secrets update replaces the whole set).

Found while evaluating cf for a dev workflow: https://github.com/joeblew999/cf-cli-test (FINDINGS.md, findings/).

Lingua principale
TypeScript
Stelle
916
Fork
53
Merge medio
18h 26m
PR unite (30g)
177

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudflare/cf

Tutte le issue di cloudflare/cf

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.