Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Windows keyring error recommends cf auth login --use-keyring, which isn't a valid option

Cerrado
#326 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@petebacondarwin ya está trabajando en esto.

Desde el 19/10/2026.

  • #359 de @petebacondarwin — fusionado

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
nodejs, typescript

Línea de trabajo

Start from windowsBindingMissingMessage and secretToolMissingMessage in the shared workers-auth code, which build the cf auth login --use-keyring advice, and from setKeyringPreference, which no command exposes. Reproduce with CLOUDFLARE_AUTH_USE_KEYRING=true and no @napi-rs/keyring installed. Done means the message points only at options cf actually accepts, and that choice is agreed with maintainers first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary of the issue

On Windows, when CLOUDFLARE_AUTH_USE_KEYRING=true is set and @napi-rs/keyring isn't installed, any non-interactive auth command fails with:

Run `cf auth login --use-keyring` interactively to install it automatically, …
Or disable keyring storage: `cf auth login --no-use-keyring`.

cf auth login doesn't define --use-keyring or --useKeyring, so following the advice gives an unknown-argument error. The text comes from windowsBindingMissingMessage(loginCommand) in the shared workers-auth code, and the flag only exists in wrangler. In cf, keyring storage is controlled only by CLOUDFLARE_AUTH_USE_KEYRING or the stored keyring_enabled preference. setKeyringPreference exists, but no command exposes it. secretToolMissingMessage (Linux) has the same problem.

Related:

  • The fallback lookup uses npm root -g, so a global install made through Volta (and probably other version managers) is never found, even though the message suggests npm install -g.
  • defaultNpmRunner uses shell: true only on win32, which triggers Node 26's DEP0190 warning.
Expected behaviour

Suggested fix:

either add --use-keyring/--useKeyring to cf auth login, or pass cf-specific wording, such as setting CLOUDFLARE_AUTH_USE_KEYRING, into these messages.

Version of cf used

v1.0.0-beta.17

System information and package versions

Windows 10
Node 26.1.0
npm: 11.17.0

Reproduction (optional)

Run in PowerShell:

$env:CLOUDFLARE_AUTH_USE_KEYRING="true"; cf auth whoami < NUL
Relevant error logs (optional)

No response

Lenguaje dominante
TypeScript
Estrellas
960
Forks
62
Merge medio
17 h 15 min
PR fusionados (30 d)
194

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cloudflare/cf

Todos los issues de cloudflare/cf

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.