compliance: add root third-party notices for Go dependencies

Đang mở
#1,179 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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
ci-cd, devops, documentation

Hướng nghiên cứu

Bắt đầu bằng việc xem xét PR #1172 và phạm vi dependency từ go list -deps ./..., không bao gồm các test. Xác định generator được version hóa, renderer, các input override và entry point CI định kỳ được mô tả trong issue. Được xem là hoàn thành khi có các thông báo có thể tái hiện, bằng chứng rõ ràng về những phần chưa được giải quyết và các PR cập nhật tự động mà không cần chỉnh sửa thủ công.

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

Mô tả

Background

Open-source license compliance requires the source repository itself to carry a complete, redistributable notice for the third-party components it bundles. Apache License 2.0 Section 4(d) requires attribution notices to be passed along with redistribution, and the notice must accurately reflect what is actually shipped. monitoring currently has no root notice file for its third-party Go dependencies.

Goals

  • Maintain a root ThirdPartyNotices.txt in the repository listing third-party components: names, versions, license identifiers, and license texts, so it can be redistributed with source bundles and release artifacts.
  • The content must be traceable to a fixed source commit and fixed generation inputs (pinned tool version, audited overrides).
  • Updates should be generated by an automated process (periodic, e.g. weekly) rather than manual editing, without blocking on dependency changes.

Approach

  • Collect components and license evidence from the dependency graph (go list -deps ./...), excluding the standard library and first-party modules.
  • The generator is only responsible for discovering and extracting evidence; it does not decide legal matters. Cases it cannot decide (missing license metadata, unusual license choices) are handled by audited, exact-version overrides owned by humans. A renderer produces the final stable file; raw generator output is never used directly as the final notice.
  • Components with unresolved evidence must be recorded explicitly for review, never silently dropped.

Scope of this track

  • PR https://github.com/pingcap/monitoring/pull/1172 adds the first root third-party notices for this repository:
    • Scope: Linux/amd64 go list -deps ./... with tests excluded; 87 components.
  • Follow-ups: wire the generation into a periodic CI job that opens update PRs, and keep the override/policy inputs versioned in the repository.
Ngôn ngữ chính
Go
Star
29
Fork
46
Merge trung bình
8 giờ 3 phút
Pull request đã merge (30 ngày)
62

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

  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 pingcap/monitoring

Tất cả issue của pingcap/monitoring

Issue tương tự

Thêm issue về Go

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.