Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
G
gitlab-pages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
gitlab-pages
Commits
1821232a
Commit
1821232a
authored
5 years ago
by
Krasimir Angelov
Browse files
Options
Downloads
Patches
Plain Diff
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
5 years ago
Stage: prepare
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
acceptance_test.go
+6
-0
6 additions, 0 deletions
acceptance_test.go
main.go
+1
-0
1 addition, 0 deletions
main.go
with
7 additions
and
0 deletions
acceptance_test.go
+
6
−
0
View file @
1821232a
...
...
@@ -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
()
}
This diff is collapsed.
Click to expand it.
main.go
+
1
−
0
View file @
1821232a
...
...
@@ -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"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment