Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wasm): add a startup check for missing filters #13764

Merged
merged 1 commit into from
Oct 23, 2024

Commits on Oct 23, 2024

  1. fix(wasm): add a startup check for missing filters

    This adds a check during `init` that will prevent Kong from starting if
    any filter chain entities are found in the database using a filter that
    is not installed. Example:
    
    > Error: ./kong/cmd/start.lua:99: nginx: [error] init_by_lua error: /path/to/kong/init.lua:750: [wasm]: found one or more filter chain entities with filters that are not enabled/installed:
    > filter chain: 9e0b56d6-0e8c-469f-bf15-142debdd5d05, filter: #1 (response_transformer)
    > filter chain: 9e0b56d6-0e8c-469f-bf15-142debdd5d05, filter: #3 (response_transformer)
    
    Previously, this condition would not be caught until the Wasm state is
    built during `init_worker`. This change brings Wasm more in line with the
    behavior of the plugins iterator.
    flrgh committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    8f107b2 View commit details
    Browse the repository at this point in the history