Skip to content

rgw/s3vectors: support purging and remove the s3 backend - #71440

Closed
yuvalif wants to merge 1 commit into
ceph:wip-s3vectorfrom
yuvalif:wip-yuval-s3vectors-purge
Closed

yuvalif wants to merge 1 commit into
ceph:wip-s3vectorfrom
yuvalif:wip-yuval-s3vectors-purge

Conversation

@yuvalif

@yuvalif yuvalif commented Aug 31, 2026

Copy link
Copy Markdown
Contributor
  • making sure that user is not deleted when it has vector buckets
  • allow purging vector buckets with users's data
  • make sure that this works for accounts as well. for s3 backend where user credentials are needed, we take the credentials of the accoun't root user

Assisted-by: claude-code:claude-opus-5

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Comment thread src/rgw/driver/rados/rgw_sal_rados.cc Resolved
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Config Diff Tool Output

- removed: rgw_s3vector_s3_endpoint (rgw.yaml.in)
- removed: rgw_s3vector_s3_allow_http (rgw.yaml.in)
- removed: rgw_s3vector_s3_region (rgw.yaml.in)
! changed: rgw_s3vector_backend: old: ['local', 's3', 'rgw'] (rgw.yaml.in)
! changed: rgw_s3vector_backend: new: ['local', 'rgw'] (rgw.yaml.in)
! changed: rgw_s3vector_backend: old: Specifies the storage backend for S3 Vector (LanceDB). Use "local" for local filesystem storage, "s3" for external S3-compatible object storage, or "rgw" for RGW's internal Storage Abstraction Layer (same Ceph cluster). (rgw.yaml.in)
! changed: rgw_s3vector_backend: new: Specifies the storage backend for S3 Vector (LanceDB). Use "local" for local filesystem storage, or "rgw" for RGW's internal Storage Abstraction Layer (same Ceph cluster). (rgw.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@yuvalif

yuvalif commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

/config check ok

@yuvalif yuvalif changed the title rgw/s3vectors: purging vectorbucket when user is deleted rgw/s3vectors: support purging and remove the s3 backend Sep 2, 2026
@yuvalif
yuvalif marked this pull request as ready for review September 2, 2026 14:43
@yuvalif
yuvalif requested review from a team as code owners September 2, 2026 14:43
Comment thread src/rgw/rgw_rest_s3vector.cc Outdated

return 0;
return verify_s3_bucket_permission(
configuration.vector_bucket_name, rgw::IAM::s3All, y);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can these checks be more granular than rgw::IAM::s3All? i'm not actually sure how to write a policy that matches s3All. generally when ops require multiple permissions, we make multiple calls to verify_bucket_permission() etc

why does CreateVectorBucket require any permissions on the destination bucket? same with DeleteVectorBucket

for GetIndex and GetVectors, could those just map to s3ListBucket[Versions] and s3GetObject[Version]? at the very least, those shouldn't require write permissions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

CreateVectorBucket - probably dont need any permission check.
will verify the minimum required for each operation and create fine grained permission check.
note that because of how lancedb works, the mapping is sometimes not trivial (e.g. most write operators also do read and list, some deletion are just manifest writes etc.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

CreateVectorBucket also needs permissions. summary table added to commit

Comment thread src/rgw/rgw_account.cc Resolved
* remove the s3 backend option as it creates authentication issues
* purging vectorbucket when user is deleted
* making sure that user is not deleted when it has vector buckets
* allow purging vector buckets with users's data
* make sure that this works for accounts as well. for s3 backend where
  user credentials are needed
* performing fine grained permission checks per operation:
==================== ============================== =================
S3 Vectors operation RGW SAL operations             Permissions
==================== ============================== =================
CreateVectorBucket   list, put, put_cond            List, Put
CreateIndex          list, head, put, put_cond      List, Get, Put
PutVectors           list, head, get, put, put_cond List, Get, Put
DeleteVectors        list, head, get, put, put_cond List, Get, Put
GetVectors           list, head, get                List, Get
ListVectors          list, head, get                List, Get
QueryVectors         list, head, get                List, Get
GetIndex             list, head, get                List, Get
ListIndexes          list, head, get                List, Get
DeleteVectorBucket   list, head                     List, Get
DeleteIndex          list, head, delete             List, Get, Delete
==================== ============================== =================

Signed-off-by: Yuval Lifshitz <[email protected]>
Assisted-by: claude-code:claude-opus-5
@yuvalif
yuvalif force-pushed the wip-yuval-s3vectors-purge branch from c5f0e01 to b101537 Compare September 2, 2026 18:57
@yuvalif

yuvalif commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@yuvalif

yuvalif commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

cherry-picked to wip-s3vectors

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.

3 participants