Implement: Default credential header masking for issue #8446
Implementation Plan: Default credential header masking
Delivery Path Decision
Direct sequential implementation in the existing branch; no delegation or PROCESS is needed. This plan documents already-authored unmerged code retrospectively; it must not imply the implementation followed confirmed planning in advance.
Work Packages and Dependencies
One TASK (TASK-8461001) covers the single SPEC (SPEC-8460001): shared configuration and policy, request/response integration, Console integration and cache cleanup, regression tests, durable spec and operator documentation. Bind the TASK to its SPEC with Covers and the canonical SPEC comment URL via issue-spec link. The contributor confirmed the SPEC on 2026-11-12; source: https://github.com/apache/shenyu/issues/8460#issuecomment-6814335706. Planning status will be checked against these published artifacts.
Workspace / Branch Plan
Repository: apache/shenyu; fork: SouthwestAsiaFloat/shenyu. Branch: 8446-mask-credential-headers. Candidate implementation: 3680aaafaf5c7e1c58da04ec63199da4474853e9. Pull request: https://github.com/apache/shenyu/pull/8463. Baseline: 9dd9a12fb. Keep subsequent scope corrections on this branch.
Writer and Provider-review Plan
The current agent authored the implementation and ran self-tests. No independent review or maintainer approval is claimed. Publication, additional pushes and PR creation follow the user's actual authorization. No artificial review/verify artifacts or merge authority are created.
Conflict and Serialization Risk
The common and Console paths share policy and configuration semantics; keep them in one coherent change. Do not overwrite unrelated branch changes. Preserve all existing response constructor signatures and the standalone Console pipeline.
Provider Checks / Review Status
- Design Issue: #8461
- Status: implementation completed; PR review pending
- Local test evidence: 175 tests passed on JDK 17, including testHeaderPoliciesAreIsolatedByPluginId; the exact command is recorded in Design #8461.
- Local Checkstyle, Apache RAT and diff whitespace checks passed for the code candidate.
- The durable spec was generated from SPEC-8460001 with the pinned CLI; preview/apply/check passed against baseline 9dd9a12fb7c64e8a0e26449caa906fe562350dca and the candidate above.
- IssueSpec workflow validation and implement planning gate passed with one confirmed SPEC, one covering TASK and no blocking questions.
- Full build, Docker integration and live sinks have not run. CI and maintainer review are tracked on PR #8463.
- Proposal: #8460. Confirmed SPEC: SPEC-8460001. Design TASK: TASK-8461001.
- This plan does not claim maintainer review or merge approval.