feat: add grpc version header to ensure client and server match #1617

Merged
thesimplekid merged 1 commit from grpc_versioning into main 2026-02-12 13:33:56 +00:00
thesimplekid commented 2026-02-10 12:27:36 +00:00 (Migrated from github.com)

This change adds a gprc injector that adds a version header to each grpc request. This is then checked by the server to make sure the client and server are compatible versions. When the grpc proto file is changed we MUST update the version used in the header.

Description


closes: https://github.com/cashubtc/cdk/issues/1547

Notes to the reviewers


Suggested CHANGELOG Updates

CHANGED

ADDED

REMOVED

FIXED


Checklist

This change adds a gprc injector that adds a version header to each grpc request. This is then checked by the server to make sure the client and server are compatible versions. When the grpc proto file is changed we **MUST** update the version used in the header. ### Description <!-- Describe the purpose of this PR, what's being adding and/or fixed --> ----- closes: https://github.com/cashubtc/cdk/issues/1547 ### Notes to the reviewers <!-- In this section you can include notes directed to the reviewers, like explaining why some parts of the PR were done in a specific way --> ----- ### Suggested [CHANGELOG](https://github.com/cashubtc/cdk/blob/main/CHANGELOG.md) Updates <!-- Please do not edit the actual changelog but note what you changed here. --> #### CHANGED #### ADDED #### REMOVED #### FIXED ---- ### Checklist * [ ] I followed the [code style guidelines](https://github.com/cashubtc/cdk/blob/main/CODE_STYLE.md) * [ ] I ran `just final-check` before committing
crodas (Migrated from github.com) reviewed 2026-02-10 12:52:57 +00:00
crodas (Migrated from github.com) approved these changes 2026-02-10 19:39:43 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cashubtc/cdk!1617
No description provided.