The Copper Gauntlet by Holly Black

A reluctant young apprentice at a secret school for magic faces escalating danger after summer break when troubling revelations about his past and a conspiracy within the institution surface; as he and his two closest friends train, investigate, and confront opponents, he must grapple with shifting loyalties, growing power, and the choice of whether to embrace or resist a dark legacy tied to his identity.

Purchase from Bookshop.org