Skip to content

Commit

Permalink
fix(pdk/vault): handle crud events for dbless (#13663)
Browse files Browse the repository at this point in the history
* fix(pdk/vault): handle crud events for dbless

* check cluster_rpc

* fix mistake
  • Loading branch information
chronolaw authored Sep 20, 2024
1 parent 21ed4b6 commit 4af5287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/pdk/vault.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ local function new(self)
---
-- Initializes vault.
--
-- Registers event handlers (on non-dbless nodes) and starts a recurring secrets
-- Registers event handlers and starts a recurring secrets
-- rotation timer. It does nothing on control planes.
--
-- @local
Expand All @@ -1455,7 +1455,7 @@ local function new(self)

initialized = true

if self.configuration.database ~= "off" then
if self.configuration.database ~= "off" or self.configuration.cluster_rpc then
self.worker_events.register(handle_vault_crud_event, "crud", "vaults")
end

Expand Down

0 comments on commit 4af5287

Please sign in to comment.