Alibaba Cloud OSS
Use the Alibaba Cloud OSS connector to index approved files from Object Storage Service. Create one connector per business knowledge directory, and restrict the RAM policy to the exact bucket and prefix that AIvis should read.
What You Need
OSS stores objects in a flat key space. Console folders are simulated by object-key prefixes and / delimiters. Granting access to a “folder” means granting access to every object whose key starts with that prefix.
Prepare Alibaba Cloud
- Sign in to Alibaba Cloud and open RAM.
- Create a RAM user dedicated to AIvis, such as
aivis-oss-reader. - Enable programmatic access and create an AccessKey pair for that RAM user.
- Save the AccessKey ID and AccessKey Secret immediately. Alibaba Cloud shows the AccessKey Secret only when the pair is created.
- Open the target OSS bucket and confirm its region, for example
cn-hangzhou. - Upload approved files under a dedicated prefix, for example
knowledge/.
Minimum RAM Policy
Grant only list and read access. The list permission is scoped by oss:Prefix; object reads are scoped by the object resource path.
Do not grant oss:PutObject, oss:DeleteObject, bucket administration, or broad oss:* permissions. If objects use server-side encryption with KMS, confirm whether the RAM identity also needs kms:Decrypt for reads.
Credential Fields
Create an Alibaba Cloud OSS credential in AIvis:
Rotate the key through RAM if it was shared, lost, or created with excessive permissions.
Connector Fields
The connector uses S3-compatible signed requests with virtual-hosted addressing. If your bucket is in a Chinese mainland region affected by Alibaba Cloud endpoint or CNAME policy changes, configure a valid custom endpoint and confirm it works from the AIvis worker network.
Verify
- Confirm the credential validates.
- Create the connector with a small prefix such as
knowledge/test/. - Run one index attempt and confirm only objects under that prefix appear.
- Search for a known title or sentence from an uploaded file.
- Confirm unselected prefixes and sensitive files are absent.
- Test as an unauthorized AIvis user and confirm private connector content is not searchable.