diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-02 16:19:50 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-02 16:19:50 -0600 |
| commit | d1f0d5046fba813ee3229a7c4d54bce2be7123c1 (patch) | |
| tree | 0b8ebff4997ea1eefb7d032d6f716d095c39a9eb /pkg/authz | |
| parent | feca0a2a1680a0071e8223adcc861d8c0cc8aea9 (diff) | |
chore: fix AUTHZD_HOST value
Diffstat (limited to 'pkg/authz')
| -rw-r--r-- | pkg/authz/server.go | 9 |
1 files changed, 9 insertions, 0 deletions
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( |
