Skip to content

branch-4.1: [feat](auth) support querying authentication integrations from system table (#61246)#61501

Closed
CalvinKirs wants to merge 1 commit intoapache:branch-4.1from
CalvinKirs:pick-pr61246-branch-4.1
Closed

branch-4.1: [feat](auth) support querying authentication integrations from system table (#61246)#61501
CalvinKirs wants to merge 1 commit intoapache:branch-4.1from
CalvinKirs:pick-pr61246-branch-4.1

Conversation

@CalvinKirs
Copy link
Member

…m table (apache#61246)

`AUTHENTICATION INTEGRATION` currently has no system-table query entry,
so users cannot inspect existing integrations through SQL in a
consistent way with other metadata objects.

At the same time, upstream has already introduced unified audit metadata
for `AuthenticationIntegrationMeta`, including:
  - `createUser`
  - `createTime`
  - `alterUser`
  - `modifyTime`

But these fields are not exposed through a queryable metadata path yet.

This PR adds a system table for querying authentication integrations and
synchronizes the query result with the new audit metadata.

  ### What is changed

  - Add `information_schema.authentication_integrations`
  - Wire the schema table through FE/BE/Thrift
  - Expose the following columns:
    - `NAME`
    - `TYPE`
    - `PROPERTIES`
    - `COMMENT`
    - `CREATE_USER`
    - `CREATE_TIME`
    - `ALTER_USER`
    - `MODIFY_TIME`
  - Mask sensitive properties in query results
    - existing password/secret/token/keytab-style keys remain masked
    - keys with prefix `secret.` are also masked
- Add FE unit tests and regression coverage for querying this system
table

  ### Example

  ```sql
  SELECT *
  FROM information_schema.authentication_integrations;

  SELECT
      name,
      type,
      comment,
      create_user,
      create_time,
      alter_user,
      modify_time,
      properties
  FROM information_schema.authentication_integrations
  ORDER BY name;

  ### Why is this safe?

  - This change only adds metadata query capability
- It does not change existing CREATE/ALTER/DROP AUTHENTICATION
INTEGRATION semantics
- Sensitive properties are masked only in display/query results, not
modified in persisted metadata

  ### Test

  - FE unit test:
      - org.apache.doris.service.FrontendServiceImplTest
      - org.apache.doris.catalog.SchemaTableTest
  - Regression test:
-
regression-test/suites/auth_p0/test_authentication_integration_auth.groovy

(cherry picked from commit 2edc65c)
@CalvinKirs CalvinKirs requested a review from yiguolei as a code owner March 19, 2026 02:39
@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@CalvinKirs
Copy link
Member Author

run buildall

@CalvinKirs CalvinKirs changed the title [feat](auth) support querying authentication integrations from system table (#61246) branch-4.1: [feat](auth) support querying authentication integrations from system table (#61246) Mar 19, 2026
@doris-robot
Copy link

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 79.06% (1786/2259)
Line Coverage 64.40% (31933/49583)
Region Coverage 65.21% (15975/24499)
Branch Coverage 55.81% (8503/15236)

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 0.00% (0/88) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.82% (19393/36718)
Line Coverage 36.22% (181385/500799)
Region Coverage 32.67% (140127/428864)
Branch Coverage 33.67% (61007/181165)

@CalvinKirs CalvinKirs closed this Mar 19, 2026
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.

3 participants