Wizard should set users up for production success

Đang mở
#668 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
next.js, typescript

Hướng nghiên cứu

Issue không nêu tên tệp, bài kiểm thử hay điểm vào nào. Hãy bắt đầu bằng cách lần theo cấu hình do Wizard tạo ra và mọi endpoint kiểm thử hoặc debug trên các loại dự án được hỗ trợ, sau đó xác định hành vi an toàn cho production đối với các thiết lập development và production. Hoàn thành khi Wizard làm rõ sự phân biệt này và tránh bật các bề mặt tấn công không cần thiết trong production.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
297
Fork
88
Merge trung bình
5 giờ 29 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-wizard

Tất cả issue của getsentry/sentry-wizard

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.