Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
- a pepper key used to encrypt local user passwords
- where external authorisation is required, usernames and passwords for:
borderColor | #7da054 |
---|---|
titleColor | white |
titleBGColor | #7da054 |
borderStyle | solid |
title | Sections on this page |
secretpass
"%JAVA_HOME%\bin\"secretsecretpass"%JAVA_HOME%\bin\"secretsecretpass$JAVA_HOME/bin/secretsecretpass$JAVA_HOME/bin/secretsecretpassTip |
---|
The keytool does not differentiate between the secrets it stores so it always prompts for a "password". Sometimes you will need to enter a username and others a password. |
Understanding How PhixFlow Uses A Keystore
This sectionPepperkye
If you have local users you also need to set up a Pepperkey
Wikipedia article on Pepper Encrytption
Datasource instances or email
todo
Keytool Syntax
For reference, here is the keytool command syntax.
Code Block |
---|
<keytool> -importpass -alias <key> -keystore <file> -storetype <type> |
<keytool>
"%JAVA_HOME%\bin\keytool.exe"
&"$env:JAVA_HOME\bin\keytool.exe"
$JAVA_HOME/bin/keytool
<key>
The alias/key for a username or password.
After you enter an alias, the keytool prompts you to enter the corresponding data, usually a username or password.
The full path to the keystore file, for example:
- Windows
C:\secure\name.jks
- Linux
/opt/secure/name.jks
How PhixFlow authenticates to its database using a keystore
Is it better to just disable it in PhixFlow
(This sounds like a security back door though)Details used in the diagram | ||
---|---|---|
Keystore file name | hidden.jks | |
Keystore password | storepw | |
Environment variable name | KEY_PASS | |
Environment variable value (the keystore password) | storepw | |
PhixFlow database credentials | Username | Password |
Actual |
| P*59word |
Alias | phixflow-database-user | phixflow-database-password |
Possibly another page??
Local User Password Encrytption
PhixFlow users can be set up as
- external - all user authentication and permissions are handled externally for example by a SAML single-sign-on service or Active Directory.
- mixed - user authentication is handled externally but a assigned to user groups in PhixFlow, which handle permissions
- local - both user authentication and permissions are handled locally
For local users only, you can configure an added layer of security. PhixFlow one-way encrypts user passwords and the answers to user security questions.
AND uses a pepper key from the keystore to get an additional string to add to the password. The pepper key is tied to the PhixFlow instance
Note |
---|
You can export/import user accounts from one instance to another. However their passwords will not work in the new instance because the pepperkey will be different. The user will need to have their password reset in the import instance. |
To check a passowrd or answer, PhixFlow identifies which method has been used to encrypt it, and uses the same method to encrypt the string supplied by the user. PhixFlow then compares the two encrypted versions and ensures these match.
In version 8.3.0 PhixFlow switched to using Bcrypt as its method of encrypting data.
phixflow-login.xml includes a list for the encoders. Phixflow will check for
Bcrypt
legacy (used prior to 8.3.0
startup - used for the initital administrator login to a new installation
How to move passwords to the new encoder
For PhixFlow instances upgraded to 8.3.0
Your local users will have passwords and security questions that require the legacy encoder. You can continue to run with this. However, to ensure your system is using the more secure Bcrypt and one-way encoding we recommend users change their passwords and their security answers as soon as possible.
When a user changes their password/answers, it is automatically encrypted with the new Bcrypt encode.
Making phixflow-login.xml more secure
Consider the following change
For new installations at 8.3.0 onwards, all passwords and answers will be using Bcrypt.
For upgraded instaances, when all passwords and answers are using Bcrypt
Update phixflow-login.xml to comment out the legacy line.
Warning |
---|
commenting out the legacy line will prevent any remaining passwords or answers from working. There is no way to check this in advance. If answers are still encrypted using the legacy encoder, then they will only find out if they need to reset their password. |
Consider the following change when you have an administrator login set up for your installation
Update phixflow-login.xml to comment out the startup line. This will automatically disable the startup user. If you subseqently have problems that mean you cannot log into the sytem, you can re-enable the startup user from outside PhixFlow.
Note |
---|
The default keystore filename set in |