From d1f0d5046fba813ee3229a7c4d54bce2be7123c1 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 2 Jul 2025 16:19:50 -0600 Subject: chore: fix AUTHZD_HOST value --- pkg/authz/server.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkg') diff --git a/pkg/authz/server.go b/pkg/authz/server.go index 4728182..05580b0 100644 --- a/pkg/authz/server.go +++ b/pkg/authz/server.go @@ -29,8 +29,17 @@ func New(ctx context.Context, options ...grpc.ServerOption) *Server { connection := Connection.From(ctx) if x.IsZero(connection) { + pls.LogNow(ctx, log.Fields{"remote-authzd": "not connected"}) + pls.LogNow(ctx, log.Fields{"authzd": map[string]string{ + "target": "unknown", + "state": "invalid", + }}) auth.RegisterAuthorizationServer(server, NewCheckService(nil)) } else { + pls.LogNow(ctx, log.Fields{"authzd": map[string]string{ + "target": connection.CanonicalTarget(), + "state": connection.GetState().String(), + }}) auth.RegisterAuthorizationServer( server, NewCheckService( -- cgit v1.2.3