Skip to content

refactor(rpc): gRPC codegen should pass request metadata to handle()#2312

Merged
kkovaacs merged 5 commits into
nextfrom
krisztian/grpc-pass-request-metadata-to-handle-method
Jul 6, 2026
Merged

refactor(rpc): gRPC codegen should pass request metadata to handle()#2312
kkovaacs merged 5 commits into
nextfrom
krisztian/grpc-pass-request-metadata-to-handle-method

Conversation

@kkovaacs

@kkovaacs kkovaacs commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

As described in issue #2302 we now have quite a few gRPC method implementations where we're overriding the generated full() method just so that we have access to request metadata (client IP address, header values, etc.).

This PR changes the gRPC codegen so that the handle() method gets passed the gRPC request metadata (in addition to the decoded request).

Closes #2302

Changelog

changelog = "none"
reason    = "Internal change only."

Comment thread crates/proto/build.rs Outdated
Comment thread crates/rpc/src/server/api/subscription/proof.rs Outdated
Comment thread crates/rpc/src/server/api/subscription/block.rs Outdated
Comment thread crates/rpc/src/server/api/get_network_note_status.rs Outdated
Comment thread crates/rpc/src/server/api/submit_proven_tx.rs Outdated
@kkovaacs kkovaacs marked this pull request as ready for review July 3, 2026 11:48
@kkovaacs kkovaacs merged commit 3668bc6 into next Jul 6, 2026
25 checks passed
@kkovaacs kkovaacs deleted the krisztian/grpc-pass-request-metadata-to-handle-method branch July 6, 2026 06:47
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.

gRPC codegen should expose raw request

3 participants