Generate and symlink gitlab_pages_secret
With gitlab#28781 (closed) we introduced new internal API in the Rails app that will be consumed by GitLab Pages (for more context see &1316 (closed)).
Pages will authenticate requests using JWT issued using a secret that will be shared between Pages and the Rails app. This is the same as how GitLab Workhorse authenticate.
This MR takes care for generating and symlinking the secret. I followed gitlab_workhorse_secret
as an example.
Pages does not yet support this new configuration flag (-api-secret-key
) and that's why files/gitlab-cookbooks/gitlab/templates/default/sv-gitlab-pages-run.erb
is not rendering it yet and there tests to ensure this. I'll update this in follow up MR when the work at Pages side is done.
Related to gitlab#28781 (closed).