Skip to content

Add active ACL inspection functions - #37

Open
glasstiger wants to merge 1 commit into
masterfrom
ia_active_permissions
Open

glasstiger wants to merge 1 commit into
masterfrom
ia_active_permissions

Conversation

@glasstiger

Copy link
Copy Markdown

Summary

Register the new QuestDB Enterprise ACL inspection functions as table-valued functions:

  • active_permissions() returns effective permissions across persisted users, groups, and service accounts, including group inheritance.
  • active_grants() returns direct grants across those entities.

Both functions are added to the CURSOR section of tableValuedFunctions, in alphabetical order. This makes them available for autocomplete in table-source contexts such as SELECT * FROM active_permissions(), while keeping them out of scalar-expression suggestions.

Autocomplete regression tests cover both the positive FROM context and the negative SELECT expression context.

Dependencies

Verification

  • corepack yarn test: 15,105 tests passed, 1 skipped
  • corepack yarn vitest run tests/autocomplete.test.ts -t "active": 2 tests passed
  • corepack yarn typecheck
  • corepack yarn lint

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.

1 participant