You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2015/04/19 21:04:58 UTC

[jira] [Reopened] (RANGER-278) REST, Store: validation of policy/service/service-def

     [ https://issues.apache.org/jira/browse/RANGER-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Madhan Neethiraj reopened RANGER-278:
-------------------------------------

Policy validation fails while creating a Hive policy, due to missing resource 'udf'. Hive service-def has 2 resources, table and udf, at the same level. The validation should require only one of these resources to be provided.

> REST, Store: validation of policy/service/service-def
> -----------------------------------------------------
>
>                 Key: RANGER-278
>                 URL: https://issues.apache.org/jira/browse/RANGER-278
>             Project: Ranger
>          Issue Type: New Feature
>    Affects Versions: 0.5.0
>            Reporter: Alok Lal
>            Assignee: Alok Lal
>             Fix For: 0.5.0
>
>         Attachments: 0001-RANGER-278-Add-validation-for-policy-create-update-d.patch, 0001-RANGER-278-Add-validation-for-service-create-update-.patch, 0001-RANGER-278-move-validation-classes-under-org.apache..patch
>
>
> Policy/Service/ServiceDef validation should be added during create/update/delete operation. Here are some of the validations to add:
> - values are provided for all mandatory fields (names, resources, etc)
> - values are valid (for example: based on validationRegEx in the resource def, enum values, no duplicate names for service-def/service/policy-within-a-service)
> - ensure that user has permissions to create/update/view policy/service/service-def
> - check for conflicting/overlapping policies



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)