Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Platform-applied, additive to the tenant's own policies. The portal's web pods
# and migration job: their database, and for the web
# pods the customer Dex's public name (discovery, token exchange).
# pods the customer Dex's public name (discovery, token exchange) and the mail
# sender's SES SMTP endpoint (STARTTLS on 587) for the portal's emails.
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
Expand All @@ -26,6 +27,12 @@ spec:
- ports:
- port: "443"
protocol: TCP
- toFQDNs:
- matchName: email-smtp.eu-central-1.amazonaws.com
toPorts:
- ports:
- port: "587"
protocol: TCP
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: kube-system
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# The business-site WebApp's one projected Secret, assembled on the platform
# side because the WebApp has no environment variables and projects a single
# Secret (/run/webapp-inputs). It carries the public company disclosure and,
# for the portal, its settings file, its Dex client secret and its database
# CA. The package selects it in its WebApp; until then nothing reads it.
# for the portal, its settings file, its Dex client secret, its database CA
# and the send-only SES credential of the site's mail sender (platform#5400),
# which the portal uses for order confirmations and withdrawal receipts
# (business-site#21). The package selects it in its WebApp; until then nothing
# reads it, and the portal sends nothing while its flags are off.
#
# portal-settings is the portal's on/off switch. While sign-in is off it holds
# no settings, so the public site never depends on the portal database or the
Expand All @@ -26,6 +29,8 @@ spec:
# Portal sign-in is off (business-site#302).
portal-client-secret: "{{ .portal_client_secret }}"
portal-database-ca: "{{ .portal_database_ca }}"
smtp-username: "{{ .smtp_username }}"
smtp-password: "{{ .smtp_password }}"
data:
# The tenant's own owner-maintained disclosure, read through its own
# namespaced store exactly as the package's disclosure ExternalSecret does.
Expand Down Expand Up @@ -53,3 +58,21 @@ spec:
remoteRef:
key: apps/business-site/portal-db-ca
property: ca
# The mail sender's SES SMTP credential, read the same way as ZITADEL's
# zitadel-smtp: From no-reply@devantler.tech only.
- secretKey: smtp_username
sourceRef:
storeRef:
name: openbao
kind: ClusterSecretStore
remoteRef:
key: apps/business-site/smtp
property: username
- secretKey: smtp_password
sourceRef:
storeRef:
name: openbao
kind: ClusterSecretStore
remoteRef:
key: apps/business-site/smtp
property: password
Loading