docker-gitlab icon indicating copy to clipboard operation
docker-gitlab copied to clipboard

Documentation typo: length shoulud be 64

Open KES777 opened this issue 3 years ago • 7 comments

https://github.com/sameersbn/docker-gitlab/blob/master/README.md#gitlab_secrets_db_key_base

image

KES777 avatar Jun 04 '22 14:06 KES777

It seems this should be /home/git/data/certs/gitlab.crt https://github.com/sameersbn/docker-gitlab/blob/master/README.md#gitlab_registry_generate_internal_certificates

image

KES777 avatar Jun 04 '22 14:06 KES777

Host system directory should be on left. No?

image

https://github.com/sameersbn/docker-gitlab/blob/master/README.md#data-store

KES777 avatar Jun 04 '22 14:06 KES777

https://github.com/sameersbn/docker-gitlab/blob/master/README.md#gitlab_secrets_db_key_base

image

Minimum requirement is 32 characters, so it is OK to have 64 chars length.

It seems this should be /home/git/data/certs/gitlab.crt https://github.com/sameersbn/docker-gitlab/blob/master/README.md#gitlab_registry_generate_internal_certificates

image

May I ask why?
This is just an example and default value, so the user can change this to /home/git/data/cert/registry.key as you wrote, to persist it. But I think we usually don't need to care internal cert between gitlab and registry. (I have never used registry on this project so I simply interested in your opinion)

Host system directory should be on left. No?

image

https://github.com/sameersbn/docker-gitlab/blob/master/README.md#data-store

Yes sure, host system is on left side. /srv/docker/gitlab/gitlab is on host (off course you can change this to match to your environment), /home/git/data is in container. There no mistake.

kkimurak avatar Jun 04 '22 16:06 kkimurak

  1. Here was wrote requirements of 64: https://github.com/sameersbn/docker-gitlab/blob/master/README.md#quick-start
  2. I thought that these certs are same thing thus should be pointed to same directory.
  3. That is ambiguous. When doc says The default path image is configured to look for the trusted SSL certificates is at /home/git/data/certs/ca.crt, this can however be changed using the SSL_CA_CERTIFICATES_PATH configuration option. Does it mean path /home/git/data/ on host system or container?

For example official Dockerfile has config at /etc/gitlab image

So trying to mount unexisting /home/git/data to host system will surprise =(

KES777 avatar Jun 04 '22 17:06 KES777

Sorry for late.

  1. I have not get clear answer yet, but I can say something in our documentation is wrong. I will try to check later, of course contributions are welcome. note 1: I have confirmed that gitlab works with no major issues even I set shorter value to db_key_base and so on (for example 10 characters length). note 2: As far as I researched, the length of newly-generated keys are 64 on latest release. note 3(edit): I have set db_key_base blank then I get 128 char length value for it. I will check more detail...
  2. This repository provides source-installed gitlab as docker image, so there are many difference from official docker image. /home/git/data (GITLAB_DATA_DIR) is exists on container of sameersbn/gitlab. Please refer volume section in Dockerfile

Best,

kkimurak avatar Jun 10 '22 04:06 kkimurak

Thank you for attention. I am newbie here. Trying to highlight typos or ambiguous places (in my opinion). Hope they help

KES777 avatar Jun 10 '22 11:06 KES777

@kkimurak I went through the thread here. Wanted to know if this issue is still open. Also, you mentioned that something in the documentation is wrong. Is it about the value of db_key_base? I can help with rectifying the docs if needed :)

SudarshanHV avatar Apr 22 '23 06:04 SudarshanHV