diff --git a/smardigo/templates/iam/secret.yml b/smardigo/templates/iam/secret.yml deleted file mode 100644 index e962c73..0000000 --- a/smardigo/templates/iam/secret.yml +++ /dev/null @@ -1,22 +0,0 @@ -# store the secret-name as variable -{{- $secret_name := "iam-secrets" -}} ---- -apiVersion: v1 -kind: Secret -metadata: - name: "{{ $secret_name }}" - annotations: - "helm.sh/resource-policy": "keep" -data: - # try to get the old secrets - # keep in mind, that a dry-run only returns an empty map - {{- $previous := lookup "v1" "Secret" .Release.Namespace $secret_name }} - - # check, if a secret is already set - {{- if or (not $previous) (not $previous.data) }} - # if not set, then generate a new password - JWT_SECRET: "{{ .Values.iam.jwt.secret | b64enc }}" - {{ else }} - # if set, then use the old value - JWT_SECRET: "{{ index $previous.data "JWT_SECRET" }}" - {{ end }} diff --git a/smardigo/templates/sepa-exporter/secret.yml b/smardigo/templates/sepa-exporter/secret.yml deleted file mode 100644 index 1dcda84..0000000 --- a/smardigo/templates/sepa-exporter/secret.yml +++ /dev/null @@ -1,25 +0,0 @@ -# store the secret-name as variable -{{- $secret_name := "sepa-exporter-secrets" -}} ---- -apiVersion: v1 -kind: Secret -metadata: - name: "{{ $secret_name }}" - annotations: - "helm.sh/resource-policy": "keep" -data: - # try to get the old secrets - # keep in mind, that a dry-run only returns an empty map - {{- $previous := lookup "v1" "Secret" .Release.Namespace $secret_name }} - - # check, if a secret is already set - {{- if or (not $previous) (not $previous.data) }} - # if not set, then generate a new password - SMA_WORKFLOW_AUTH_TOKEN: "{{ .Values.sepaExporter.workflow.api_token | b64enc }}" - SMA_DOCUMENT_AUTH_TOKEN: "{{ .Values.sepaExporter.document.api_token | b64enc }}" - {{ else }} - # if set, then use the old value - SMA_WORKFLOW_AUTH_TOKEN: "{{ index $previous.data "SMA_WORKFLOW_AUTH_TOKEN" }}" - SMA_DOCUMENT_AUTH_TOKEN: "{{ index $previous.data "SMA_DOCUMENT_AUTH_TOKEN" }}" - {{ end }} - \ No newline at end of file diff --git a/smardigo/templates/wordpress/secret.yml b/smardigo/templates/wordpress/secret.yml deleted file mode 100644 index ce41862..0000000 --- a/smardigo/templates/wordpress/secret.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: v1 -kind: Secret -metadata: - name: "wordpress-secrets" -data: - SMA_WORKFLOW_AUTH_TOKEN: "{{ .Values.wordpress.workflow.api_token | b64enc }}" diff --git a/smardigo/values.yaml b/smardigo/values.yaml index 8d0826e..e4b09c4 100644 --- a/smardigo/values.yaml +++ b/smardigo/values.yaml @@ -40,8 +40,8 @@ connect: sender: "noreply-connect@netgo.de" sender_alias: "noreply-connect" domain: "dev-mobene-nsodev-connect.smardigo.digital" - jwt: - secret: "1e9bb2d390fa4093a31c0b8f1ff5d5ac" +# jwt: +# secret: "" hostAliases: - name: "dev-keycloak-01.smardigo.digital" ip: "10.0.0.11" @@ -64,8 +64,8 @@ iam: host: "https://dev-keycloak-01.smardigo.digital" username: "keycloak-admin" password: "keycloak-admin" - jwt: - secret: "36ad0562f27b4c3fa6a35a08f5e6f1e3" +# jwt: +# secret: "" wordpress: image: @@ -86,31 +86,31 @@ wordpress: username: "buergerportal" password: "Buerger?P0rtal." domain: "dev-mobene-nsodev-wordpress.smardigo.digital" - workflow: - # user: buergerportal - api_token: "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..L3PfqQCFMcw3zZhZkKnfSw.5S5TeOaKiHI5YbAlDNDGrSl3gDMJlHo2RzU2PyS8l5E.-V3tnhFHCNg8KZ25fYIsAw" +# workflow: +# # connect jwt.secret + user: buergerportal +# api_token: "" sepaExporter: image: version: "latest" name: "smardigo/sepa-exporter-app" - workflow: - # user: client.sepa-exporter - api_token: "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0.._1cfi_IHY5SDZgLwdiPCag.impAXcYnQ7tpLTsWJU98iWhf1hX-VPkndeoxChqjL2c.1IcgI6lcUkPQRwSMiJgOQA" - document: - # user: client.sepa-exporter - api_token: "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0.._1cfi_IHY5SDZgLwdiPCag.impAXcYnQ7tpLTsWJU98iWhf1hX-VPkndeoxChqjL2c.1IcgI6lcUkPQRwSMiJgOQA" +# workflow: +# # connect jwt.secret + user: client.sepa-exporter +# api_token: "" +# document: +# # connect jwt.secret + user: client.sepa-exporter +# api_token: "" ubaExporter: image: version: "latest" name: "smardigo/mobene-uba-export-app" - workflow: - # user: client.uba-exporter - api_token: "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..OFcu2Sfz8eM4uPR3s4wdPg.6we1gTQGau2FStphePpaFNBZmRuNvALjInCfGlZ2ZKU.Wtdy-seQgRHGQtche3Py_g" - document: - # user: client.uba-exporter - api_token: "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..OFcu2Sfz8eM4uPR3s4wdPg.6we1gTQGau2FStphePpaFNBZmRuNvALjInCfGlZ2ZKU.Wtdy-seQgRHGQtche3Py_g" +# workflow: +# # connect jwt.secret + user: client.uba-exporter +# api_token: "" +# document: +# # connect jwt.secret + user: client.uba-exporter +# api_token: "" # services which aren't part of the kubernetes cluster sharedService: