I attached these using M5 bolts and lock nuts, with large washers below the bolt and above the nut. Tightened just enough so the cam lock rotates with some friction.
I use two of these at the back of my base (https://www.printables.com/model/324649-lasercut-base-for-mk3s-electronics-and-psu-with-ro) along with a fixed ridge at the front and simple blocks at the side.
The author remixed this model.