Skip to content

Add Valkey datamodel backend#129

Merged
JaredHatfield merged 7 commits intomainfrom
copilot/add-valkey-backend-support
Feb 13, 2026
Merged

Add Valkey datamodel backend#129
JaredHatfield merged 7 commits intomainfrom
copilot/add-valkey-backend-support

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Adds a new datamodel-valkey module implementing all five repository interfaces backed by Valkey (Redis-compatible) using Spring Data Redis with Lettuce.

New module: datamodel-valkey

  • Repositories: ValkeyClientRepository, ValkeyAuthorizationRepository, ValkeyLoginStateRepository, ValkeyLoginCodeRepository, ValkeyJwkCacheRepository
  • Storage model: Redis Hashes for entities, Sorted Sets for client pagination, Sets for authorization indexes, TTL via EXPIREAT for ephemeral records (login state, login code, JWK cache)
  • Key schema:
    • sac:client:{clientId} / sac:clients (sorted set index)
    • sac:auth:{documentId} with subject/audience set indexes and lookup keys
    • sac:loginstate:{sessionId}, sac:logincode:{code}, sac:jwk:{url}:{kid} (all TTL-managed)
  • Activation: Spring profile datamodel-valkey

Integration points

  • server-manage/pom.xml, server-token/pom.xml — added datamodel-valkey as runtime dependency
  • Parent pom.xml — added module to default build

Configuration

spring.profiles.active=datamodel-valkey
spring.data.redis.host=localhost
spring.data.redis.port=6379

Docs

  • docs/modules/datamodel/valkey.md — module documentation with key schema and configuration reference
  • Updated index.md and mkdocs.yml navigation

Validated against real Valkey 9

  • Server-token: full client_credentials OAuth2 flow (token issuance, scope filtering, credential validation, JWT structure)
  • Server-manage: startup and GraphQL auth guard
  • Data persistence across restarts

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 5 commits February 12, 2026 23:44
Co-authored-by: JaredHatfield <208119+JaredHatfield@users.noreply.github.com>
… getLong, nullSafe methods

Co-authored-by: JaredHatfield <208119+JaredHatfield@users.noreply.github.com>
Co-authored-by: JaredHatfield <208119+JaredHatfield@users.noreply.github.com>
Co-authored-by: JaredHatfield <208119+JaredHatfield@users.noreply.github.com>
Co-authored-by: JaredHatfield <208119+JaredHatfield@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement Valkey backend support in data model Add Valkey datamodel backend Feb 13, 2026
Copilot AI requested a review from JaredHatfield February 13, 2026 00:08
@JaredHatfield JaredHatfield marked this pull request as ready for review February 13, 2026 00:29
@JaredHatfield JaredHatfield merged commit 69402f5 into main Feb 13, 2026
3 checks passed
@JaredHatfield JaredHatfield deleted the copilot/add-valkey-backend-support branch February 13, 2026 00:33
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.

2 participants