Skip to content

rpc,server: port server interceptors to drpc #148256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shaikzakiriitm
Copy link
Contributor

@shaikzakiriitm shaikzakiriitm commented Jun 13, 2025

As part of migration from grpc to drpc, we need to migrate all the server interceptors within the cockroachdb to their drpc variants.
Here, we move multiple interceptors 1)Stopper interceptor, 2)Metrics recorder, 3)Access control filtering interceptor. Existing metrics recorder logic is refactored with factory methods to generate two variants (grpc, drpc) of metrics interceptor.

Note: This pr uses the changes from cockroachdb/drpc#7

Epic: CRDB-49357
Fixes: #144373
Part of: CRDB-49359

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

As part of migration from grpc to drpc, we need to migrate
all the server interceptors within the cockroachdb to their drpc
variants.
Here, we move multiple interceptors 1)Stopper interceptor,
2)Metrics recorder, 3)Access control filtering interceptor.
Existing metrics recorder logic is refactored with factory methods
to generate two variants (grpc, drpc) of metrics interceptor.

Epic: CRDB-49357
Fixes: cockroachdb#144373
Part of: CRDB-49359

Release note: None
@shaikzakiriitm shaikzakiriitm force-pushed the port-server-interceptors branch from 9e4f9e8 to ee9e332 Compare June 13, 2025 15:13
As part of drpc migration, server side tracing interceptors
are ported to drpc as part of this change.
Common logic used in both grpc/drpc tracing server interceptors
are moved to tracing/utils.go for reusability.
Drpc tracing interceptor is injected into the drpc server.

Epic: CRDB-51562
Fixes: cockroachdb#148350
Part of: CRDB-49359

Release note: None
<what was there before: Previously, ...>
Adding authentication and authorization server interceptor for
drpc server.

Epic: CRDB-49353
Fixes: cockroachdb#144369
Part of: CRDB-49359

Release note: None
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.

server: implement metrics, filtering rules on server state interceptors in drpc
2 participants