Browse Source
The bean condition also required sql.ttl.api_keys.ttl to be greater than zero, but that property is not defined in thingsboard.yml and defaulted to zero, so the bean was never created and expired API key rows were never removed. ApiKeysCleanUpService does not read a retention value: it deletes keys whose expiration time has already passed. Drop the unused property from the condition and gate the bean on sql.ttl.api_keys.enabled alone. Note that cleanup is now active by default on upgrade, since sql.ttl.api_keys.enabled defaults to true. Expired API keys are already rejected during authentication, so this only removes the stale rows.pull/16361/head
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue