1: \begin{abstract}
2: Based on the Atiyah-Patodi-Singer index formula, we construct an obstruction to positive scalar curvature metrics with mean convex boundaries on spin manifolds of infinite $K$-area.
3: We also characterize the extremal case.
4:
5: Next we show a general deformation principle for boundary conditions of metrics with lower scalar curvature bounds.
6: This implies that the relaxation of boundary conditions often induces weak homotopy equivalences of spaces of such metrics.
7: This can be used to refine the smoothing of codimension-one singularites \`a la Miao and the deformation of boundary conditions \`a la Brendle-Marques-Neves, among others.
8:
9: Finally, we construct compact manifolds for which the spaces of positive scalar curvature metrics with mean convex boundaries have nontrivial higher homotopy groups.
10:
11: Video abstract: \url{https://vimeo.com/530490182}
12: \end{abstract}
13: