Skip to content

Conversation

@kumaab
Copy link
Contributor

@kumaab kumaab commented Jan 30, 2026

What changes were proposed in this pull request?

Update RangerRESTClient to support passing JWT if available while making calls.

Also, update callers: services tagsync and usersync.

JWT can be fetched from either of the below sources:

  • env variable
  • file
  • credential file

How was this patch tested?

Following log is seen in both tagsync and usersync:

30 Jan 2026 23:43:27  INFO o.a.r.p.u.RangerRESTClient [main] - 776 Registering JWT auth header in REST client

using these configs for tagsync :

<property>
        <name>ranger.tagsync.policy.rest.client.jwt.source</name>
        <value>env</value>
</property>
<property>
        <name>ranger.tagsync.policy.rest.client.jwt.env</name>
        <value>JWT_ENV</value>
</property>

and these configs for usersync:

<property>
        <name>ranger.usersync.policy.rest.client.jwt.source</name>
        <value>file</value>
</property>
<property>
        <name>ranger.usersync.policy.rest.client.jwt.file</name>
        <value>/opt/ranger/usersync/conf/jwtFile</value>
</property>

@kumaab kumaab self-assigned this Jan 30, 2026
@kumaab kumaab requested a review from mneethiraj January 30, 2026 23:03
@mneethiraj mneethiraj merged commit f98a149 into master Feb 1, 2026
7 of 8 checks passed
@kumaab kumaab deleted the ranger_5475 branch February 1, 2026 03:43
mneethiraj pushed a commit that referenced this pull request Feb 1, 2026
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