[
https://issues.apache.org/jira/browse/RANGER-5428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bhavesh Amre updated RANGER-5428:
---------------------------------
Description:
*Current Behavior*
When a security zone is deleted in Apache Ranger, all associated datashares are
automatically deleted through the `deleteAllGdsObjectsForSecurityZone()`
method. This cascading deletion occurs even when the datashare is actively
assigned to one or more datasets and some other scenarios.
*Steps To Reproduce*
1. Create a security zone with resources:
- Database: `vehicle`
- Table: `cars`
- Column: `*`
2. Create a datashare with resources and default 'select' privilege:
- Database: `vehicle`
- Table: `cars`
- Column: `*`
- Assign to the security zone created in step 1
3. Create a dataset with policy for user 'hrt_1' having '_READ' permission
4. Add the datashare to the dataset and activate it (status: ACTIVE)
5. Delete the security zone
{*}Result{*}: The datashare is deleted along with the security zone
was:
*Current Behavior*
When a security zone is deleted in Apache Ranger, all associated datashares are
automatically deleted through the `deleteAllGdsObjectsForSecurityZone()`
method. This cascading deletion occurs even when the datashare is actively
assigned to one or more datasets and some other scenarios.
*Steps To Reproduce*
1. Create a security zone with resources:
- Database: `vehicle`
- Table: `cars`
- Column: `*`
2. Create a datashare with resources and default 'select' privilege:
- Database: `vehicle`
- Table: `cars`
- Column: `*`
- Assign to the security zone created in step 1
3. Create a dataset with policy for user 'hrt_1' having '_READ' permission
4. Add the datashare to the dataset and activate it (status: ACTIVE)
5. Delete the security zone
{*}Result{*}: The datashare is deleted along with the security zone
{*}Approach Doc{*}:
[Doc|http:///docs.google.com/document/d/15witMqihJGBhCgbnn3tM-56wtAZtkTGjXCxPVat6CUw/edit?tab=t.0]
> [GDS] Datashare is getting deleted when security zone is deleted assigned in
> datashare
> --------------------------------------------------------------------------------------
>
> Key: RANGER-5428
> URL: https://issues.apache.org/jira/browse/RANGER-5428
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Reporter: Bhavesh Amre
> Assignee: Bhavesh Amre
> Priority: Major
>
> *Current Behavior*
> When a security zone is deleted in Apache Ranger, all associated datashares
> are automatically deleted through the `deleteAllGdsObjectsForSecurityZone()`
> method. This cascading deletion occurs even when the datashare is actively
> assigned to one or more datasets and some other scenarios.
> *Steps To Reproduce*
> 1. Create a security zone with resources:
> - Database: `vehicle`
> - Table: `cars`
> - Column: `*`
> 2. Create a datashare with resources and default 'select' privilege:
> - Database: `vehicle`
> - Table: `cars`
> - Column: `*`
> - Assign to the security zone created in step 1
> 3. Create a dataset with policy for user 'hrt_1' having '_READ' permission
> 4. Add the datashare to the dataset and activate it (status: ACTIVE)
> 5. Delete the security zone
> {*}Result{*}: The datashare is deleted along with the security zone
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)