Skip to content

feat: remove legacy secret message types#51

Merged
iduartgomez merged 1 commit intomainfrom
feat/remove-legacy-secret-messages
Feb 6, 2026
Merged

feat: remove legacy secret message types#51
iduartgomez merged 1 commit intomainfrom
feat/remove-legacy-secret-messages

Conversation

@iduartgomez
Copy link
Contributor

Problem

Issue #1500: GetSecretRequest appeared in InboundDelegateMsg despite delegates only sending requests, not receiving them. The old async message round-trip pattern (GetSecretRequest -> GetSecretResponse) was architecturally wrong and has been fully superseded by synchronous host functions (DelegateCtx::get_secret(), set_secret(), etc.) introduced in commit 891415c2.

Solution

Remove all legacy secret message types:

  • Structs removed: GetSecretRequest, GetSecretResponse, SetSecretRequest
  • Enum variants removed: from InboundDelegateMsg, OutboundDelegateMsg, and DelegateRequest
  • FlatBuffers schemas cleaned: removed tables and union entries from common.fbs, client_request.fbs, host_response.fbs
  • Serialization code removed: FBS encode/decode paths for the removed types

SecretsId is kept — it's used by the new host functions in native_api.rs and secrets_store.rs.

Version bumped to 0.1.34.

Testing

  • cargo fmt && cargo clippy --all-targets --all-features — clean
  • cargo test — 6 passed, 0 failed

Fixes

Closes #1500

Commit 891415c2 introduced synchronous host functions (DelegateCtx::get_secret(),
set_secret(), etc.) that replace the old async message round-trip pattern
(GetSecretRequest -> GetSecretResponse). This removes all legacy types:

- GetSecretRequest, GetSecretResponse, SetSecretRequest structs
- Their variants from InboundDelegateMsg and OutboundDelegateMsg enums
- DelegateRequest::GetSecretRequest variant
- FlatBuffers schema entries and generated code
- All associated serialization/deserialization code

SecretsId is kept as it's used by the new host functions.

Bumps version to 0.1.34.

Closes #1500
@iduartgomez iduartgomez merged commit c874602 into main Feb 6, 2026
8 of 9 checks passed
@iduartgomez iduartgomez deleted the feat/remove-legacy-secret-messages branch February 6, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant