Skip to content

Commit

Permalink
Merge pull request #1060 from Permify/bypass-health-auth
Browse files Browse the repository at this point in the history
feat: bypass health authn
  • Loading branch information
tolgaOzen committed Feb 17, 2024
2 parents 6fcdf1c + 32ddfd6 commit cf907bd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Permify API",
"description": "Permify is an open source authorization service for creating fine-grained and scalable authorization systems.",
"version": "v0.7.3",
"version": "v0.7.4",
"contact": {
"name": "API Support",
"url": "https://github.com/Permify/permify/issues",
Expand Down
2 changes: 1 addition & 1 deletion internal/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var Identifier = ""
*/
const (
// Version is the last release of the Permify (e.g. v0.1.0)
Version = "v0.7.3"
Version = "v0.7.4"

// Banner is the view for terminal.
Banner = `
Expand Down
5 changes: 5 additions & 0 deletions internal/servers/healthServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ func (s *HealthServer) Watch(_ *health.HealthCheckRequest, _ health.Health_Watch
// Example of how to register both methods but only implement the Check method.
return status.Error(codes.Unimplemented, "unimplemented")
}

// AuthFuncOverride is called instead of authn.
func (s *HealthServer) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error) {
return ctx, nil
}
2 changes: 1 addition & 1 deletion pkg/pb/base/v1/openapi.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/base/v1/openapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Permify API";
description: "Permify is an open source authorization service for creating fine-grained and scalable authorization systems.";
version: "v0.7.3";
version: "v0.7.4";
contact: {
name: "API Support";
url: "https://github.com/Permify/permify/issues";
Expand Down

0 comments on commit cf907bd

Please sign in to comment.