Skip to content

Don't remove comment from public SSH keys but clean email like domains from the comment

What does this MR do?

Changes publishable_key to return the full SSH key but with email domains replaced with (Gitlab.com), the current behaviour is to fully remove the SSH Key comment.

Example:

ssh-rsa AAAA...Mn/ me@me.com foo@me.com bar@bar bar@foo教程网.com blah
ssh-rsa AAAA...Mn/ me (Gitlab.com) foo (Gitlab.com) bar@bar bar (Gitlab.com) blah

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Idea is to help identify SSH keys.

What are the relevant issue numbers?

#18866 (closed)

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

Merge request reports