Document prod logging to stderr and the optional 5xx error mail (template #162)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- kubernetes, php
- Lĩnh vực
- documentation, observability
Hướng nghiên cứu
The facts come from the upstream template change 8bfb0d4 and its prod/monolog.yaml and tests/Unit/Monolog/ProdLogRedactionTest.php, so read those first to confirm the behaviour. The edits go in content/6.deployment/7.troubleshooting.md (logs on stderr, redaction, kubectl logs) and content/6.deployment/4.variables.md (CWA_API_ERROR_MAIL_TO). Done when both pages describe the new behaviour and the variable is listed with the other CWA_API_* settings. Coordinate with docs#232 before merging.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Template change in components-web-app 8bfb0d4's parent (Unreleased; the next release after 2.0.0-alpha.33).
- Logs: prod writes Google-structured JSON to stderr, not
var/log/prod.log. Read them withkubectl logsor the cluster's log explorer (GKE: Cloud Logging, where severity, channel and context are queryable fields). They're redacted: email addresses, JWTs and Authorization values, DSN credentials, bcrypt hashes, and the username and token segments of the email-link URLs. Fit forcontent/6.deployment/7.troubleshooting.mdand the Kubernetes page. - Error mail: set the CI variable
CWA_API_ERROR_MAIL_TO(with a workingMAILER_DSN) to get one email per unique 5xx per hour. The subject is "WEBSITE_NAMEAPI error". Empty sends none. Add it tocontent/6.deployment/4.variables.mdwith the otherCWA_API_*settings. - Browser tests: they now fail a run that sends an error mail. Add this alongside docs#232.
- For projects: anything new that logs a secret or an email address needs a key or pattern in
prod/monolog.yaml, andtests/Unit/Monolog/ProdLogRedactionTest.phpcovers it.
- Ngôn ngữ chính
- Vue
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của components-web-app/docs
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
components-web-app/docs#245 ·
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
components-web-app/docs#244 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
components-web-app/docs#243 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
components-web-app/docs#241 ·
-
documentation
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
components-web-app/docs#246 ·
Tất cả issue của components-web-app/docs
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
-
documentation v3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
cucumberswift/CucumberSwift#437 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: design documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eyalgolan/statecraft-israel#883 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
frontend/README.md is the unchanged, Vite template and doesn't explain how to run the UICó thể đã có người làm @Aarav-Singh2007 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
jenkinsci/user-guide-ai-chatbot-plugin#102 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày