Update development authored by Kees van den Broek's avatar Kees van den Broek
...@@ -107,7 +107,7 @@ Follow ...@@ -107,7 +107,7 @@ Follow
[instructions](https://gitlab.com/appsemble/appsemble/tree/master/config/charts/appsemble#new-installation) [instructions](https://gitlab.com/appsemble/appsemble/tree/master/config/charts/appsemble#new-installation)
from the Appsemble Helm chart to set up secrets for both the `review` and `staging` namespace. from the Appsemble Helm chart to set up secrets for both the `review` and `staging` namespace.
An app password for GMail SMTP can be created [here](https://myaccount.google.com/u/1/apppasswords). An app password for SMTP should be obtained first (from Bitwarden).
The Sentry DSNs can be found The Sentry DSNs can be found
[here](https://sentry.io/settings/d-centralize/projects/appsemble/keys/). [here](https://sentry.io/settings/d-centralize/projects/appsemble/keys/).
...@@ -119,13 +119,13 @@ kubectl create secret generic appsemble \ ...@@ -119,13 +119,13 @@ kubectl create secret generic appsemble \
--namespace review \ --namespace review \
--from-literal "secret=$(openssl rand -base64 30)" --from-literal "secret=$(openssl rand -base64 30)"
kubectl create secret generic smtp \ kubectl create secret generic smtp \
--namespace review --namespace review \
--from-literal 'host=smtp.gmail.com' \ --from-literal 'host=smtp.appsemble.app' \
--from-literal 'port=465' \ --from-literal 'port=465' \
--from-literal 'secure=true' \ --from-literal 'secure=true' \
--from-literal 'user=admin@appsemble.com' \ --from-literal 'user=noreply@appsemble.app' \
--from-literal "pass=$GMAIL_APP_PASSWORD" \ --from-literal "pass=$EMAIL_APP_PASSWORD" \
--from-literal 'from=Appsemble (review) <noreply@appsemble.com>' --from-literal 'from=Appsemble (review) <noreply@appsemble.app>'
kubectl create secret generic postgresql-secret \ kubectl create secret generic postgresql-secret \
--namespace review \ --namespace review \
--from-literal "postgresql-password=$(uuidgen)" \ --from-literal "postgresql-password=$(uuidgen)" \
...@@ -136,6 +136,11 @@ kubectl create secret generic sentry \ ...@@ -136,6 +136,11 @@ kubectl create secret generic sentry \
--from-literal "dsn=$SENTRY_DSN" --from-literal "dsn=$SENTRY_DSN"
``` ```
To replace a secret, first remove it:
```
kubectl delete secret smtp --namespace review
```
and the following for staging: and the following for staging:
```sh ```sh
... ...
......