Skip to content

feat(sdk): make SDK caches configurable with audit logging and central flush #3916

Description

@eugenioenko

Motivation

Both kasKeyCache and kasAllowlistCache use hardcoded 5-minute TTLs with no configurability, no central flush mechanism, and no audit logging for cache hits/misses. Customer environments need the ability to configure, manage, and flush these caches.

Raised in #3898 by @jrschumacher.

Requirements

  • Configurable TTL for kasKeyCache and kasAllowlistCache
  • Central way to flush/invalidate caches
  • Audit logging for cache hits and misses
  • Consistent behavior across both caches

Related: #3899 (mutex/concurrency safety for both caches)

Notes

https://github.com/opentdf/web-sdk/ and https://github.com/opentdf/java-sdk/ both have the same issues with cache.
In case of WebSDK, Key Cache doesn't even have a TTL

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions