From 16a38f97183e4cbaf95c510c85d61f5a45873f4b Mon Sep 17 00:00:00 2001 From: bndw Date: Sun, 15 Feb 2026 10:19:39 -0800 Subject: fix: add YAML tags to AuthOperationConfig The AuthOperationConfig struct was missing YAML tags, causing the config loader to not properly parse allowed_npubs from YAML. This was causing TestNpubNormalization to fail with an index out of range panic because AllowedNpubs was always empty. --- internal/auth/interceptor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/auth/interceptor.go b/internal/auth/interceptor.go index 67450ce..2633adb 100644 --- a/internal/auth/interceptor.go +++ b/internal/auth/interceptor.go @@ -26,8 +26,8 @@ type InterceptorOptions struct { } type AuthOperationConfig struct { - Enabled bool - AllowedNpubs []string + Enabled bool `yaml:"enabled"` + AllowedNpubs []string `yaml:"allowed_npubs"` } func DefaultInterceptorOptions() *InterceptorOptions { -- cgit v1.2.3