Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #2658

Closed
Open
Created Jan 18, 2013 by Administrator@rootOwner

Deploy key: same key, different comment -> different hash -> duplicate key unusable

Created by: klamontagne

If a user sets a deploy key for his project: ex.:

ssh-rsa AAAAB3NzaC1[...]EQ== [email protected]

and another user sets the same public key as deploy key for another project, but for some reason, with another comment field at the end:

ssh-rsa AAAAB3NzaC1[...]EQ== myproject.com Apache User

Gitlab doesn't realise and gives a different identifer to the keys, probably because it uses a hash of the full text instead of just the key part. When the key is added in gitolite, for example using the gitlab:app:update_keys rake task, it gives out a warning of the form:

WARNING: keydir/deploy_[...].pub duplicates keydir/deploy_[...].pub, sshd will ignore it

and the duplicated key is not usable with gitolite.

Assignee
Assign to
Time tracking