-
Notifications
You must be signed in to change notification settings - Fork 15
IBX-9898: Added mandatory admin user password altering on ibexa:install
#525
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
base: main
Are you sure you want to change the base?
Conversation
ibexa:install
ibexa:install
@ibexa/documentation I've added this to upgrade from 4.6 to 5.0 internal doc and marked it as a significant, but necessary, BC break. FYI @glye you might want to take a look at this. This is a security improvement (not a security issue ;) ). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for the concept, with remarks from the internal discussion.
I'd suggest adding a |
src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php
Outdated
Show resolved
Hide resolved
That was the plan actually. |
You should use |
@konradoboza I suggest this with small modification :) `For security reasons, you're required to change the default admin password. If password isn't accepted now, you can still update it after the installation, using the following command:` |
Thanks @juskora! If it indeed works with retries as Paweł suggests we might not need that. Otherwise, I will apply your suggestion at once. 😉 |
src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php
Outdated
Show resolved
Hide resolved
src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In terms of microcopy :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great feature, thanks!
src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php
Outdated
Show resolved
Hide resolved
The Behat tests setup needs to be slightly adjusted to skip checking the password. Probably |
c53addf
to
b0f3010
Compare
|
FYI : |
Good catch, thank you. This should do the trick ibexa/post-install#91. |
Could you also add the possibility to provide password as command line argument? |
If you consider this for Ibexa Cloud installations I don't think this is safe to pass that in plain text and put in |
I think it is valid use-case to be able to install Ibexa DXP with a custom password without having to be prompted by the installer. For Ibexa Cloud I actually think we in addtion should have a |
We discussed this topic within the team and the outcome is that we don't want to have plain password passed as a parameter in commands (including
This is a bit tricky cause we need to have this password generated and validated against all the current constraints residing in The main idea here was to quickly resolve issue with the default Thank you for good suggestions, those should definitely be documented. @glye could I kindly ask you to include the above in your notes? 😉 |
Description:
We don't want to risk having the default
admin:publish
scenario for the new installations so I added invocation of existing command for updating user password.Since there in no obvious way to perform retry, I added exhaustive explanation on how admin default password should be altered afterwards in case it does not go through validation. Wording can be probably better so I allow myself to ask @juskora for help here. 😉Retries are apparently possible as @Steveb-p nicely pointed out - added as below:
Note:
There are two unrelated PHPStan reports. While there are easy to fix, I don't want to give you additional load of rebasing since you handle upgrading to Sf7 already @alongosz. However, if it ticks one of the issues from the list I can do that on this very occasion with a little hassle.
Documentation: