Redox regulation of chloroplastic G6PDH activity by thioredoxin occurs through structural changes modifying substrate accessibility and cofactor binding.