Skip to content

Commit 2d68b8f

Browse files
pitabwireclaude
andcommitted
refactor: migrate Keto authorizer from HTTP to gRPC SDK
Replace the raw HTTP implementation with the official Ory Keto gRPC SDK (github.com/ory/keto/proto). This uses typed proto messages and transactional writes instead of manual URL construction and JSON parsing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d40b7c3 commit 2d68b8f

File tree

6 files changed

+171
-291
lines changed

6 files changed

+171
-291
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ require (
1616
github.com/lmittmann/tint v1.1.3
1717
github.com/nats-io/nats.go v1.48.0
1818
github.com/nicksnyder/go-i18n/v2 v2.6.1
19+
github.com/ory/keto/proto v0.13.0-alpha.0
1920
github.com/panjf2000/ants/v2 v2.11.4
2021
github.com/pitabwire/natspubsub v0.7.12
2122
github.com/pitabwire/util v0.4.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8
180180
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
181181
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
182182
github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
183+
github.com/ory/keto/proto v0.13.0-alpha.0 h1:9ZzjDbaBgriHGVC8fUJKD1pDqQ9nHEFOO3bT971FfBY=
184+
github.com/ory/keto/proto v0.13.0-alpha.0/go.mod h1:6RagCXA7X1hhFSVjcy13ruIo8Dq/nj4J0mcN92qL+hY=
183185
github.com/panjf2000/ants/v2 v2.11.4 h1:UJQbtN1jIcI5CYNocTj0fuAUYvsLjPoYi0YuhqV/Y48=
184186
github.com/panjf2000/ants/v2 v2.11.4/go.mod h1:8u92CYMUc6gyvTIw8Ru7Mt7+/ESnJahz5EVtqfrilek=
185187
github.com/pitabwire/natspubsub v0.7.12 h1:C2LlsLr9EHH3VtbFV8dZRjPbCjhd6Pq7odOw+f8dSTc=

0 commit comments

Comments
 (0)