Revert "fix(log): reduces chattiness in keystone log"

This reverts commit 73531436e9.

Reason for revert: When the keys are rotated, the links become
broken and keystone only uses the 0 key.

Change-Id: Iffc4ab5d659b01babe7b4f9ee35b0a5789dac3ec
This commit is contained in:
Gage Hugo 2022-02-02 05:17:08 +00:00
parent bc64fa296a
commit 537716e157
4 changed files with 3 additions and 26 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0 appVersion: v1.0.0
description: OpenStack-Helm Keystone description: OpenStack-Helm Keystone
name: keystone name: keystone
version: 0.2.18 version: 0.2.19
home: https://docs.openstack.org/keystone/latest/ home: https://docs.openstack.org/keystone/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Keystone/OpenStack_Project_Keystone_vertical.png icon: https://www.openstack.org/themes/openstack/images/project-mascots/Keystone/OpenStack_Project_Keystone_vertical.png
sources: sources:

View File

@ -61,23 +61,6 @@ spec:
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.api.timeout | default "30" }} terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.api.timeout | default "30" }}
initContainers: initContainers:
{{ tuple $envAll "api" $mounts_keystone_api_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }} {{ tuple $envAll "api" $mounts_keystone_api_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
- name: link-keys
image: {{ .Values.images.tags.keystone_api }}
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -c
args:
- set -xe;
find /etc/keystone/mounted-keys -type l -exec ln -sfn {} {{ .Values.conf.keystone.fernet_tokens.key_repository }} \; ;
chmod o-wrx {{ .Values.conf.keystone.fernet_tokens.key_repository }} ;
securityContext:
runAsUser: 0
volumeMounts:
- name: keystone-fernet-keys
mountPath: /etc/keystone/mounted-keys
- name: post-keystone-fernet-keys
mountPath: {{ .Values.conf.keystone.fernet_tokens.key_repository }}
containers: containers:
- name: keystone-api - name: keystone-api
{{ tuple $envAll "keystone_api" | include "helm-toolkit.snippets.image" | indent 10 }} {{ tuple $envAll "keystone_api" | include "helm-toolkit.snippets.image" | indent 10 }}
@ -160,8 +143,6 @@ spec:
{{- end }} {{- end }}
{{- if eq .Values.conf.keystone.token.provider "fernet" }} {{- if eq .Values.conf.keystone.token.provider "fernet" }}
- name: keystone-fernet-keys - name: keystone-fernet-keys
mountPath: /etc/keystone/mounted-keys
- name: post-keystone-fernet-keys
mountPath: {{ .Values.conf.keystone.fernet_tokens.key_repository }} mountPath: {{ .Values.conf.keystone.fernet_tokens.key_repository }}
{{- end }} {{- end }}
- name: keystone-credential-keys - name: keystone-credential-keys
@ -190,7 +171,7 @@ spec:
- name: keystone-etc - name: keystone-etc
secret: secret:
secretName: keystone-etc secretName: keystone-etc
defaultMode: 0440 defaultMode: 0444
- name: keystone-bin - name: keystone-bin
configMap: configMap:
name: keystone-bin name: keystone-bin
@ -201,12 +182,9 @@ spec:
secretName: keystone-ldap-tls secretName: keystone-ldap-tls
{{- end }} {{- end }}
{{- if eq .Values.conf.keystone.token.provider "fernet" }} {{- if eq .Values.conf.keystone.token.provider "fernet" }}
- name: post-keystone-fernet-keys
emptyDir: {}
- name: keystone-fernet-keys - name: keystone-fernet-keys
secret: secret:
secretName: keystone-fernet-keys secretName: keystone-fernet-keys
defaultMode: 0440
{{- end }} {{- end }}
- name: keystone-credential-keys - name: keystone-credential-keys
secret: secret:

View File

@ -163,12 +163,10 @@ pod:
keystone: keystone:
pod: pod:
runAsUser: 42424 runAsUser: 42424
fsGroup: 42424
container: container:
keystone_api: keystone_api:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
runAsGroup: 42424
credential_setup: credential_setup:
pod: pod:
runAsUser: 42424 runAsUser: 42424

View File

@ -34,4 +34,5 @@ keystone:
- 0.2.16 Remove extra fsGroup - 0.2.16 Remove extra fsGroup
- 0.2.17 Update default image references - 0.2.17 Update default image references
- 0.2.18 Remove default policy - 0.2.18 Remove default policy
- 0.2.19 Revert Reduce log chattiness
... ...