Skip to content
Snippets Groups Projects
Commit 1821232a authored by Krasimir Angelov's avatar Krasimir Angelov :two:
Browse files

Add minimal support for the api-secret-key config flag

Related to gitlab#28781 and
#253.
parent 566f49ea
No related branches found
No related tags found
No related merge requests found
Pipeline #92707028 passed
......@@ -1513,3 +1513,9 @@ func TestTLSVersions(t *testing.T) {
})
}
}
func TestApiSecretKeyFlagIsSupported(t *testing.T) {
skipUnlessEnabled(t)
teardown := RunPagesProcess(t, *pagesBinary, listeners, "", "-api-secret-key", "/path/to/secret.key")
defer teardown()
}
......@@ -57,6 +57,7 @@ var (
secret = flag.String("auth-secret", "", "Cookie store hash key, should be at least 32 bytes long.")
gitLabAuthServer = flag.String("auth-server", "", "DEPRECATED, use gitlab-server instead. GitLab server, for example https://www.gitlab.com")
gitLabServer = flag.String("gitlab-server", "", "GitLab server, for example https://www.gitlab.com")
gitLabAPISecretKey = flag.String("api-secret-key", "", "File with secret key used to authenticate with the GitLab API")
clientID = flag.String("auth-client-id", "", "GitLab application Client ID")
clientSecret = flag.String("auth-client-secret", "", "GitLab application Client Secret")
redirectURI = flag.String("auth-redirect-uri", "", "GitLab application redirect URI")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment