[RCA] Sanitize structured crash evidence
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í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
- cli, observability, security
Hướng nghiên cứu
Read the prerequisite issues #14226 and #14230 first, then locate the existing bydbctl rca sanitize command and sanitizer package after their contracts are fixed. The issue names no files or test selector, so confirm the structured record and frame formats and merged CLI seam before starting. Done means the actual CLI produces a bounded safe derivative and exclusion report, preserves raw evidence and hashes, and passes an independent fixture test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Umbrella: #14222
Blocked by: #14226, #14230 (implementation contracts only; see dependency contract below).
Summary
Crash evidence collected by #14226 needs a safe derivative; arbitrary attachments stay private.
Boundary
Activation: bydbctl rca sanitize --selection … --policy …. Extend the same CLI and policy contract, not a new service.
Commands are proposed, not implemented. No database storage/wire-format changes.
Requirements
R1. Extend the existing sanitizer for structured panic records and their supported structured frame representation.
R2. Retain approved function/frame information; remove raw panic values, arbitrary metadata, local path prefixes and breadcrumbs unless explicitly allowlisted.
R3. Use existing aliases for component identity; retain event timing and missing-artifact coverage.
R4. Exclude unstructured stack attachments and unsupported frame encodings with review reasons. Do not invent a generic free-text scrubber.
Acceptance criteria
- A known crash fixture retains approved function/frame and time information but no canary in paths, panic value or breadcrumbs.
- Unstructured attachments stay private and appear in the exclusion ledger; original hashes are unchanged.
- Invoke the actual sanitizer CLI; maintain independent golden fixtures, not expected values produced by the implementation under test.
- Bound input/output sizes and leave raw evidence unchanged on success and failure. Unknown artifact types never bypass policy.
- Add a test-only patch using a merged CLI seam that fails by assertion on the base, then passes with the implementation.
Scope and readiness audit
- Classification: planned blocked leaf; not ready for GraphLoom until prerequisites merge and exact format/policy contracts are fixed.
- Dependencies: #14226, #14230. See the dependency contract below for the exact shared interfaces and runtime independence.
- Boundary and production activation: one typed transformation via the existing sanitizer command.
- Scope: bydbctl RCA sanitization package and command; one independent format fixture family.
- RED evidence: not executed in this drafting task. Plan a named TestRCA test through an existing command seam, not an import of new production APIs.
- Focused tests: run the selected Go regression and changed-package tests after generation; exact selector must be fixed before queueing.
- End-to-end proof: selected private artifact to expected candidate derivative plus exclusion report.
- Compatibility/lifecycle: existing supported artifacts remain valid; preserve cancellation, size bounds, output isolation and alias consistency.
- Decision: one proposed PR after the merged seam is revalidated; no model needed for safety decisions.
Required-only scope audit
Crash evidence collected by #14226 needs a safe derivative; arbitrary attachments stay private. Format support is deliberately limited to the corresponding collector. No generalized arbitrary-content sanitization.
Out of scope
Raw pprof/core/database file release, automatic publication, AI-only sanitization, generic secret-detection guarantees and new telemetry capture.
Concrete verification and closure gate
These are required acceptance tests, not examples that may be skipped. Artifact filenames and unsupported format handling must follow the merged prerequisite contracts. Before queueing, fix the tested schema version, configured limits, observable statuses and independent expected values; record any necessary interface decision in this issue rather than leaving it to an agent mid-run.
Fixed acceptance scenario
Use a structured frame identifying executeQuery and a fixture-approved line number, plus /home/private-user/private-project/query.go, a canary panic value and a canary breadcrumb. Assert approved function/frame/time fields survive and private prefixes/values do not. An unstructured attachment remains private and is named only through the approved omission representation. Compare raw hashes before and after.
Executable regression
Proposed named regression: TestRCASanitizeCrash in bydbctl/internal/cmd exercising the registered command through an existing CLI test seam.
After normal repository generation, use:
go test ./bydbctl/internal/cmd -run '^TestRCASanitizeCrash$' -count=1 -v
make test-ci PKG=./bydbctl/internal/cmd
The exact selector must execute at least one test, not return “no tests to run.” If repository conventions require a different test harness or location, update this section with the real command before queueing; do not claim this proposed test already exists. Also run the actual changed internal package suites.
For GraphLoom, apply only the regression tests/fixtures to the chosen base: they must compile and fail by a relevant assertion. Apply the implementation: the same test must pass. Tests that import a new production package missing from the base are not valid assertion-based RED proof; use an existing command seam. Exercise the real CLI with fixture endpoints/files. If the issue requires deployment E2E, record its separate command and result; fixture-server tests alone do not satisfy it.
Evidence required to close this issue
- Source/base revision, exact commands, fixture provenance and independently specified expected outcomes.
- Actual positive and negative/partial-case results; explain failures and rerun after fixes.
- Produced artifact/manifest/report samples with no real sensitive data, and the relevant size/coverage/privacy assertions.
- Applicable repository checks and integration/evaluation results; explicitly list checks not run. A required check not run leaves acceptance incomplete, not passed.
- For failures/cancellation, confirm no false completion marker and no unrelated user-file overwrite.
No verification execution is claimed by adding this section. Do not close the issue merely because code or documentation was submitted.
Dependency contract: implementation order versus runtime inputs
Implementation prerequisites mean merged interfaces needed to implement/test this issue. They do not mean that those evidence collectors must run or succeed for every incident.
- #14226: structured crash artifact format.
- #14230: shared sanitizer dispatch, candidate output, alias policy and transformation-report contract.
Runtime behavior and verification
A crash-only candidate release is valid. Reuse the shared policy and do not require log output. Test supported structured crash input without native-log artifacts; unknown identity fields follow the declared exclusion/alias rules.
Wait for prerequisite contracts to merge before queueing automated implementation, then revalidate the real interfaces. Do not add direct blockers for dependencies already covered transitively. No new issue or automation job is introduced by this clarification.
- Ngôn ngữ chính
- Java
- Star
- 25k
- Fork
- 6.6k
- Merge trung bình
- 10 giờ 45 phút
- Pull request đã merge (30 ngày)
- 49
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 apache/skywalking
-
[Bug] [BanyanDB] timestamp.ParseDuration silently drops everything after "d"Có thể đã có người làm @soujasK đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
apache/skywalking#14287 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BanyanDB] Let trace queries exclude the raw span from resultsCó thể đã có người làm @hanahmily đã nhận hôm nay. Đang mởenhancement
apache/skywalking#14288 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BanyanDB] Data race and nil-pointer panic: measure write during standalone shutdown after segment closeCó thể đã có người làm @hanahmily đã nhận hôm nay. Đang mởbug
apache/skywalking#14285 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
apache/skywalking#14283 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BanyanDB] Store trace binary tags only in core storage, not in secondary index (sidx)Có thể đã có người làm @hanahmily đã nhận hôm nay. Đang mởenhancement
apache/skywalking#14282 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/skywalking
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
testng-team/testng#3672 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
eclipse-edc/IdentityHub#1296 ·
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 80/100
cloudfoundry/uaa#4194 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ui: 進捗状況線ダイアログが日本語表示で英語のままĐang mởarea: ui priority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
tetsuji16/microProject#1721 ·
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 78/100
Maintainer thường phản hồi trong vòng 2 ngày