Self-hosted S3-compatible object storage
Before you start
- A MinIO server that the PipesHub server can reach over the network.
- Permission in MinIO to create a policy and a user or access key.
- PipesHub admin rights for a team connector. Anyone can add a personal connector.
Step 1: Create a read-only access key in MinIO
PipesHub only lists and reads your files. It never changes or deletes anything in MinIO, so give it a key that can only read. The key needs these permissions:s3:ListBucketands3:GetObjecton the buckets you want to sync.s3:ListAllMyBuckets, so PipesHub can find your buckets and show them in the Bucket Names list.
your-bucket-1 and your-bucket-2 with your bucket names:
pipeshub-read.json. With the MinIO Client (mc), where myminio is the alias of your server, create the policy, a user for PipesHub, and attach the policy to that user:
REPLACE-WITH-A-LONG-RANDOM-SECRET with a long random secret of your own, keeping the quotes. The user name is the Access Key and the secret is the Secret Key in Step 2. You can also do this in the MinIO Console, or give PipesHub an access key that belongs to an existing user with this policy. See the MinIO documentation for your version.
s3:ListAllMyBuckets is needed. PipesHub uses it to show your buckets in the Bucket Names list, so keep it while you set up the connector or change that filter. It is also needed for every sync if Bucket Names is empty (PipesHub then finds all your buckets itself) or set to Not in. Once you have saved bucket names with In, syncs read those buckets directly.Step 2: Connect MinIO in PipesHub
Find MinIO
Confirm a team connector
Fill in the Authenticate tab
- Instance name: any label, for example
MinIOorLab data. - Endpoint URL: the address of MinIO’s S3 API, for example
https://minio.example.comorhttp://10.0.0.5:9000. This is the API port (9000 by default), not the Console port. See Endpoint URL rules below. - Console URL (optional): the address of the MinIO Console, used for links from PipesHub to your files. Leave it empty if the Console runs on port 9001 of the same host as an endpoint on port 9000; PipesHub then works it out.
- Access Key and Secret Key: the key from Step 1. Paste them without extra spaces.
- Use SSL/TLS: on by default. It only matters when the Endpoint URL or Console URL has no
http://orhttps://in front: on means PipesHub useshttps://, off meanshttp://. An address you type withhttp://orhttps://is always used as typed. - Verify SSL Certificate: on by default. Turn it off only if your MinIO server uses a self-signed certificate.
Set up the Configure records tab
Save and start syncing
Endpoint URL rules
- It must start with
http://orhttps://, or have no scheme at all (then Use SSL/TLS decides). A trailing/is fine. - It can’t contain a user name or password (
http://user:pass@host), a?or a#. Put the keys in their own fields. - PipesHub never connects to its own server, so
localhostand127.0.0.1are refused, as are link-local and cloud metadata addresses. Use the host name or network address at which the PipesHub server can reach MinIO. - If your PipesHub deployment sets
PIPESHUB_BLOCK_PRIVATE_ADDRESSES=true, private network addresses (such as10.x.x.xor192.168.x.x) are refused too. Leave that setting empty unless several organizations that don’t trust each other share your deployment.
? and #.
Choose what to sync
These settings are on the Configure records tab. You can change them later; changes apply from the next sync.What gets synced and how it stays up to date
- What you see: each bucket appears in PipesHub with its folders and files. Links on a file or folder open it in the MinIO Console.
- How often: on the schedule you chose (every hour by default), or when you click Sync. The first sync of a large bucket can take a long time; later syncs only process files that are new or changed.
- Edits: a changed file is downloaded and indexed again on the next sync. A file that is moved or renamed without changes keeps its place in search.
- Deletes: a file deleted in MinIO is removed from PipesHub after the next sync that lists the whole bucket without errors. A deleted bucket is removed after two syncs in a row can’t find it, so a server that briefly comes back empty (for example, restarted without its storage) doesn’t wipe your data.
- Who can see it: a team connector makes the files searchable by everyone in your organization. A personal connector keeps them to you. MinIO policies only limit what the key can read.
Troubleshooting
Sync won't start: the address is refused
Sync won't start: the address is refused
localhost, contain a user name and password, or use a scheme other than http:// or https://. If it names a private address and says PIPESHUB_BLOCK_PRIVATE_ADDRESSES is on, ask whoever runs your PipesHub deployment.“The server does not answer HTTPS at this address”
“The server does not answer HTTPS at this address”
https:// but MinIO is serving plain HTTP. Type the Endpoint URL with http://, turn off Use SSL/TLS, or turn on TLS in MinIO.A certificate error with a self-signed certificate
A certificate error with a self-signed certificate
“Check the Access Key” or “check the Secret Key”
“Check the Access Key” or “check the Secret Key”
“The clocks of PipesHub and the MinIO server differ”
“The clocks of PipesHub and the MinIO server differ”
Sync won't start: a permission is missing
Sync won't start: a permission is missing
s3:ListBucket or s3:GetObject. Add it to the policy from Step 1. s3:ListBucket goes on the bucket (arn:aws:s3:::bucket-name), s3:GetObject on its files (arn:aws:s3:::bucket-name/*).The Bucket Names list is empty, or sync fails with “Failed to list buckets”
The Bucket Names list is empty, or sync fails with “Failed to list buckets”
s3:ListAllMyBuckets. Add it to the policy, or pick your buckets in Bucket Names with In so syncs don’t need to list all buckets.A notification says some buckets were skipped
A notification says some buckets were skipped
s3:ListBucket and s3:GetObject on them, or leave them out with the Bucket Names filter. Files already synced from them stay in PipesHub.Links to files open the wrong page
Links to files open the wrong page
Synced files don't show up in search
Synced files don't show up in search