Skip to content

fix: persist empty API key provider allowlists as JSON arrays - #36

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/api-key-empty-providers
Aug 29, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
fix/api-key-empty-providers

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Creating a named key with providers: [] stored JSON null.
  • Normalize empty allowlists to [] so create/list responses stay arrays.

Caught while exercising the us1 dev-keys container on 127.0.0.1:3011.

Test plan

  • go test ./internal/accounts ./internal/api
  • On us1 dev: POST /api/keys with providers: [] writes [] in SQLite

Creating a client key with no providers stored JSON null. Keep the
empty allowlist as [] so create/list responses stay arrays.
@caigee-cmd
caigee-cmd merged commit 081866a into main Aug 29, 2026
6 checks passed
@caigee-cmd
caigee-cmd deleted the fix/api-key-empty-providers branch September 19, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant