Skip to content

Security filter chain changed for the invalidate endpoint in mofulith and what caching storage modes are supported? #4854

Description

@richard-salac

Describe the bug
Security filter chain for the modulith /auth/invalidate endpoint was unintentionally changed in #4818.

The invalidate endpoint is used in modulith only when caching storage mode other than infinispan is used. This is possible only in development environment because the modulith start.sh script validates the configuration (

validate_caching_storage_mode() {
storage_mode="${ZWE_components_caching_service_storage_mode:-${ZWE_configs_storage_mode}}"
storage_mode_lc=$(printf '%s' "${storage_mode}" | tr '[:upper:]' '[:lower:]')
if [ -n "${storage_mode}" ] && [ "${storage_mode_lc}" != "infinispan" ]; then
echo "API ML single service requires caching storage mode set to infinispan"
return 1
fi
}
)

Such configuration is not covered in tests.

Do we want to support other caching storage modes than infinispan in modulith (even for tests or development environment)? If yes, we should fix it and add an integration test configuration. Otherwise this is a dead code to be removed.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status
    Unplanned Bugs

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions