unbridled-41 commented on issue #4281: URL: https://github.com/apache/rocketmq-dashboard/issues/4281#issuecomment-5657463316
**关闭本 Issue:实测推翻了暴露前提。** 在基线 6c24d2ed 上的 HTTP 层实测(@WebMvcTest(K8sCertController) + @Import(AuthWebConfig) + reader 会话): - `GET /api/k8s-certs`(reader)→ 200,但响应 JSON 中 `$.data[0].keyPem` **无值**; - 原因:`K8sCertVO.keyPem` 带 `@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)`(K8sCertVO.java:49-50),Jackson 在 list/create/update 任何响应序列化中都从不输出该字段; - 对照:同 reader 会话对该控制器的 POST(管理员门控)→ 403。 因此"reader 可通过清单接口收到私钥 PEM"不成立——私钥从未离开服务端,前端"仅保存,不会在页面展示或返回"的说明与实际行为一致。原证据(ServiceTest 红灯)只覆盖内存 VO 契约,未跨越序列化边界,不构成用户可见缺陷。实现 PR #4286 已同步撤回关闭。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
