Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ForceReset Password Fail due to malformed URL #293

Open
2 tasks
mricartx opened this issue Sep 23, 2024 · 2 comments
Open
2 tasks

ForceReset Password Fail due to malformed URL #293

mricartx opened this issue Sep 23, 2024 · 2 comments
Labels
bug Something isn't working new Needs triage

Comments

@mricartx
Copy link

mricartx commented Sep 23, 2024

Expected vs actual behavior

After first installation , you should reset your administrator password , but it fails because of a malformed URL requesting config.js.
Also the browser detect some errors in config.js.
Finally password change could not be performed , due to a timeout.

Steps to reproduce the bug

  1. Run a clean install using Helm Chart
  2. Once you recovered Admin credentials, access to console URL and login .
  3. You will be prompted to change your admin password but when you press "Set password" button Nothing happens .

Are you using the latest version of the project?

Using Helm ztka-0.2.9 chart version v0.2.8 with Dashboard image v0.2.3 .

You can check your version by running helm ls|grep '^<deployment-name>' or using pctl, pctl version, and provide the output.
In the browser we can check that the UI is trying to get this URL that doesn't exist : https://console.your.domain.com/%PUBLIC_URL%/config.js

What is your environment setup? Please tell us your cloud provider, operating system, and include the output of kubectl version --output=yaml and helm version. Any other information that you have, eg. logs and custom values, is highly appreciated!

K8S 1.25.8

(optional) If you have ideas on why the bug happens or how it can be solved, please provide it here

In the browser we can check that the UI is trying to get this URL that doesn't exist : https://console.your.domain.com/%PUBLIC_URL%/config.js
Check public\index.template file line 41 .
Browser also complains about config.js syntax.

  • I've described the bug, included steps to reproduce it, and included my environment setup with all customizations.
  • I'm using the latest version of the project.
@mricartx mricartx added bug Something isn't working new Needs triage labels Sep 23, 2024
@Guberlo
Copy link

Guberlo commented Nov 6, 2024

I've just tried to deploy Paralus using the helm chart and occurred to the same problem as you.

Any updates on that?

@mricartx
Copy link
Author

mricartx commented Nov 12, 2024

Hi @Guberlo ,
I've downloaded the Helmlcharts file locally and then I've modified the dashboard deployment template.
https://github.com/paralus/helm-charts/tree/main/charts/ztka/templates/deployment-dashboard.yaml
Added this before line 40 (ports):
command: ['sh', '-c', 'sed -i "s/%PUBLIC_URL%//g" ./usr/share/nginx/html/index.html ; nginx -g "daemon off;" ']

Also you can make Postgres database reachable outside K8S creating a NodePort Service .
With your prefered database viewer , you can modify public.identities table and edit Admin user by changing metadata_public JSON value with "ForceReset": false.
Once saved , you won't be prompted to reset Admin password at next login .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new Needs triage
Projects
None yet
Development

No branches or pull requests

2 participants