This does not affect security because:
- it is going to localhost only
- only users who have already access to the pw hash can do this
- no clear text pw is transmitted because that is not stored anywhere
The switch to basic is required because these commands are required
in the context of hosting on root servers and docker containers
where a password change must be done. But the password shell command
was not working without password which made the concept unusable.
This deficit made it virtually impossible for root server operators
to use YaCy because they had been unable to set up a proper password.
finalStringb64=Base64Order.standardCoder.encodeString(foruser+":"+adminAccountBase64MD5);// TODO: is this valid? ; consider "MD5:" prefixed config
if((credentials.substring(6)).equals(b64))returnnull;// lazy authentification for local access with credential from config (only a user with read access to DATA can do that)
if((credentials.substring(6)).equals(b64))returnnull;// lazy authentication for local access with credential from config (only a user with read access to DATA can do that)