S3 storage
Where: Menu → Manage → Knowledge sources → Connectors → Add connector → “S3 storage”
This connector reads documents from a bucket of Amazon S3 or of a compatible store: MinIO, Hetzner, IONOS, Scaleway, OVHcloud, Wasabi and others. It needs a key that may only list and read.
S3 knows no readers per file: every document is open to the whole audience of its source (For whom). Put documents for different audiences into different prefixes (folders) and add one source per prefix.
Who does what
Section titled “Who does what”| Step | Where | Who |
|---|---|---|
| A read-only key for the bucket | Your store’s console (AWS: IAM) | Whoever manages the store |
| Add the connector and its sources | The Academy, Manage → Knowledge sources | An administrator of your organisation |
1. Create a read-only key
Section titled “1. Create a read-only key”The key needs exactly two rights on the bucket: list it and read its objects.
Amazon S3: in IAM, create a user (or role) for the Academy with this policy, with your bucket’s name in place of docs-bucket, then create an access key for it:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:ListBucket", "Resource": "arn:aws:s3:::docs-bucket" }, { "Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::docs-bucket/*" } ]}Other stores: create an access key with read-only rights on the bucket, as the store’s console offers it (often called “read-only” or “viewer”). Copy the access key ID and the secret access key; the secret is usually shown once.
2. Add the connector in the Academy
Section titled “2. Add the connector in the Academy”- Manage → Knowledge sources, tab Connectors, Add connector, Kind: “S3 storage”.
- Where it runs: Run by the portal for a store on the internet. A store only reachable inside your network (e.g. your own MinIO) needs At your organisation.
- Name: e.g.
S3 documents. - Endpoint: empty for Amazon S3. Otherwise the store’s address with
https://, e.g.https://fsn1.your-objectstorage.com(Hetzner, Falkenstein). Run by the portal, it must be a public https address. - Region: the bucket’s region, e.g.
eu-central-1(the default). Other stores name theirs in their console (e.g.fsn1,de,fr-par). - Bucket in the path: on for stores that don’t take the bucket as part of the host name: MinIO and many others. Off for Amazon S3. If the test or the first browse fails with “not found”, try the other setting.
- Access key ID and Secret access key from step 1. At your organisation they are set where the connector runs, as
CONNECTOR_ACCESS_KEY_IDandCONNECTOR_SECRET_ACCESS_KEY. - Click Add, then Test.
3. Add sources
Section titled “3. Add sources”- Tab Sources → Add source, choose this connector.
- Bucket: the bucket’s name.
- Folder (prefix): a prefix inside it, picked with Browse… (after the bucket is entered). Empty means the whole bucket.
- Include (one pattern per line): by default PDF, Word, PowerPoint, Excel, Markdown, text and HTML files. Leave out: patterns to skip.
- The rest as for every source (see Sources), then Save and Sync now.
S3 has no change list: each sync lists the prefix again and reads what is new or changed. Search the sources live isn’t available for S3.
When something doesn’t work
Section titled “When something doesn’t work”| Message | Cause | What to do |
|---|---|---|
| the store refused access (InvalidAccessKeyId) | The access key ID is wrong or deleted | Check it, or create a new key |
| the store refused access (SignatureDoesNotMatch) | The secret is wrong, or the region doesn’t fit the endpoint | Enter the secret again; check Region |
| the store refused access (AccessDenied) | The key lacks s3:ListBucket or s3:GetObject on this bucket |
Give the key both rights (step 1) |
| bucket or object not found | The bucket’s name, the endpoint or Bucket in the path doesn’t fit | Check the name; switch Bucket in the path |
| give the bucket first | Bucket is empty when browsing | Enter the bucket, then Browse… |
| the store answered |
The store reported an error of its own | Check the store’s status; then Test again |