showed that CD8+ T-cells with a tissue-resident phenotype specific for CagA control the bacterium through antigen-specific effector functions in the early infection phase. Here, CD8A is linked to infection.