Wizard should set users up for production success

Abierto
#668 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
next.js, typescript

Línea de trabajo

El issue no indica archivos, pruebas ni puntos de entrada. Empieza rastreando la configuración generada por el Wizard y cualquier endpoint de pruebas o depuración en los tipos de proyecto compatibles; después, define un comportamiento seguro para producción en las configuraciones de desarrollo y producción. Se considera terminado cuando el Wizard deja clara la distinción y evita habilitar superficies de ataque innecesarias en producción.

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

Descripción

Improvement

Using Next.js as an example, but I believe this problem is wider spread.

When you run through the process you're asked a series of questions. This helps you get things setup (in my experience) pretty well. Two things however that it does do not make it the easiest to succeed when going to production:

  1. There is no explicit or implicit environmental awareness for disabling Sentry in development. This was intentional to make it easy for people to verify its setup correctly, but is not desired behavior outside of that setup test.

  2. There is an error trigger mechanism in some situations, which creates a DoS or otherwise undesirable abuse vector in production environments.

From an outcomes point of view, there's a number of ways it can be solved, but what we desire is:

  • (1) Users understand - and have low friction - to disable Sentry in development environments outside unless its explicitly desired (its not for most people, and provides a worse experience, especially out of the box)

  • (2) Sentry does not expose any attack vectors in production that could otherwise be avoided. That means any kind of endpoint which is specifically designed for testing or debug should not be enabled in a production stack.

(1) likely exists outside of the Wizard, as most of our docs no longer talk about dev vs production anywhere (as far as I can tell), and these days many apps are not configured via env variables (thus less obvious how you should or even can disable it). I believe Wizard makes this worse as users are even less hands on, and they're assuming things are "correct" out of the box, vs if they had gone through the instructions themselves.

(2) I did not step through to verify what our approach is to this everywhere, but its something we should be aware of and I know it hasn't been top of mind in the past. We likely need to adjust some of the implementations of this and/or make it very clear that folks should remove it before shipping to production.

Lenguaje dominante
TypeScript
Estrellas
297
Forks
88
Merge medio
5 h 29 min
PR fusionados (30 d)
5

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 getsentry/sentry-wizard

Todos los issues de getsentry/sentry-wizard

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.