Commit Graph

2432 Commits

Author SHA1 Message Date
fflorent
1309169e24 tests: simplify and disallow workers to call public URLs 2024-05-07 18:25:24 +02:00
fflorent
f90d3e5d58 Explain why we don't pass the Origin header in DocApiForwarder 2024-05-07 10:42:29 +02:00
Florent
f4defc0d78
Update comment in AppEndpoint.ts as suggested by Jordi
Co-authored-by: jordigh <jordigh@octave.org>
2024-05-07 08:45:23 +02:00
fflorent
539daf9286 PR remarks 2024-05-07 08:43:46 +02:00
fflorent
14b2bfa2ba Rename TestServerProxy to TestServerReverseProxy 2024-05-07 08:41:10 +02:00
fflorent
55a26c05fc Minor fixes 2024-05-07 08:41:10 +02:00
fflorent
99e6257929 Adapt tests 2024-05-07 08:41:10 +02:00
fflorent
47c8804a01 Use nip.io to have a specific hostname for proxy
Also use GRIST_ORG_IN_PATH to make it work as expected, and
GRIST_SINGLE_PORT=0 to ensure to query the pool of workers.
2024-05-07 08:41:10 +02:00
fflorent
ac2857cd85 Fix behing-proxy tests aren't running
The cause was that setup() first argument takes the name of the socket
used by home and doc servers to listen.
2024-05-07 08:41:10 +02:00
fflorent
a7bae9a6ba Use nip.io instead of non-standard .localhost tld
Quoting Wikipedia:
> The name localhost is a **commonly** defined hostname for the loopback
> interface in most TCP/IP systems, resolving to the IP addresses
> 127.0.0.1 in IPv4 and ::1 for IPv6.
2024-05-07 08:41:10 +02:00
fflorent
892d902382 Add tests 2024-05-07 08:41:10 +02:00
fflorent
c19a136f5c Fix form submission 2024-05-07 08:41:10 +02:00
fflorent
85fcfae7c5 Include Origin header depending on the call site 2024-05-07 08:41:10 +02:00
fflorent
3722fcddf3 Fix compiling errors 2024-05-07 08:41:10 +02:00
fflorent
968d14d702 Remove check of whether prefix is set 2024-05-07 08:41:10 +02:00
fflorent
9546a1e4ba Improve /api/workers/:docId worker to only send public urls 2024-05-07 08:41:10 +02:00
fflorent
1530953c3e Proposal for not requiring changing trustOrigin 2024-05-07 08:41:10 +02:00
fflorent
afa7aa2e6b Introduce isOwnInternalUrlHost for more clarity 2024-05-07 08:41:10 +02:00
fflorent
c061e49216 Cleanup 2024-05-07 08:41:10 +02:00
fflorent
e4e0ffe2cc Fix WS connection getting closed 2024-05-07 08:41:10 +02:00
fflorent
ef6957a92c attempt to fix issue with duplicate doc 2024-05-07 08:41:10 +02:00
fflorent
7e0e21613e WIP 2024-05-07 08:41:10 +02:00
Florent FAYOLLE
e251c2087b Introduce APP_HOME_INTERNAL_URL 2024-05-07 08:41:10 +02:00
Владимир В
51ec221a19
Translated using Weblate (Russian)
Currently translated at 99.6% (1252 of 1257 strings)

Translation: Grist/client
Translate-URL: https://hosted.weblate.org/projects/grist/client/ru/
2024-05-04 04:07:09 +02:00
gallegonovato
0c95821475
Translated using Weblate (Spanish)
Currently translated at 100.0% (1257 of 1257 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/grist/client/es/
Translation: Grist/client
2024-05-02 22:07:17 +02:00
Paul Janzen
4003a49eaf
Translated using Weblate (German)
Currently translated at 100.0% (1257 of 1257 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (1257 of 1257 strings)

Co-authored-by: Paul Janzen <pj@paulgjanzen.com>
Translate-URL: https://hosted.weblate.org/projects/grist/client/de/
Translate-URL: https://hosted.weblate.org/projects/grist/client/pt_BR/
Translation: Grist/client
2024-05-02 22:07:15 +02:00
Franček Prijatelj
24b39c651b
Translated using Weblate (Slovenian)
Currently translated at 99.0% (1226 of 1238 strings)

Co-authored-by: Franček Prijatelj <prijatelj.francek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/grist/client/sl/
Translation: Grist/client
2024-05-01 21:07:13 +02:00
Владимир В
2814bdbce3
Translated using Weblate (Russian)
Currently translated at 99.5% (1233 of 1238 strings)

Co-authored-by: Владимир В <vakukh@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/grist/client/ru/
Translation: Grist/client
2024-05-01 21:07:13 +02:00
gallegonovato
bc03800a8b
Translated using Weblate (Spanish)
Currently translated at 100.0% (1238 of 1238 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/grist/client/es/
Translation: Grist/client
2024-05-01 21:07:13 +02:00
Paul Janzen
86e2708dd3
Translated using Weblate (German)
Currently translated at 100.0% (1238 of 1238 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 98.6% (1221 of 1238 strings)

Co-authored-by: Paul Janzen <pj@paulgjanzen.com>
Translate-URL: https://hosted.weblate.org/projects/grist/client/de/
Translate-URL: https://hosted.weblate.org/projects/grist/client/pt_BR/
Translation: Grist/client
2024-05-01 21:07:13 +02:00
github-actions[bot]
b8315a83d6
automated update to translation keys (#959)
Co-authored-by: Paul's Grist Bot <paul+bot@getgrist.com>
2024-04-30 15:22:44 -04:00
Franček Prijatelj
6df2cd713c
Translated using Weblate (Slovenian)
Currently translated at 96.8% (1185 of 1223 strings)

Co-authored-by: Franček Prijatelj <prijatelj.francek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/grist/client/sl/
Translation: Grist/client
2024-04-30 20:08:01 +02:00
Paul Janzen
5b946751f2
Translated using Weblate (German)
Currently translated at 100.0% (1223 of 1223 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 97.7% (1195 of 1223 strings)

Co-authored-by: Paul Janzen <pj@paulgjanzen.com>
Translate-URL: https://hosted.weblate.org/projects/grist/client/de/
Translate-URL: https://hosted.weblate.org/projects/grist/client/pt_BR/
Translation: Grist/client
2024-04-30 20:08:01 +02:00
Bertille Mazari
02c8b4d798
Translated using Weblate (French)
Currently translated at 99.7% (1220 of 1223 strings)

Co-authored-by: Bertille Mazari <bertille@opensourcepolitics.eu>
Translate-URL: https://hosted.weblate.org/projects/grist/client/fr/
Translation: Grist/client
2024-04-30 20:08:00 +02:00
Paul Fitzpatrick
b9808944d7
tweak admin test to also work under grist-core settings (#960) 2024-04-29 21:57:02 -04:00
Paul Fitzpatrick
87c0c5153d (core) updates from grist-core 2024-04-29 20:52:59 -04:00
Paul Fitzpatrick
d431c1eb63 (core) add a sandbox check to admin panel, and start reconciling boot and admin pages
Summary:
This adds a basic sandbox check to the admin panel. It also makes
the "probes" used in the boot page available from the admin panel,
though they are not yet displayed. The sandbox check is built as
a probe.

In the interests of time, a lot of steps had to be deferred:
 * Reconcile fully the admin panel and boot page. Specifically, the
   admin panel should be equally robust to common configuration problems.
 * Add tests for the sandbox check.
 * Generalize to multi-server setups. The read-out will not yet be useful
   for setups where doc workers and home servers are configured
   separately.

Test Plan: Added new test

Reviewers: jarek, georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D4241
2024-04-29 20:52:39 -04:00
Jordi Gutiérrez Hermoso
61cb80d4e3 (core) Security updates for package.json following version bump update from grist-core
Summary: Fix the build and tests following version bump from [#921](https://github.com/gristlabs/grist-core/pull/921) from grist-core

Test Plan: Existing tests pass

Reviewers: georgegevoian, jordigh

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D4239
2024-04-29 18:50:56 -04:00
Jarosław Sadziński
ecf242c6c6 (core) Adding latest version section to the admin panel.
Summary:
Update for the admin page to show the latest available version information.
- Latest version is read from docs.getgrist.com by default
- It sends basic information (installationId, deployment type, and version)
- Checks are done only on the page itself
- The actual request is routed through the API (to avoid CORS)

Test Plan: Added new test

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D4238
2024-04-29 21:59:36 +02:00
github-actions[bot]
b87ade6149
automated update to translation keys (#957)
Co-authored-by: Paul's Grist Bot <paul+bot@getgrist.com>
2024-04-29 15:58:34 -04:00
Paul Fitzpatrick
a3442aee77 (core) updates from grist-core 2024-04-29 15:01:40 -04:00
fflorent
b04304342d Strict version in package.json 2024-04-29 14:54:36 -04:00
fflorent
71b282669d Fix moment version (so the parseDate pass) 2024-04-29 14:54:36 -04:00
fflorent
144f09ca36 Attempt yarn-audit-fix 2024-04-29 14:54:36 -04:00
fflorent
54a8f63f28 Fix yarn.lock 2024-04-29 14:54:36 -04:00
fflorent
9bacfc8287 Use chokidar to bundle css files 2024-04-29 14:54:36 -04:00
fflorent
2f4122905d Remove useless export 2024-04-29 14:54:36 -04:00
fflorent
0224f22705 Fix warning in webpack 2024-04-29 14:54:36 -04:00
fflorent
14061fd5ac Remove catw 2024-04-29 14:54:36 -04:00
fflorent
920eb09b3b Fix ManyFetches test so it checks TEST_REDIS_URL is set 2024-04-29 14:54:36 -04:00