Skip to content

Conversation

Subham-KRLX
Copy link

Fixes #2306

Allow principals to list tables/namespaces/views they have access to without requiring the overly broad CATALOG_MANAGE_CONTENT permission.

Changes:

  • Modified privilege mappings in PolarisAuthorizerImpl
  • Removed CATALOG_MANAGE_CONTENT from TABLE_LIST, NAMESPACE_LIST, and VIEW_LIST
  • Maintains backward compatibility

Testing:

  • Core module tests pass
  • Integration test failures are environment-related (Docker/JDBC config)

Subham-KRLX and others added 9 commits August 5, 2025 19:07
…kstart link, update quickstart.md and remove redundant binary doc
removing blank spaces.
updating the link.
removing the bash commands which are not in use.
Allow principals to list tables/namespaces/views they have access to without
requiring the overly broad CATALOG_MANAGE_CONTENT permission.

Fixes apache#2306
Copy link
Contributor

@adutra adutra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Subham-KRLX for working on this. I think however that we need to clarify the intent of the change. See my comment here:

#2306 (comment)

@@ -177,7 +177,6 @@ public class PolarisAuthorizerImpl implements PolarisAuthorizer {
SUPER_PRIVILEGES.putAll(
NAMESPACE_LIST,
List.of(
CATALOG_MANAGE_CONTENT,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is effectively achieving the opposite: you are denying NAMESPACE_LIST to principals having CATALOG_MANAGE_CONTENT.

@@ -23,3 +23,101 @@ weight: 101
build:
render: never
---

# Getting Started with Apache Polaris Binary Distribution
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an unrelated change?

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.

A principal should be able to list the table it has access to
2 participants