Skip to content

[Bug]: Review access controls for SQL file operations #30185

Closed

Description

@XuPeng-SH

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

a53390c

Actual Behavior

SQL file operations need a review of authorization and access boundaries. Current behavior may allow access beyond the intended scope of a database user.

Expected Behavior

File operations should consistently enforce user permissions and permitted access scope.

Steps to Reproduce

Identified through code review. Runtime validation is pending; detailed reproduction information is not included here.

Activity

  1. added
    kind/bug
    on Oct 14, 2026
  2. added 10 commits that reference this issue on Oct 15, 2026
    b9f720f
    62caf9c
    479495a
    7dadde0
    70f9296
    19eb35b
    5aed41e
    18d5335
    4e32549
    c914080
  3. XuPeng-SH commented on Oct 17, 2026

    @XuPeng-SH
    ContributorAuthor

    验证通过,转测 @Ariznawlll。

    本轮复核关联 PR #30212、#30433,实测 main 提交 aa4b6eddfdad54d11be6fd75a5675eb9801f6690(Linux/amd64、Go 1.27.1;使用对应 native 构建)。

    main 与 4.2-dev 的 SQL 文件授权核心场景均通过:TestSQLFileAccessAuthorization、TestSQLFileAccessTenantStageCDC、TestSQLFileAccessPeerPersistence;底层文件服务/Datalink 授权、资源关闭、当前身份传播回归通过。4.2-dev 实测提交为 c914080bba57dd17fb86be300c22b9be43cc2b61。使用隔离夹具验证拒绝与合法访问,没有操作生产文件。GPU/CAGRA/IVFPQ 的原生存储路径未启用所需 GPU 构建,不能据此声称该硬件路径也已验证。

    本次保持 OPEN,请测试侧在目标交付版本完成验收后决定关闭。

  4. Ariznawlll commented on Oct 29, 2026

    @Ariznawlll
    Collaborator

    结论

    测试通过。本次按已确认范围完成 SQL 文件权限及 GPU 原生索引存储路径验收。

    关键证据

    • 2026-10-29 使用 main@1cea057047b7485736421842612c38d5667152ef GPU 镜像,单 CN、单 NVIDIA RTX 4090;镜像 digest 为 sha256:5e83d01ed5605d6a0ef369bcc3a79344ebce40e42d616930fa87ce699f159dcc。该版本不是本评论发布时最新 main。
    • MOTR #284 的 SQL 文件权限场景在该服务 3/3 通过,覆盖权限拒绝、角色切换、正常对照与清理;未使用真实业务文件。
    • GPU CAGRA/IVFPQ 租户索引创建与查询、持久化分块和 MD5、缓存驱逐后的冷加载、非法向量及重复主键拒绝后的数据不变、索引重建和权限边界均 3/3 通过;测试租户和库已清理。GPU 回归见 MOTR #292 及其测试代码。
    • Stage、CDC、peer persistence 的既有研发验证见研发评论,不是本次 GPU 测试结果。

    待解决点

    • 本次未复跑 Stage、CDC、peer persistence 全部集成场景或多 CN。GPU 回归尚未接入或运行 TKE GPU 线路;MOTR CI 因 Actions 预算未启动,完整 suite 未运行。上述范围与版本限制按测试侧确认记录。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions