From 105ca92e3b9b70ff4d8e10d392dd3e40134747bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 27 Aug 2023 18:09:53 +0200 Subject: [PATCH] fix --- share/wildduck/index.yaml | 492 +++++++++++++++++++++----------------- share/wildduck/secret.tf | 3 + 2 files changed, 272 insertions(+), 223 deletions(-) diff --git a/share/wildduck/index.yaml b/share/wildduck/index.yaml index f6338f0..e5af0c6 100644 --- a/share/wildduck/index.yaml +++ b/share/wildduck/index.yaml @@ -6,229 +6,6 @@ metadata: name: wildduck description: null options: - sub-domain: - default: mail - examples: - - mail - type: string - additional-domains: - default: [] - items: - type: string - type: array - backups: - default: - enable: false - endpoint: '' - key-id-key: s3-id - secret-key: s3-secret - secret-name: backup-settings - examples: - - enable: false - endpoint: '' - key-id-key: s3-id - secret-key: s3-secret - secret-name: backup-settings - properties: - enable: - default: false - type: boolean - endpoint: - default: '' - type: string - key-id-key: - default: s3-id - type: string - secret-key: - default: s3-secret - type: string - secret-name: - default: backup-settings - type: string - type: object - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - ingress-class: - default: traefik - examples: - - traefik - type: string - domain: - default: your-company - examples: - - your-company - type: string - images: - default: - haraka: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-haraka - tag: 3.0.2 - rspamd: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-rspamd - tag: 3.18.3 - webmail: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-webmail - tag: 1.0.1 - wildduck: - pullPolicy: IfNotPresent - registry: docker.io - repository: nodemailer/wildduck - tag: 1.39.10 - zonemta: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-zonemta - tag: 3.4.0 - examples: - - haraka: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-haraka - tag: 3.0.2 - rspamd: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-rspamd - tag: 3.18.3 - webmail: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-webmail - tag: 1.0.1 - wildduck: - pullPolicy: IfNotPresent - registry: docker.io - repository: nodemailer/wildduck - tag: 1.39.10 - zonemta: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-zonemta - tag: 3.4.0 - properties: - haraka: - default: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-haraka - tag: 3.0.2 - properties: - pullPolicy: - default: IfNotPresent - type: string - registry: - default: docker.io - type: string - repository: - default: sebt3/wildduck-haraka - type: string - tag: - default: 3.0.2 - type: string - type: object - operator: - default: null - properties: - pullPolicy: - enum: - - Always - - Never - - IfNotPresent - rspamd: - default: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-rspamd - tag: 3.18.3 - properties: - pullPolicy: - default: IfNotPresent - type: string - registry: - default: docker.io - type: string - repository: - default: sebt3/wildduck-rspamd - type: string - tag: - default: 3.18.3 - type: string - type: object - webmail: - default: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-webmail - tag: 1.0.1 - properties: - pullPolicy: - default: IfNotPresent - type: string - registry: - default: docker.io - type: string - repository: - default: sebt3/wildduck-webmail - type: string - tag: - default: 1.0.1 - type: string - type: object - wildduck: - default: - pullPolicy: IfNotPresent - registry: docker.io - repository: nodemailer/wildduck - tag: 1.39.10 - properties: - pullPolicy: - default: IfNotPresent - type: string - registry: - default: docker.io - type: string - repository: - default: nodemailer/wildduck - type: string - tag: - default: 1.39.10 - type: string - type: object - zonemta: - default: - pullPolicy: IfNotPresent - registry: docker.io - repository: sebt3/wildduck-zonemta - tag: 3.4.0 - properties: - pullPolicy: - default: IfNotPresent - type: string - registry: - default: docker.io - type: string - repository: - default: sebt3/wildduck-zonemta - type: string - tag: - default: 3.4.0 - type: string - type: object - type: object - domain-name: - default: your_company.com - examples: - - your_company.com - type: string redis: default: exporter: @@ -262,6 +39,275 @@ options: default: 2Gi type: string type: object + backups: + default: + enable: false + endpoint: '' + key-id-key: s3-id + secret-key: s3-secret + secret-name: backup-settings + examples: + - enable: false + endpoint: '' + key-id-key: s3-id + secret-key: s3-secret + secret-name: backup-settings + properties: + enable: + default: false + type: boolean + endpoint: + default: '' + type: string + key-id-key: + default: s3-id + type: string + secret-key: + default: s3-secret + type: string + secret-name: + default: backup-settings + type: string + type: object + additional-domains: + default: [] + items: + type: string + type: array + domain: + default: your-company + examples: + - your-company + type: string + ingress-class: + default: traefik + examples: + - traefik + type: string + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + images: + default: + haraka: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-haraka + tag: 3.0.2 + rspamd: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-rspamd + tag: 3.18.3 + scimgateway: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-scim + tag: 1.0.0 + webmail: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-webmail + tag: 1.0.1 + wildduck: + pullPolicy: IfNotPresent + registry: docker.io + repository: nodemailer/wildduck + tag: 1.39.10 + zonemta: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-zonemta + tag: 3.4.0 + examples: + - haraka: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-haraka + tag: 3.0.2 + rspamd: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-rspamd + tag: 3.18.3 + scimgateway: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-scim + tag: 1.0.0 + webmail: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-webmail + tag: 1.0.1 + wildduck: + pullPolicy: IfNotPresent + registry: docker.io + repository: nodemailer/wildduck + tag: 1.39.10 + zonemta: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-zonemta + tag: 3.4.0 + properties: + haraka: + default: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-haraka + tag: 3.0.2 + properties: + pullPolicy: + default: IfNotPresent + enum: + - Always + - Never + - IfNotPresent + type: string + registry: + default: docker.io + type: string + repository: + default: sebt3/wildduck-haraka + type: string + tag: + default: 3.0.2 + type: string + type: object + rspamd: + default: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-rspamd + tag: 3.18.3 + properties: + pullPolicy: + default: IfNotPresent + enum: + - Always + - Never + - IfNotPresent + type: string + registry: + default: docker.io + type: string + repository: + default: sebt3/wildduck-rspamd + type: string + tag: + default: 3.18.3 + type: string + type: object + scimgateway: + default: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-scim + tag: 1.0.0 + properties: + pullPolicy: + default: IfNotPresent + enum: + - Always + - Never + - IfNotPresent + type: string + registry: + default: docker.io + type: string + repository: + default: sebt3/wildduck-scim + type: string + tag: + default: 1.0.0 + type: string + type: object + webmail: + default: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-webmail + tag: 1.0.1 + properties: + pullPolicy: + default: IfNotPresent + enum: + - Always + - Never + - IfNotPresent + type: string + registry: + default: docker.io + type: string + repository: + default: sebt3/wildduck-webmail + type: string + tag: + default: 1.0.1 + type: string + type: object + wildduck: + default: + pullPolicy: IfNotPresent + registry: docker.io + repository: nodemailer/wildduck + tag: 1.39.10 + properties: + pullPolicy: + default: IfNotPresent + enum: + - Always + - Never + - IfNotPresent + type: string + registry: + default: docker.io + type: string + repository: + default: nodemailer/wildduck + type: string + tag: + default: 1.39.10 + type: string + type: object + zonemta: + default: + pullPolicy: IfNotPresent + registry: docker.io + repository: sebt3/wildduck-zonemta + tag: 3.4.0 + properties: + pullPolicy: + default: IfNotPresent + enum: + - Always + - Never + - IfNotPresent + type: string + registry: + default: docker.io + type: string + repository: + default: sebt3/wildduck-zonemta + type: string + tag: + default: 3.4.0 + type: string + type: object + type: object + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + sub-domain: + default: mail + examples: + - mail + type: string dependencies: - dist: null category: dbo diff --git a/share/wildduck/secret.tf b/share/wildduck/secret.tf index 7d59194..be33fae 100644 --- a/share/wildduck/secret.tf +++ b/share/wildduck/secret.tf @@ -24,6 +24,8 @@ resource "kubectl_manifest" "wildduck_secret" { length: "32" - fieldName: "authentik" # Bearer for authentik to wildduck-scim length: "32" + - fieldName: "default" # Default user password + length: "8" EOF } data "kubernetes_secret_v1" "wildduck" { @@ -41,5 +43,6 @@ locals { totp = data.kubernetes_secret_v1.wildduck.data["totp"] dkim = data.kubernetes_secret_v1.wildduck.data["dkim"] access = data.kubernetes_secret_v1.wildduck.data["access"] + authentik = data.kubernetes_secret_v1.wildduck.data["authentik"] } } \ No newline at end of file