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

native stack: auth refuses to start when auth.sessions timebox or inactivity_timeout is 0s

Cerrado Apto para principiantes
#6,845 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
88/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Empieza reproduciendo el problema con supabase start y cualquiera de las dos configuraciones de duración cero, y después compara packages/stack/src/services/AuthSettings.ts:268-269 con apps/cli/src/commands/start/services/gotrue.service.ts en b8026df. Se considera terminado cuando el stack nativo se inicia correctamente tanto con timebox = "0s" como con inactivity_timeout = "0s", y la solicitud de configuración de auth devuelve 200.

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

Descripción

🐛 Bug supabase/cli
Affected area

Auth

Supabase CLI version

2.118.1-beta.3 (also 2.118.0)

Operating system

macOS 26.1 (arm64)

Installation method

npm

Command
supabase start

with [experimental] stack = true and either of these in config.toml:

[auth.sessions]
timebox = "0s"
[auth.sessions]
inactivity_timeout = "0s"
Actual output

supabase start exits 0. Auth answers 502, and supabase status --output-format json reports:

auth startup exited with 1
Recent stderr:
{"level":"fatal","msg":"Failed to load configuration: conf: session timebox duration must be positive when set, was 0s"}

With inactivity_timeout = "0s" the same, with session inactivity timeout duration must be positive when set, was 0s.

Expected behavior

The same result as the Docker runtime: auth starts, and 0s means no limit.

The Docker runtime leaves a zero duration out of auth's environment. From apps/cli/src/commands/start/services/gotrue.service.ts at b8026df:

if (input.sessions?.timebox !== undefined) {
  const nanoseconds = parseGoDuration(input.sessions.timebox);
  if (nanoseconds > 0) {
    env["GOTRUE_SESSIONS_TIMEBOX"] = formatGoDuration(nanoseconds);
  }
}

and the same guard for inactivity_timeout. The native stack's packages/stack/src/services/AuthSettings.ts:268-269 passes both through unguarded:

put("GOTRUE_SESSIONS_TIMEBOX", settings.sessions?.timebox);
put("GOTRUE_SESSIONS_INACTIVITY_TIMEOUT", settings.sessions?.inactivity_timeout);

GoTrue rejects a zero duration that is set, so the native runtime refuses a config.toml the Docker runtime accepts.

Steps to reproduce
  1. supabase init in an empty directory.
  2. Add stack = true under [experimental], then uncomment [auth.sessions] and set timebox = "0s".
  3. supabase start, then curl -H "apikey: <publishable key>" <API_URL>/auth/v1/settings: 502.
  4. Comment timebox back out, supabase stack destroy --stack-id <id> --yes, supabase start: the same request answers 200.
Lenguaje dominante
TypeScript
Estrellas
2.4k
Forks
526
Merge medio
1 d 2 h
PR fusionados (30 d)
287

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 supabase/cli

Todos los issues de supabase/cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.