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

Add support and document how to expose ssh port in dockerized gitlab-ce #1731

Merged
merged 2 commits into from
Oct 29, 2018

Conversation

harobed
Copy link
Contributor

@harobed harobed commented Sep 30, 2018

Hi,

the goal of this Pull Request is to add support and document how to expose ssh port in dockerized gitlab-ce.

To implement that, I needed to add %h/.ssh/authorized_keys_proxy to AuthorizedKeysFile parameter in /etc/ssh/sshd_config to support ssh host forwarding to GitLab container.

How to test it: https://github.com/harobed/docker-gitlab-vagrant-test

contrib/expose-gitlab-ssh-port.sh Outdated Show resolved Hide resolved
contrib/expose-gitlab-ssh-port.sh Outdated Show resolved Hide resolved
contrib/expose-gitlab-ssh-port.sh Outdated Show resolved Hide resolved
contrib/expose-gitlab-ssh-port.sh Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@harobed
Copy link
Contributor Author

harobed commented Oct 7, 2018

@solidnerd thanks for your code review, I have resolved all your conversation.

Can you review my last update?

…/etc/ssh/sshd_config to support ssh host forwarding to GitLab container
…nd contrib/expose-gitlab-ssh-port.sh configuration script
assets/build/install.sh Show resolved Hide resolved
@solidnerd
Copy link
Collaborator

Otherwise it's look fine to me . But in terms of security it's a big hack.

@harobed
Copy link
Contributor Author

harobed commented Oct 7, 2018

But in terms of security it's a big hack.

Why? Where?

@harobed
Copy link
Contributor Author

harobed commented Oct 11, 2018

@solidnerd My last comments are clear?

@harobed
Copy link
Contributor Author

harobed commented Oct 23, 2018

@solidnerd, the gentlest of bumps on this. Have two minute to take a look on this review?

@ccoenen
Copy link

ccoenen commented Oct 27, 2018

I currently have a setup that runs on https only, because I need SSH for the host system (and I have no control over the firewall, so I can't just remap to a different port either).

This sounds like it is the perfect solution. I am hesitant to run this unless someone more familiar with gitlab or SSH has taken a closer look at it. Could someone give this a blessing or at least comment on it?

@harobed
Copy link
Contributor Author

harobed commented Oct 29, 2018

@solidnerd I have seen and merged all your Pull Requests in docker-gitlab-vagrant-test repository.

I assume that you have tested expose-gitlab-ssh-port.sh feature? If yes, it works for you?

@harobed
Copy link
Contributor Author

harobed commented Oct 29, 2018

Could someone give this a blessing or at least comment on it?

@ccoenen

I'd be happy to get your feedback 🙂

@solidnerd
Copy link
Collaborator

Hey @harobed,

yes I tested it it works. It found some configuration edge cases but I think this is out of scope. The method works only if you don't enable fast lookup for authorized ssh keys.

https://docs.gitlab.com/ce/administration/operations/fast_ssh_key_lookup.html .

For the first time we could add this.

So LGTM !

@solidnerd solidnerd merged commit d722279 into sameersbn:master Oct 29, 2018
@harobed
Copy link
Contributor Author

harobed commented Oct 29, 2018

@solidnerd thanks 🙂

harobed pushed a commit to stephane-klein/gitlab-deployment-playground that referenced this pull request Nov 25, 2018
harobed pushed a commit to stephane-klein/gitlab-deployment-playground that referenced this pull request Nov 25, 2018
harobed pushed a commit to stephane-klein/gitlab-deployment-playground that referenced this pull request Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants