Skip to content

Commit 08525d6

Browse files
committed
Fix incorrect server.go path in gRPC services overview doc
Signed-off-by: Vanshika <pahalvanshikaa@gmail.com>
1 parent 3277647 commit 08525d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/content/en/docs-dev/contribution-guidelines/grpc-services-overview.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The Control Plane `server` component exposes three separate gRPC services. Each
2020
| `WebService` | PipeCD web browser client | Signed JWT (session) | `token` cookie |
2121
| `PipedService` | `piped` / `pipedv1` agent | Piped token | `authorization` metadata |
2222

23-
Each service is registered and started independently in `cmd/pipecd/server.go`, with its own port option (`apiPort`, `webAPIPort`, `pipedAPIPort`) and its own auth interceptor (`rpc.WithAPIKeyAuthUnaryInterceptor`, `rpc.WithJWTAuthUnaryInterceptor`, `rpc.WithPipedTokenAuthUnaryInterceptor`). A request that reaches the wrong port, or presents the wrong credential type for that port, is rejected before it reaches any handler code.
23+
Each service is registered and started independently in `cmd/controlplane/server.go`, with its own port option (`apiPort`, `webAPIPort`, `pipedAPIPort`) and its own auth interceptor (`rpc.WithAPIKeyAuthUnaryInterceptor`, `rpc.WithJWTAuthUnaryInterceptor`, `rpc.WithPipedTokenAuthUnaryInterceptor`). A request that reaches the wrong port, or presents the wrong credential type for that port, is rejected before it reaches any handler code.
2424

2525
Every unary request also passes through `rpc.WithRequestValidationUnaryInterceptor()`: if the request message implements a `Validate() error` method (generated from the `(validate.rules)` field options declared in the `.proto` files), that validation runs first, and a failure short-circuits the call with `InvalidArgument`.
2626

0 commit comments

Comments
 (0)