Skip to content

Commit 3651b72

Browse files
author
Bojan Djurkovic
committed
backend: initial add of v1 dataplane api proto and setup for security roles API
1 parent f3496d7 commit 3651b72

16 files changed

Lines changed: 4463 additions & 7725 deletions

File tree

backend/pkg/api/routes.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ func (api *API) setupConnectWithGRPCGateway(r chi.Router) {
175175
dataplanev1connect.TransformServiceName: transformSvcV1,
176176
dataplanev1connect.KafkaConnectServiceName: kafkaConnectSvcV1,
177177
dataplanev1connect.CloudStorageServiceName: dataplanev1connect.UnimplementedCloudStorageServiceHandler{},
178+
dataplanev1connect.SecurityServiceName: dataplanev1connect.UnimplementedSecurityServiceHandler{},
178179
},
179180
})
180181

@@ -284,6 +285,9 @@ func (api *API) setupConnectWithGRPCGateway(r chi.Router) {
284285
cloudStorageSvcPathV1, cloudStorageSvcHandlerV1 := dataplanev1connect.NewCloudStorageServiceHandler(
285286
hookOutput.Services[dataplanev1connect.CloudStorageServiceName].(dataplanev1connect.CloudStorageServiceHandler),
286287
connect.WithInterceptors(hookOutput.Interceptors...))
288+
securitySvcPathV1, securitySvcHandlerV1 := dataplanev1connect.NewSecurityServiceHandler(
289+
hookOutput.Services[dataplanev1connect.SecurityServiceName].(dataplanev1connect.SecurityServiceHandler),
290+
connect.WithInterceptors(hookOutput.Interceptors...))
287291

288292
ossServices := []ConnectService{
289293
{
@@ -406,6 +410,11 @@ func (api *API) setupConnectWithGRPCGateway(r chi.Router) {
406410
MountPath: consoleSecretsServicePath,
407411
Handler: consoleSecretsServiceHandler,
408412
},
413+
{
414+
ServiceName: dataplanev1connect.SecurityServiceName,
415+
MountPath: securitySvcPathV1,
416+
Handler: securitySvcHandlerV1,
417+
},
409418
}
410419

411420
// Order matters. OSS services first, so Enterprise handlers override OSS.

backend/pkg/protogen/redpanda/api/common/v1/errordetails.pb.go

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)