internal/handlers: add credential library pagination

This commit is contained in:
Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:20 -08:00
1 parent c6e80dbe32
commit 6b03363eb8
7 files changed
+958 -321

No files matched your search

+6 -1
View File
@@ -273,7 +273,12 @@ func (c *Controller) registerGrpcServices(s *grpc.Server) error {
services.RegisterCredentialStoreServiceServer(s, cs)
}
if _, ok := currentServices[services.CredentialLibraryService_ServiceDesc.ServiceName]; !ok {
cl, err := credentiallibraries.NewService(c.baseContext, c.VaultCredentialRepoFn, c.IamRepoFn)
cl, err := credentiallibraries.NewService(
c.baseContext,
c.IamRepoFn,
c.VaultCredentialRepoFn,
c.conf.RawConfig.Controller.MaxPageSize,
)
if err != nil {
return fmt.Errorf("failed to create credential library handler service: %w", err)
}