# Mailu Admin Credentials Secret
# This secret stores the initial admin account password for Mailu
#
# The password is used by the Helm chart's initialAccount feature to create
# the admin user automatically during deployment.
#
# IMPORTANT: Replace the base64-encoded password before applying!
#
# To generate a secure password and encode it:
#   PASSWORD=$(openssl rand -base64 16 | tr -d '/+=' | head -c 16)
#   echo -n "$PASSWORD" | base64
#
# To apply this secret:
#   kubectl apply -f mailu-admin-credentials-secret.yaml -n bakery-ia
#
# After deployment, you can log in to the Mailu admin panel at:
#   https://mail.<domain>/admin
#   Username: admin@<domain>
#   Password: <the password you set>
#
apiVersion: v1
kind: Secret
metadata:
  name: mailu-admin-credentials
  namespace: bakery-ia
  labels:
    app.kubernetes.io/name: mailu
    app.kubernetes.io/component: admin
type: Opaque
data:
  # Base64-encoded password
  # Example: "changeme123" = Y2hhbmdlbWUxMjM=
  # IMPORTANT: Replace with your own secure password!
  password: "Y2hhbmdlbWUxMjM="
