Green’s Dictionary of Slang

good-guy letter n.

(US prison) an honorable discharge when a guard retires (without which one cannot buy firearms).

[US]Rayman & Blau Riker’s 403: I asked the chief of the department for my good-guy letter, so I can get my firearms.