chorus
chorus copied to clipboard
[FEATURE] Routing API
Feature Request
Chorus routing policy have the following structure:
- KEY: USER + BUCKET [OPTIONAL]
- VALUE: Destination storage name
Chorus proxy defines destination storage by the following algorithm:
- Lookup bucket routing policy by proxy s3 request user&bucket.
- If not found, lookup user routing policy by proxy s3 request user.
- If not found, return main storage from config.
Problem: currently, chorus routing policy can be sent only implicitly, by creating replication switch. There is no API to configure routing policies directly.
Solution: provide API to configure chorus proxy routing per user/bucket :
- GET all/per user/per bucket - returns proxy routing configuration
- PUT /per user/per bucket - overrides user/bucket routing
- DELETE /per user/per bucket - deletes routing.