Zanzana: Disable broken OpenFGA health check (#99818)

* Zanzana: Disable broken OpenFGA health check

* simplify return

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
This commit is contained in:
Alexander Zobnin 2025-01-30 17:42:48 +01:00 committed by GitHub
parent 3d19a778ba
commit a95005eab5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,6 +10,7 @@ import (
authzv1 "github.com/grafana/authlib/authz/proto/v1"
openfgav1 "github.com/openfga/api/proto/openfga/v1"
"go.opentelemetry.io/otel"
"google.golang.org/protobuf/types/known/wrapperspb"
dashboardalpha1 "github.com/grafana/grafana/pkg/apis/dashboard/v2alpha1"
"github.com/grafana/grafana/pkg/infra/localcache"
@ -69,7 +70,12 @@ func NewServer(cfg setting.ZanzanaServerSettings, openfga OpenFGAServer, logger
}
func (s *Server) IsHealthy(ctx context.Context) (bool, error) {
return s.openfga.IsReady(ctx)
// FIXME: get back to openfga.IsReady() when issue is fixed
// https://github.com/openfga/openfga/issues/2251
_, err := s.openfga.ListStores(ctx, &openfgav1.ListStoresRequest{
PageSize: wrapperspb.Int32(1),
})
return err == nil, nil
}
func (s *Server) getContextuals(ctx context.Context, subject string) (*openfgav1.ContextualTupleKeys, error) {