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

RANGER-5130:DatSet policies fail to authorize when condition expression is present #528

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rameeshm
Copy link
Contributor

@rameeshm rameeshm commented Feb 6, 2025

DatSet policies fail to authorize when condition expression is present. This happens if the DataSet / Shares is getting created via Grant API

What changes were proposed in this pull request?

Update the condition created via Grant API of GdsREST call to "validitySchedule" type. In this way the create condition will be evaluated by RangerValidityScheduleConditionEvaluator.

How was this patch tested?

Tested in local VM via invoking Grant API with policy condition of "conditions":[{"type":"validitySchedule","values":["{"startTime":"1970/01/01 00:00:00","endTime":"2025/03/08 00:35:28","timeZone":"UTC"}"]}]

@rameeshm rameeshm requested a review from mneethiraj February 6, 2025 01:15
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