Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

spark-security Ranger plugin is not masking when a function is used around the column #403

@harsha-tenneti

Description

@harsha-tenneti

When a column has masking policies configured and the column is called inside a function. The output of the function is not returning masked data.

For example, let's say if a column abc from table default_table has HASH_MASK policy configured for a user XYZ. Below are a couple of queries where the user might get actual abc value instead of masked value.

select substr(abc, 0, 100000000000)  from default_table
select concat(abc, '-', 'dummy') from default_table

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions