gristlabs_grist-core/test/server/lib
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
..
helpers Make changes required for Desktop FS updates (#1099) 2024-09-16 21:01:58 -04:00
ACLFormula.ts (core) Support user variable in dropdown conditions 2024-06-04 06:56:55 -07:00
ACLRulesReader.ts (core) Fix null references in form fields bug 2024-04-12 15:46:21 -07:00
Assistance.ts switch default LLM from a model that is going away (#1202) 2024-09-13 14:56:42 -04:00
Authorizer.ts (core) Add audit logging machinery 2024-09-12 12:13:41 -04:00
config.ts config: remove all async/await around config read functions 2024-07-18 14:32:46 -04:00
configCore.ts config: remove all async/await around config read functions 2024-07-18 14:32:46 -04:00
configCoreFileFormats.ts config: remove all async/await around config read functions 2024-07-18 14:32:46 -04:00
DocApi2.ts (core) Adding UI for timing API 2024-05-22 14:56:53 +02:00
DocApi.ts (core) Adding backend for 2-way references 2024-09-11 22:31:36 +02:00
GranularAccess.ts Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
GristAuditLogger.ts (core) Add more audit logging data/events 2024-09-23 12:57:35 -04:00
GristJobs.ts (core) change version of redis used in Jenkins tests 2024-10-03 17:56:33 -04:00
GristSockets.ts (core) Fix unhandledRejection caused by exception from verifyClient. 2024-08-15 17:32:44 -04:00
HostedStorageManager.ts Fixes an import error when using S3/Minio with no redis (#1224) 2024-10-07 05:42:27 +01:00
InstallConfig.ts (core) Add installation/site configuration endpoints 2024-10-16 14:55:34 -04:00
ManyFetches.ts Fix ManyFetches test so it checks TEST_REDIS_URL is set 2024-04-29 14:54:36 -04:00
MemoryPool.ts (core) Manage memory used for websocket responses to reduce the risk of server crashes. 2023-08-07 11:28:31 -04:00
MinIOExternalStorage.ts Shutdown Doc worker when it is not considered as available in Redis #831 (#856) 2024-04-04 10:25:42 -04:00
OIDCConfig.ts OIDC: allow configuring the request timeout (#1177) 2024-09-03 17:10:18 -04:00
OrgConfig.ts (core) Add installation/site configuration endpoints 2024-10-16 14:55:34 -04:00
ProxyAgent.ts (core) Add logging of errors whenever ProxyAgent is used, and a test for it. 2023-05-17 10:21:53 -04:00
Telemetry.ts (core) Admin Panel and InstallAdmin class to identify installation admins. 2024-03-25 12:18:38 -04:00
UnhandledErrors.ts set TEST_CLEAN_DATABASE when running server tests (#806) 2023-12-27 09:56:59 -05:00
Webhooks-Proxy.ts (core) Adding UI for timing API 2024-05-22 14:56:53 +02:00