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

Allow only authorised user to fill out setup wizard #2436

Open
1 task
hardillb opened this issue Jul 7, 2023 · 5 comments
Open
1 task

Allow only authorised user to fill out setup wizard #2436

hardillb opened this issue Jul 7, 2023 · 5 comments
Labels
area:install Part of the install/first-run user experience size:S - 2 Sizing estimation point story A user-oriented description of a feature

Comments

@hardillb
Copy link
Contributor

hardillb commented Jul 7, 2023

Epic

#1942

Description

As a: FlowForge Admin

I want to: be able to securely deploy FF publicly

So that: nobody can use the setup wizard before me to create the first admin user

Which customers would this be availble to

All Users, (CE)

Acceptance Criteria

  • Setup Wizard protected

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

@hardillb hardillb added story A user-oriented description of a feature size:S - 2 Sizing estimation point area:install Part of the install/first-run user experience labels Jul 7, 2023
@hardillb
Copy link
Contributor Author

hardillb commented Jul 7, 2023

I suggest a flag (cmd line, in the flowforge.yml, or both) that will generate a random password on startup, log this and require it to be entered to complete the setup wizard.

@hardillb
Copy link
Contributor Author

hardillb commented Jul 7, 2023

This is a requirement for AWS container based applications.

@ZJvandeWeg
Copy link
Member

@hardillb why not create an admin user instead, with a generated password they're forced to update after signing in? I think we have the plumbing for password expiry already.

@hardillb
Copy link
Contributor Author

That might work. I will have to work out what that will do to the setup wizard

@hardillb
Copy link
Contributor Author

OK, I have this working.

If create_admin: true is added to the etc/flowforge.yml then the setup wizard will create a user with the following details:

And a random 8 char password. The password will be printed to the logs as follows:

[2023-07-10T09:58:42.277Z] INFO: [SETUP] Created default Admin User
[2023-07-10T09:58:42.277Z] INFO: [SETUP] username: admin
[2023-07-10T09:58:42.277Z] INFO: [SETUP] password DoVRk0OW

The user will be prompted to change the password after the wizard completes when they try and log in for the first time, the wizard will still ask for license and telemetry.

We will need to add an entry in the docs to explain how to change the email address and name.

hardillb added a commit that referenced this issue Jul 10, 2023
part of #2436

This will create a new admin user when the setup wizard runs if
none already exist and `create_admin: true` in the
`etc/flowforge.yml` file

This is to meet a AWS requirement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:install Part of the install/first-run user experience size:S - 2 Sizing estimation point story A user-oriented description of a feature
Projects
Status: No status
Development

No branches or pull requests

2 participants