The primaryAddress field of a note contained the internal UUID of the note when no primary alias was defined instead of the public note id.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2467b125 mistakenly applied the sanitize function
to the log messages *after* the color was applied.
This commit reverses the order to un-break colored logs.
Signed-off-by: David Mehren <git@herrmehren.de>
This explains how a developer is able to get a ldap server up and running and configure HedgeDoc to use it quickly.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This is used to implement a custom passport strategy for ldap auth since the passport-ldap package can only handle one ldap server and not multiple like we want.
This dependency was chosen, because it's the same lib that powers the passport-ldap package used in HedgeDoc 1.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This is used to implement a custom passport strategy for ldap auth since the passport-ldap package can only handle one ldap server and not multiple like we want.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This tests the ldap part of the authConfig. Other tests shall be added as the auth method is implemented.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
If an empty string or undefined is provided the method should not return [], but undefined instead. This way defaults defined in Joi function as expected.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
The method should only change error messages if it was called with the correct parameters. Otherwise the function would change e.g `.url` in the error message to `_URL` and the regex is not able to change the front of the error message.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This adds a new workflow performing these steps:
- A development docker image is built and pushed to GHCR as
'hedgedoc-ci' labeled with the commit hash
- Tests are run with the image
- If the tests are successful, a production image is built and
pushed to GHCR as 'hedgedoc' labeled with the branch, version tag
if available and the commit hash
At a later time, the built dev image can also be used to run E2E tests
with the other supported databases. Currently, this is not yet possible,
as the database is always expected to run on localhost, not other hosts.
Signed-off-by: David Mehren <git@herrmehren.de>