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
  • #277

Closed
Open
Created Jan 10, 2012 by Administrator@rootOwner

Regenerating Cancelled Keys

Created by: cboden

Gitlab is either storing deleted keys or not properly deleting keys from gitolite when they're removed from Gitlab. When an action is taken in Gitlab that invokes gitolite the delete keys are restored (and thus causing permission errors when user's try to interact with their remotes).

To fix this issue I check three places:

  • ~git/.ssh/authorized_keys - I manually delete the cancelled keys
  • ~git/.gitolite/keysdir/ - I manually remove the cancelled keys' files
  • I check /path/to/gitlabhq/db/production.sqlite3 - The deleted keys are not in here
  • I run the gitolite post-update hook

These steps fix the permission error, until Gitlab invokes gitolite, they old keys are restored and users then have permission errors again (and I repeat those 4 steps).

Assignee
Assign to
Time tracking