• Bogdan Denkovych's avatar
    DRY supported ssh key types · d7e34ceb
    Bogdan Denkovych authored
    Add `Gitlab::SSHPublicKey.supported_types` method.
    This method returns the names of ssh keys GitLab supports.
    `Gitlab::SSHPublicKey` should be the source of truth about such
    information.
    `SUPPORTED_KEY_TYPES` has the same information so I reused the method
    to prevent duplication that would allow easier to extend the list of
    supported keys.
    See https://gitlab.com/gitlab-org/gitlab/-/issues/213259.
    d7e34ceb
ssh_public_key_spec.rb 5.82 KB