Commit graph

6248 commits

Author SHA1 Message Date
David Mehren
3cff7f861a fix(console-logger): don't sanitize colors away
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>
2022-04-17 21:51:03 +02:00
Philip Molares
819dd8f568 docs(dev): add developer documentation about ldap
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>
2022-04-17 21:05:13 +02:00
Philip Molares
b4e62c8425 feat: add ldap login to auth controller
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-04-17 21:05:13 +02:00
Philip Molares
82dd9f8885 feat: add ldap strategy
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-04-17 21:05:13 +02:00
Philip Molares
90d97689fd feat: add ldap support methods
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-04-17 21:05:13 +02:00
Philip Molares
174eee8f0a test: ldap auth config
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-04-17 21:05:13 +02:00
Philip Molares
6181e586bf fix: ldap auth config
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-04-17 21:05:13 +02:00
Philip Molares
98db69448c feat: add logging to local.strategy.ts
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-04-17 21:05:13 +02:00
Philip Molares
1c9d228658 chore: add ldapauth-fork dependency
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>
2022-04-17 21:05:13 +02:00
Philip Molares
5dfb668484 chore: add passport-custom dependency
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>
2022-04-17 21:05:13 +02:00
Philip Molares
ec6e66b6a8 test: add authConfig tests for ldap
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>
2022-04-17 21:05:13 +02:00
Philip Molares
91d7f1a529 fix: error in toArrayConfig
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>
2022-04-17 21:05:13 +02:00
Philip Molares
5db2229771 fix: error in replaceAuthErrorsWithEnvironmentVariables
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>
2022-04-17 21:05:13 +02:00
Renovate Bot
d4fa1ad45a Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-17 19:32:54 +02:00
Renovate Bot
3547fa8ebf Update jest
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-17 13:35:45 +02:00
Renovate Bot
81e07bff60 Update dependency react-redux to v8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-17 13:35:08 +02:00
Renovate Bot
3eaab0aac5 Update dependency emoji-picker-element to v1.11.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-17 13:33:00 +02:00
Renovate Bot
9a4f625d81 Update dependency @types/react to v18.0.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-17 13:32:42 +02:00
Renovate Bot
dd1825486c fix(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-16 10:06:58 +02:00
Renovate Bot
54364adf60 chore(deps): update linters to v5.19.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-16 10:06:43 +02:00
Renovate Bot
d7908ddfb4 chore(deps): update node.js to f61706c
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-16 04:45:31 +00:00
Erik Michelson
26f90505ff
Adapt react-client to use the real backend API (#1545)
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-15 23:03:15 +02:00
Renovate Bot
3399ed2023 Update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 12:16:52 +02:00
Renovate Bot
bc6cfcbeb2 Update nextjs monorepo to v12.1.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 12:06:42 +02:00
renovate[bot]
070fd3fc93
Update definitely typed (#1978)
* Update definitely typed

Signed-off-by: Renovate Bot <bot@renovateapp.com>

* Downgrade @types/react to 18.0.1

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-15 09:59:20 +00:00
Renovate Bot
101d26dfd6 Update i18next
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 11:49:56 +02:00
Renovate Bot
bc797ee910 Update dependency netlify-cli to v9.16.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 11:44:12 +02:00
Tilman Vatteroth
cf8ad9e16f Update Cypress browsers to node16.13.2-chrome100-ff98
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-15 11:38:43 +02:00
Renovate Bot
337faf8105 Update dependency @uiw/react-codemirror to v4.6.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 11:26:58 +02:00
Renovate Bot
5a1e6666b6 Update jest
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 11:21:23 +02:00
Renovate Bot
50ba408f91 Update dependency highlight.js to v11.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 11:16:38 +02:00
Renovate Bot
929c1900ca Update dependency cypress to v9.5.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 11:12:29 +02:00
Renovate Bot
5a23e615bf Update actions/cache action to v3.0.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 11:05:16 +02:00
Erik Michelson
e7be5e1996 Fix duplicated badge in README
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-04-15 00:09:49 +02:00
Tilman Vatteroth
0c873b0f97 Replace "use-resize-observer" with "@react-hook/resize-observer"
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-14 23:50:00 +02:00
Philip Molares
87041f84ce test: test sanitize method
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-04-14 16:19:48 +02:00
Philip Molares
2467b1250f feat: add sanitization to logger service
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-04-14 16:19:48 +02:00
Renovate Bot
3266562ac2 Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-10 21:11:58 +02:00
Renovate Bot
318f60adbf Update dependency react-i18next to v11.16.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-10 21:00:41 +02:00
Tilman Vatteroth
e9abecb2d0 Regenerate yarn.lock
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 20:36:21 +02:00
Tilman Vatteroth
931302cbec Fix react 18 changes
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 20:36:21 +02:00
Renovate Bot
833a5d35a4 Update jest
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 20:36:21 +02:00
Renovate Bot
d7014433c4 Update definitely typed
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 20:36:21 +02:00
Renovate Bot
dd17a2a22f Update react to v18
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-10 20:36:21 +02:00
Tilman Vatteroth
62ece767e1 Remove Firefox from CI
Okay I'm just done. Firefox in our current CI is just the WORST. It is slower than chrome and crashes A LOT! Like really! The e2e workflows of some PRs have to run 4 or 5 times because firefox decides to just lose the connection.
This may also be caused by the performance of GHA, but right now it's easier to (temporally) remove firefox than switching to a whole new CI.
Just to be clear: I know that this step isn't optimal. I know that a huge part of our community uses firefox. But right now the flakiness of the firefox CI runs drives me crazy!
At the moment we need the e2e tests just for our development to make sure that we don't accidentally break something.
We can re-add firefox again when it's stable to use. Or when we have shifted enough of the e2e tests to jest. It would be nice to test other browsers (like safari or edge) as well.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 20:05:21 +02:00
Renovate Bot
bc8caadff8 Update dependency d3-graphviz to v4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-10 20:03:52 +02:00
Renovate Bot
581f0da37a Update i18next
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-10 13:20:22 +02:00
Renovate Bot
d2b9d41a52 Update dependency mermaid to v9
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-10 12:52:31 +02:00
Renovate Bot
f1f1d8cc94 chore(deps): update codecov/codecov-action action to v3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-10 10:06:01 +02:00
Renovate Bot
c879132ab4 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-10 10:05:44 +02:00