Skip to content

Commit 34449af

Browse files
committed
upgrade to 17.2.1
1 parent 43d58d5 commit 34449af

File tree

4 files changed

+45
-3
lines changed

4 files changed

+45
-3
lines changed

.gitlab-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17.1.1
1+
17.2.1

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM sameersbn/gitlab:17.1.1
1+
FROM ghcr.io/rtxux/gitlab:17.2.1
22

33
# Override files
44
COPY assets/runtime/config/gitlabhq/gitlab.yml ${GITLAB_RUNTIME_DIR}/config/gitlabhq/gitlab.yml

assets/runtime/config/gitlabhq/gitlab.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,23 @@ production: &base
10261026
user_response_structure: {
10271027
attributes: {},
10281028
id_path: '{{OAUTH2_GENERIC_USTC_ID_PATH}}' } } }
1029+
- { name: 'openid_connect',
1030+
label: '{{OAUTH_OIDC_LABEL}}',
1031+
icon: '{{OAUTH_OIDC_ICON}}',
1032+
args: {
1033+
name: 'openid_connect',
1034+
scope: {{OAUTH_OIDC_SCOPE}},
1035+
response_type: '{{OAUTH_OIDC_RESPONSE_TYPE}}',
1036+
issuer: '{{OAUTH_OIDC_ISSUER}}',
1037+
discovery: {{OAUTH_OIDC_DISCOVERY}},
1038+
client_auth_method: '{{OAUTH_OIDC_CLIENT_AUTH_METHOD}}',
1039+
uid_field: '{{OAUTH_OIDC_UID_FIELD}}',
1040+
send_scope_to_token_endpoint: {{OAUTH_OIDC_SEND_SCOPE_TO_TOKEN_EP}},
1041+
pkce: {{OAUTH_OIDC_PKCE}},
1042+
client_options: {
1043+
identifier: '{{OAUTH_OIDC_CLIENT_ID}}',
1044+
secret: '{{OAUTH_OIDC_CLIENT_SECRET}}',
1045+
redirect_uri: '{{OAUTH_OIDC_REDIRECT_URI}}' } } }
10291046

10301047
# SSO maximum session duration in seconds. Defaults to CAS default of 8 hours.
10311048
# cas3:

assets/runtime/functions

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,30 @@ gitlab_configure_oauth2_generic_ustc() {
794794
fi
795795
}
796796

797+
gitlab_configure_oauth_oidc() {
798+
if [[ -n ${OAUTH_OIDC_ISSUER} && \
799+
-n ${OAUTH_OIDC_CLIENT_ID} ]]; then
800+
echo "Configuring gitlab::oauth::oidc..."
801+
OAUTH_ENABLED=${OAUTH_ENABLED:-true}
802+
update_template ${GITLAB_CONFIG} \
803+
OAUTH_OIDC_LABEL \
804+
OAUTH_OIDC_ICON \
805+
OAUTH_OIDC_SCOPE \
806+
OAUTH_OIDC_RESPONSE_TYPE \
807+
OAUTH_OIDC_ISSUER \
808+
OAUTH_OIDC_DISCOVERY \
809+
OAUTH_OIDC_CLIENT_AUTH_METHOD \
810+
OAUTH_OIDC_UID_FIELD \
811+
OAUTH_OIDC_SEND_SCOPE_TO_TOKEN_EP \
812+
OAUTH_OIDC_PKCE \
813+
OAUTH_OIDC_CLIENT_ID \
814+
OAUTH_OIDC_CLIENT_SECRET \
815+
OAUTH_OIDC_REDIRECT_URI
816+
else
817+
exec_as_git sed -i "/name: 'openid_connect'/,/{{OAUTH_OIDC_REDIRECT_URI}}/d" ${GITLAB_CONFIG}
818+
fi
819+
}
820+
797821
gitlab_configure_oauth() {
798822
echo "Configuring gitlab::oauth..."
799823

@@ -811,6 +835,7 @@ gitlab_configure_oauth() {
811835
gitlab_configure_oauth_auth0
812836
gitlab_configure_oauth_azure
813837
gitlab_configure_oauth2_generic_ustc
838+
gitlab_configure_oauth_oidc
814839

815840
OAUTH_ENABLED=${OAUTH_ENABLED:-false}
816841
update_template ${GITLAB_CONFIG} \
@@ -823,7 +848,7 @@ gitlab_configure_oauth() {
823848
OAUTH_EXTERNAL_PROVIDERS
824849

825850
case ${OAUTH_AUTO_SIGN_IN_WITH_PROVIDER} in
826-
cas3|google_oauth2|facebook|twitter|github|gitlab|bitbucket|saml|crowd|azure_oauth2|azure_activedirectory_v2|oauth2_generic|$OAUTH2_GENERIC_NAME)
851+
cas3|google_oauth2|facebook|twitter|github|gitlab|bitbucket|saml|crowd|azure_oauth2|azure_activedirectory_v2|oauth2_generic|$OAUTH2_GENERIC_NAME|oidc)
827852
update_template ${GITLAB_CONFIG} OAUTH_AUTO_SIGN_IN_WITH_PROVIDER
828853
;;
829854
*)

0 commit comments

Comments
 (0)