Skip to content

Commit

Permalink
fix(pdk/vault): handle crud events for dbless
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Sep 13, 2024
1 parent 21ed4b6 commit cc28160
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 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,9 +1455,7 @@ local function new(self)

initialized = true

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

local _, err = self.timer:named_every("secret-rotation", ROTATION_INTERVAL, rotate_secrets_timer)
if err then
Expand Down

0 comments on commit cc28160

Please sign in to comment.