Skip to content

Commit 7ca9940

Browse files
committed
updated values file and pre install config map for new token env vars
1 parent 428758f commit 7ca9940

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

charts/self-host/templates/pre-install-hook-configmap.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ data:
3939
globalSettings__sso__enforceSsoPolicyForAllUsers: {{ .Values.general.sso.enforceSsoPolicyForAllUsers | quote }}
4040
{{- if not (and .Values.volume.logs .Values.volume.logs.enabled) }}
4141
globalSettings__logDirectory: "/dev/null"
42+
{{- end }}
43+
{{- if not (.Values.general.refreshTokens.enabled) }}
44+
globalSettings__IdentityServer__ApplyAbsoluteRefreshTokenOnRefreshToken="true"
45+
globalSettings__IdentityServer__AbsoluteRefreshTokenLifetimeSeconds={{ .Values.general.refreshTokens.absoluteRefreshTokenLifetimeSeconds | default "0" }}
46+
globalSettings__IdentityServer__SlidingRefreshTokenLifetimeSeconds={{ .Values.general.refreshTokens.slidingRefreshTokenLifetimeSeconds | default "1" }}
4247
{{- end }}
4348
globalSettings__logRollBySizeLimit: ""
4449
globalSettings__syslog__destination: ""

charts/self-host/values.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ general:
99
# Set to false if using a custom ingress
1010
enabled: true
1111
# Current supported values for ingress type include: nginx
12-
className: "nginx"
13-
## - Annotations to add to the Ingress resource.
12+
className:
13+
"nginx"
14+
## - Annotations to add to the Ingress resource.
1415
annotations:
1516
# nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
1617
# nginx.ingress.kubernetes.io/use-regex: "true"
@@ -104,6 +105,13 @@ general:
104105
# Cloud region for sync. Please see: https://bitwarden.com/help/families-for-enterprise-self-hosted/#step-1-enable-cloud-communication
105106
cloudRegion: US
106107

108+
# Refresh token variables https://bitwarden.com/help/environment-variables/#refresh-token-variables
109+
refreshTokens:
110+
# Set to true to enable refresh tokens. Recommended for production environments.
111+
enabled: false
112+
absoluteRefreshTokenLifetimeSeconds: ""
113+
slidingRefreshTokenLifetimeSeconds: ""
114+
107115
# Specify the name of the shared storage class
108116
# This storage class requires ReadWriteMany. You will need to provide your own storage class. Storage classes with automatic volume previsioners are recommended.
109117
sharedStorageClassName: "shared-storage"

0 commit comments

Comments
 (0)