Skip to content

RANGER-5869: Ranger PDP and audit ingestor services to dynamically obtain authorized callers - Fix PDP Jersey registration - #1377

Merged
ramackri merged 1 commit into
apache:masterfrom
akash-gupta2813:akgupta/RANGER-5869
Nov 20, 2026
Merged

ramackri merged 1 commit into
apache:masterfrom
akash-gupta2813:akgupta/RANGER-5869

Conversation

@akash-gupta2813

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

registered PdpServiceAccountRefreshBootstrap on ResourceConfig; Jersey drops it as a non-provider, so startServiceAccountUsersRefresh() never ran (seen on AWC sarath ranger-pdp:2.0.0-b.157).
Start/stop refresh from RangerPdpREST @PostConstruct / @PreDestroy after static delegation init; remove the unused bootstrap class.
Jersey only treats register(SomeClass) as a JAX-RS provider (resource, Feature, filter, etc.). PdpServiceAccountRefreshBootstrap is a plain @singleton with javax @PostConstruct — no JAX-RS contract — so you get:
provider … PdpServiceAccountRefreshBootstrap … does not implement any provider interfaces … will be ignored
HK2 never instantiates it, so rangerPdpREST.startServiceAccountUsersRefresh() never runs despite serviceaccount.refresher.enabled=true.

How was this patch tested?

manual test

…tain authorized callers - Fix PDP Jersey registration

Co-authored-by: Cursor <cursoragent@cursor.com>
@ramackri
ramackri self-requested a review November 20, 2026 05:58
@ramackri
ramackri merged commit 7b4e5cb into apache:master Nov 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants