From some of the quite professional sources (Basics from QCD by CERN; QCD from PDG), the QCD lagrangian is written in the form of
$$ L = \Sigma_{f} \; \bar{\psi}^{(f)} i \gamma^\mu D_\mu \psi^{(f)} + F_{a \mu \nu}F^{a \mu \nu} $$
This lagrangian excludes the interaction between different flavors $f=1 .. 6$ of quarks mediated by the gluons.
The gluons are said to be "flavor blind", ignoring the flavor at all, which can either mean coupling only the quarks of the same flavor (as shown by this lagrangian) or coupling between different flavors in the same way.
If gluons couple only the same flavors, who is responsible for binding the different flavors? Say, in a proton? Or is this lagrangian a misleading yet very common mistake? Or is my interpretation wrong?
Note: There seem to be other sources that take care of the inter-flavor interactions. GSI slides