Skip to content

Regression: PulsarAuthorizationProvider initialization #12272

@EronWright

Description

@EronWright

Describe the bug
Existing implementations of AuthorizationProvider that extend PulsarAuthorizationProvider may regress following PR #12064. The initialization method is not called.

The reason seems to be that PulsarAuthorizationProvider::initialize(ServiceConfiguration, PulsarResources) does not call PulsarAuthorizationProvider::initialize(ServiceConfiguration, ConfigurationCacheService). In other words, the PulsarAuthorizationProvider defeats the back-compat logic in AuthorizationProvider.

To Reproduce
Steps to reproduce the behavior: use MultiRolesTokenAuthorizationProvider or AuthorizationProviderOAuth. Observe that the provider is not initialized.

Expected behavior
Initialization of authorization provider.

Metadata

Metadata

Assignees

Labels

type/bugThe PR fixed a bug or issue reported a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions