albundy83 commented on issue #52837: URL: https://github.com/apache/airflow/issues/52837#issuecomment-3044490519
Hello, I have introduced an issue actually about the fernet key [here](https://github.com/apache/airflow/pull/52269/files#diff-965b2d96a204fa7782854164bcf95427412f055c43282add9e42651bec284fb4) It was the only one that value need to be base64 encoded error message from @prakass1 and official fernet [spec](https://github.com/fernet/spec/blob/master/Readme#L11) are clear. Even airflow [doc](https://airflow.apache.org/docs/apache-airflow/stable/security/secrets/fernet.html). Others were bad copy / paste. I'm sorry for this, @jedcunningham what should I do ? fernet-key Secret was correct, we can maybe add a comment for the futur: ```yaml {{/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */}} ################################ ## Airflow Fernet Key Secret ################################# {{- if not .Values.fernetKeySecretName }} # Fernet key value must be b64enc {{- $generated_fernet_key := (randAlphaNum 32 | b64enc) }} apiVersion: v1 kind: Secret metadata: name: {{ .Release.Name }}-fernet-key labels: tier: airflow release: {{ .Release.Name }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" heritage: {{ .Release.Service }} {{- with .Values.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: "helm.sh/hook": "pre-install" "helm.sh/hook-delete-policy": "before-hook-creation" "helm.sh/hook-weight": "0" {{- with .Values.fernetKeySecretAnnotations }} {{- toYaml . | nindent 4 }} {{- end }} type: Opaque data: fernet-key: {{ (default $generated_fernet_key .Values.fernetKey) | b64enc | quote }} {{- end }} ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
