Skip to content

fix(auth): update privilege check to allow wildcard for database name#35376

Open
tomchon wants to merge 1 commit into
release/ver-3.4.1.9from
fix/TS-7002697409-main-github-3.4.1.9
Open

fix(auth): update privilege check to allow wildcard for database name#35376
tomchon wants to merge 1 commit into
release/ver-3.4.1.9from
fix/TS-7002697409-main-github-3.4.1.9

Conversation

@tomchon
Copy link
Copy Markdown
Contributor

@tomchon tomchon commented Jun 3, 2026

Description

Issue(s)

  • Close/close/Fix/fix/Resolve/resolve: Issue Link

Checklist

Please check the items in the checklist if applicable.

  • Is the user manual updated?
  • Are the test cases passed and automated?
  • Is there no significant decrease in test coverage?

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies ctgChkSetBasicAuthRes in ctgUtil.c to pass "" instead of NULL as the table name parameter to privHasObjPrivilege. The reviewer noted that unconditionally passing "" will trigger error logs for database-level privileges and suggested conditionally passing NULL or "*" based on privInfo.objLevel to avoid flooding the error log.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread source/libs/catalog/src/ctgUtil.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants