mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-02 11:29:17 +00:00
24b9ce0dc8
api_types carried a second DeleteKeyRequest that nothing referenced: it is absent from the lib.rs re-export list, so rustfs_kms::DeleteKeyRequest has always resolved to types::DeleteKeyRequest through `pub use types::*`, and the admin handler builds the real type via `use rustfs_kms::types::*`. The copy had also drifted apart from the type it shadowed. It still called force_immediate "for development/testing only" and described the 7-30 day window as advisory, and it never gained the confirm_key_id field that the immediate-deletion gate now requires. A caller that reached into api_types and deserialized into it would silently drop confirm_key_id. api_types::DeleteKeyResponse stays: it is live, pinned by the kms_management_responses_have_stable_json_shapes snapshot alongside the list/describe/cancel response shapes, and it mirrors the admin wire response rather than duplicating types::DeleteKeyResponse, whose fields differ. Its doc comment now records why no request twin sits beside it.