FATAL rule classification needs to be stricter

Đang mở
#69 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Bắt đầu bằng cách lập danh mục các quy tắc hiện được phân loại là FATAL và so sánh từng quy tắc với bảo đảm đã nêu rằng việc triển khai phải thất bại và không được phép vô hiệu hóa. Hoàn thành khi các lỗi do template thực sự không hợp lệ vẫn là FATAL, trong khi các ràng buộc không chắc chắn hoặc đặc thù dịch vụ được phân loại là ERROR và có thể bị vô hiệu hóa.

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

Mô tả

We need to have a clearer discussion of FATAL vs ERROR.

FATAL was agreed to have clear semantics:

  • Guaranteed to fail your deployment
  • Cannot be suppressed (no point in that, because it's guaranteed to fail your deployment)

I'm seeing a lot of rules currently marked as FATAL that currently do some service-specific content filtering, like "oh this value is too high or too low or doesn't match a regex". Those are all subject to data pollution (service can advertise the constraints incorrectly) or change (service may stretch the boundaries in the future).

If that happens, our users will be stuck with an error that is incorrect, but also one that is insuppressible by the rules that we set for FATAL.

We should probably only use FATAL for "malformed CloudFormation template"-level errors, where we are 100% certain that this won't execute correctly. This is AWS, which means that any rule you think you can divine will be broken by some team somewhere. Any guess is apt to be wrong, and we can't subject our users to those.

Ngôn ngữ chính
Rust
Star
11
Fork
6
Merge trung bình
6 giờ 28 phút
Pull request đã merge (30 ngày)
43

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 aws-cloudformation/cloudformation-validate

Tất cả issue của aws-cloudformation/cloudformation-validate

Issue tương tự

Thêm issue về Rust

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.