dosubot[bot] commented on issue #8018:
URL:
https://github.com/apache/incubator-devlake/issues/8018#issuecomment-2338320574
<!-- Greeting -->
Hey @diwangcanada! I'm here to help you with any bugs, questions, or
contributions. Let's work together to solve this issue.
<!-- Answer -->
The DevLake UI redirects to the migration page after a fresh installation on
a GKE cluster using the provided Helm chart because the `ENCRYPTION_SECRET`
environment variable is required to encrypt sensitive information in the
database. If this secret is not set correctly, the application will not
function properly and may redirect to the migration page.
To ensure the `ENCRYPTION_SECRET` is set correctly, follow these steps
during installation:
1. Generate a secure encryption key:
```shell
openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1
```
2. Set the `ENCRYPTION_SECRET` environment variable:
```shell
export ENCRYPTION_SECRET="copied string"
```
3. Install the Helm chart with the encryption secret:
```shell
helm repo add devlake
https://apache.github.io/incubator-devlake-helm-chart
helm repo update
helm install devlake devlake/devlake --version=1.0.1-beta9 --set
lake.encryptionSecret.secret=$ENCRYPTION_SECRET --set commonEnvs.TZ="EST" --set
grafana.env.TZ="EST" -n devlake
```
Ensure that the `ENCRYPTION_SECRET` is kept safe and is correctly set during
the installation process
<sup>[[1]](https://github.com/apache/incubator-devlake-website/blob/main/docs/GettingStarted/HelmSetup.md)</sup><sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.21/GettingStarted/HelmSetup.md)</sup><sup>[[3]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v1.0/GettingStarted/HelmSetup.md)</sup><sup>[[4]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.18/GettingStarted/HelmSetup.md)</sup><sup>[[5]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.20/GettingStarted/HelmSetup.md)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]