Mealie requires OIDC_CLIENT_SECRET even though its docs say "public client with PKCE". The token exchange happens server-side in Mealie's Python backend, so the secret never reaches the browser. - Generate client secret, store in 1Password - Add to Authentik external-secret and worker env - Switch blueprint from public to confidential - Add ExternalSecret for mealie namespace - Update docs to reflect confidential client Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
79 lines
2.2 KiB
YAML
79 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mealie
|
|
namespace: mealie
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: mealie
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mealie
|
|
spec:
|
|
containers:
|
|
- name: mealie
|
|
image: registry.ops.eblu.me/blumeops/mealie:kustomized
|
|
ports:
|
|
- containerPort: 9000
|
|
env:
|
|
- name: BASE_URL
|
|
value: "https://meals.ops.eblu.me"
|
|
- name: ALLOW_SIGNUP
|
|
value: "false"
|
|
- name: TZ
|
|
value: "America/Los_Angeles"
|
|
- name: MAX_WORKERS
|
|
value: "1"
|
|
- name: WEB_CONCURRENCY
|
|
value: "1"
|
|
# OIDC — Authentik (public client, PKCE)
|
|
- name: OIDC_AUTH_ENABLED
|
|
value: "true"
|
|
- name: OIDC_CONFIGURATION_URL
|
|
value: "https://authentik.ops.eblu.me/application/o/mealie/.well-known/openid-configuration"
|
|
- name: OIDC_CLIENT_ID
|
|
value: "mealie"
|
|
- name: OIDC_CLIENT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: mealie-oidc
|
|
key: client-secret
|
|
- name: OIDC_AUTO_REDIRECT
|
|
value: "false"
|
|
- name: OIDC_PROVIDER_NAME
|
|
value: "Authentik"
|
|
- name: OIDC_ADMIN_GROUP
|
|
value: "admins"
|
|
- name: OIDC_SIGNUP_ENABLED
|
|
value: "true"
|
|
- name: OIDC_USER_CLAIM
|
|
value: "email"
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /app/data
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "1000Mi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /api/app/about
|
|
port: 9000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /api/app/about
|
|
port: 9000
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: mealie-data
|