Katello/katello — pull request #2955 by jhadvig (2013-09-16 12:20:55+00:00)
Title: 867435 - Importing GPG file with some random text shouldn't be allowed

Adding an validator for GpgKey creation so the imported or pasted string contained a header and footer typical for gpg public keys

e.g.
-----BEGIN PGP PUBLIC KEY BLOCK-----

GPG KEY

-----END PGP PUBLIC KEY BLOCK-----

GPG key itself should not be longer than 65 characters per line and should contain only base64 characters.