Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions k8s/production/gitlab/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,31 @@ spec:
# to 90 from its default of 30.
graphQlTimeout: 90

omniauth:
enabled: true

providers:
- secret: gitlab-omniauth-github
key: provider

# Sync github profile data to users' gitlab accounts
syncProfileFromProvider: ['github']

# Make github an "external provider", i.e. users logging in via GitHub
# will not have access to internal GitLab projects
externalProviders: ['github']

# Allow single sign on from GitHub
allowSingleSignOn: true

# If a user is logging in via GitHub for the first time and already has an account
# on Spack GitLab, automatically link the accounts
autoLinkUser: true

# Block auto-created users from logging in until an admin has approved them
# TODO: do we want to do this?
blockAutoCreatedUsers: true

antiAffinity: hard
### END OF GLOBAL SECTION

Expand Down
12 changes: 12 additions & 0 deletions k8s/production/gitlab/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Secret
metadata:
name: gitlab-omniauth-github
namespace: gitlab
stringData:
provider: |
{
"name": "github",
"app_id": "id",
"app_secret": "secret"
}
Loading