File tree Expand file tree Collapse file tree 4 files changed +41
-5
lines changed
helm-chart/templates/configmaps Expand file tree Collapse file tree 4 files changed +41
-5
lines changed Original file line number Diff line number Diff line change 15
15
OIDC_MANAGE_CLIENT_ID : semaphore-user-management
16
16
SESSION_COOKIE_NAME : _semaphoreci_2_0_sxmoon_session
17
17
ENABLE_TEMPORARY_PASSWORDS : " true"
18
+ SESSION_IDLE_TIMEOUT : " 72h"
19
+ SESSION_MAX_TIMESPAN : " 30d"
20
+ ACCESS_TOKEN_LIFESPAN : " 1h"
21
+ OFFLINE_SESSION_IDLE_TIMEOUT : " 30d"
Original file line number Diff line number Diff line change 28
28
valueFrom : { configMapKeyRef: { name: {{ .Values.global.authentication.configMapName }}, key: KC_LOCAL_URL } }
29
29
- name : TF_VAR_semaphore_realm
30
30
valueFrom : { configMapKeyRef: { name: {{ .Values.global.authentication.configMapName }}, key: KC_REALM } }
31
+ - name : TF_VAR_semaphore_realm_session_idle_timeout
32
+ valueFrom : { configMapKeyRef: { name: {{ .Values.global.authentication.configMapName }}, key: SESSION_IDLE_TIMEOUT } }
33
+ - name : TF_VAR_semaphore_realm_session_max_lifespan
34
+ valueFrom : { configMapKeyRef: { name: {{ .Values.global.authentication.configMapName }}, key: SESSION_MAX_TIMESPAN } }
35
+ - name : TF_VAR_semaphore_realm_access_token_lifespan
36
+ valueFrom : { configMapKeyRef: { name: {{ .Values.global.authentication.configMapName }}, key: ACCESS_TOKEN_LIFESPAN } }
37
+ - name : TF_VAR_realm_offline_session_idle_timeout
38
+ valueFrom : { configMapKeyRef: { name: {{ .Values.global.authentication.configMapName }}, key: OFFLINE_SESSION_IDLE_TIMEOUT } }
31
39
- name : TF_VAR_semaphore_user_management_client_id
32
40
valueFrom : { configMapKeyRef: { name: {{ .Values.global.authentication.configMapName }}, key: OIDC_MANAGE_CLIENT_ID } }
33
41
- name : TF_VAR_semaphore_user_management_client_name
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ resource "keycloak_realm" "semaphore_realm" {
32
32
33
33
login_theme = var. semaphore_realm_login_theme
34
34
35
- access_token_lifespan = " 60m "
36
- offline_session_idle_timeout = " 60m "
35
+ access_token_lifespan = var . semaphore_realm_access_token_lifespan
36
+ offline_session_idle_timeout = var . semaphore_realm_offline_session_idle_timeout
37
37
38
- sso_session_idle_timeout = " 48h "
39
- sso_session_max_lifespan = " 168h "
38
+ sso_session_idle_timeout = var . semaphore_realm_session_idle_timeout
39
+ sso_session_max_lifespan = var . semaphore_realm_session_max_lifespan
40
40
41
41
registration_email_as_username = true
42
42
verify_email = false
Original file line number Diff line number Diff line change @@ -19,6 +19,30 @@ variable "semaphore_realm" {
19
19
type = string
20
20
}
21
21
22
+ variable "semaphore_realm_session_idle_timeout" {
23
+ description = " Semaphore realm session idle timeout"
24
+ type = string
25
+ default = " 72h"
26
+ }
27
+
28
+ variable "semaphore_realm_session_max_lifespan" {
29
+ description = " Semaphore realm session max lifespan"
30
+ type = string
31
+ default = " 30d"
32
+ }
33
+
34
+ variable "semaphore_realm_access_token_lifespan" {
35
+ description = " Semaphore realm access token lifespan"
36
+ type = string
37
+ default = " 1h"
38
+ }
39
+
40
+ variable "semaphore_realm_offline_session_idle_timeout" {
41
+ description = " Semaphore realm offline session idle timeout"
42
+ type = string
43
+ default = " 30d"
44
+ }
45
+
22
46
variable "semaphore_realm_update_password_action" {
23
47
description = " If enabled, newly created accounts will be required to update their password on first login"
24
48
type = bool
@@ -137,4 +161,4 @@ variable "gitlab_provider_client_secret" {
137
161
variable "gitlab_provider_authorization_url" {
138
162
description = " Gitlab provider authorization url"
139
163
type = string
140
- }
164
+ }
You can’t perform that action at this time.
0 commit comments