Why try to reinvent the wheel? Ortlieb makes all kinds of bags for racks that are similar to the Barista.
The Biker QL3, for example is only slightly larger and mounts directly.
Alternatively, you could get the Barista and get the parts for readapting it for a rack but that's more expensive and difficult to do.