gristlabs_grist-core/test/gen-server
George Gevoian ecff88bd32 (core) Add installation/site configuration endpoints
Summary:
A new set of endpoints for managing installation and site configuration have been added:
 - GET `/api/install/configs/:key` - get the value of the configuration item with the specified key
 - PUT `/api/install/configs/:key` - set the value of the configuration item with the specified key
     - body: the JSON value of the configuration item
 - DELETE `/api/install/configs/:key` - delete the configuration item with the specified key
 - GET `/api/orgs/:oid/configs/:key` - get the value of the configuration item with the specified key
 - PUT `/api/orgs/:oid/configs/:key` - set the value of the configuration item with the specified key
     - body: the JSON value of the configuration item
 - DELETE `/api/orgs/:oid/configs/:key` - delete the configuration item with the specified key

Configuration consists of key/value pairs, where keys are strings (e.g. `"audit_logs_streaming_destinations"`) and values are JSON, including literals like numbers and strings. Only installation admins and site owners are permitted to modify installation and site configuration, respectively.

The endpoints are planned to be used in an upcoming feature for enabling audit log streaming for an installation and/or site. Future functionality may use the endpoints as well, which may require extending the current capabilities (e.g. adding support for storing secrets, additional metadata fields, etc.).

Test Plan: Server tests

Reviewers: paulfitz, jarek

Reviewed By: paulfitz, jarek

Subscribers: jarek

Differential Revision: https://phab.getgrist.com/D4377
2024-10-16 14:55:34 -04:00
..
lib (core) New look for site switcher in top-left corner, with support for per-org logos 2024-10-08 10:43:26 +02:00
ApiServer.ts (core) Add new home page cards 2024-09-17 17:32:10 -04:00
ApiServerAccess.ts Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
ApiServerBenchmark.ts (core) move apiserver tests to core, disentangling notifier+billing parts 2023-12-26 08:43:12 -05:00
ApiServerBugs.ts Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
ApiSession.ts (core) Customizable stripe plans. 2024-05-19 09:09:19 +02:00
apiUtils.ts Make changes required for Desktop FS updates (#1099) 2024-09-16 21:01:58 -04:00
AuthCaching.ts Make changes required for Desktop FS updates (#1099) 2024-09-16 21:01:58 -04:00
migrations.ts (core) Add installation/site configuration endpoints 2024-10-16 14:55:34 -04:00
seed.ts (core) Fixing lock issues and reverting back to single connection. 2024-09-11 20:48:52 +02:00
testUtils.ts Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
UpdateChecks.ts (core) Enabling telemetry on /api/version endpoint 2024-06-27 12:05:15 +02:00