Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Allow database to index git authorized_keys #168

Closed
2 of 4 tasks
LongLiveCHIEF opened this issue Nov 30, 2017 · 0 comments · Fixed by #177
Closed
2 of 4 tasks

Feature: Allow database to index git authorized_keys #168

LongLiveCHIEF opened this issue Nov 30, 2017 · 0 comments · Fixed by #177
Labels
enhancement New feature or request

Comments

@LongLiveCHIEF
Copy link
Contributor

LongLiveCHIEF commented Nov 30, 2017

As described in the speed up ssh operations, gitlab has a feature that will allow the gitlab_shell to index authorized_keys for git+ssh connections in the database instead of the authorized_keys file. This can drastically impact the speed of ssh connections when a large number of keys or users are present.

Implementation details:

  • Add store_git_keys_in_db parameter to manifests/init.pp
  • create /opt/gitlab-shell/authorized_keys keys file with git:root 0650 with content shown in docs
  • add manage_sshd_git_user parameter
  • use augeas resource to configure sshd with appropriate command, or use sshd drop-in file for git user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants