Tom Moor
00fb4d1af7
chore: Update node style imports ( #11277 )
...
- crypto → node:crypto
- fs → node:fs
- fs/promises → node:fs/promises
- path → node:path
- http → node:http
- https → node:https
- stream → node:stream
- buffer → node:buffer
- url → node:url
- os → node:os
- net → node:net
- dns → node:dns
- events → node:events
- readline → node:readline
- querystring → node:querystring
- util → node:util
2026-01-26 20:51:50 -05:00
Tom Moor
bf45e97641
chore: Enforce type import consistency ( #10968 )
...
* Update types
* fix circular dep
* type imports
* lint type imports and --fix
2025-12-19 23:07:02 -05:00
Tom Moor
76691e8aaa
fix: Add yet another guard against crawlers consuming magic links ( #10457 )
2025-10-23 08:24:10 -04:00
Hemachandar
04c3d81b1f
chore: Setup missing oxlint configs ( #9862 )
...
* shared
* server
* app
* remove vestigial eslintrc files
* update comment directives
2025-08-06 19:54:22 -04:00
Tom Moor
cf2f13193f
chore: Fix Redis mock not used consistently in tests ( #9716 )
2025-07-23 09:38:24 -04:00
Tom Moor
a83adc4ecf
feat: Allow horizontal scaling of collaboration service ( #9625 )
...
* stash
* Horizontal scaling of collaboration service
2025-07-17 08:53:52 -04:00
f284a27941
feat: Add OIDC well-known endpoint discovery support ( #9308 )
...
* feat: Add OIDC well-known endpoint discovery support
Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-05-27 07:56:02 -04:00
codegen-sh[bot] and Tom Moor
d2aba1de96
feat: Add POST method option to redirectOnClient ( #9228 )
...
* feat: Add POST method option to redirectOnClient helper
* Applied automatic fixes
* fix: Add missing closing HTML tag in redirectOnClient GET method
* fix: Use lodash escape for form field values to prevent XSS
* Applied automatic fixes
* fix: Add missing lodash/escape import
* Applied automatic fixes
* fix: Escape all URLs in redirectOnClient function
* Update index.ts
* fix: CSP
* Refactor CSP middleware
* docs, only use for email signin
---------
Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com >
2025-05-17 09:06:32 -04:00
Tom Moor
9680e57849
chore: Remove suppressImplicitAnyIndexErrors TS rule ( #7760 )
2024-10-11 12:46:46 -07:00
Nanguan Lin and Tom Moor
3a7dd94e14
Migrate from s3 sdk v2 to v3 ( #6731 )
...
* chore: migrate from s3 sdk v2 to v3
* import signature-v4-crt
* downgrade minor version
* Add s3-presigned-post manually
* Change s3 mock
* Update server/storage/files/S3Storage.ts
* docs
* Upgrade aws-sdk
---------
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2024-05-19 06:01:42 -07:00
Tom Moor
9204a8ab30
fix: Duplicate plugin registration logging in debug
2024-05-03 08:15:56 -04:00
Tom Moor
4b54686c76
Improve error message around port errors on server start
2024-04-01 21:06:22 -04:00
Apoorv Mishra and Tom Moor
450d0d9355
Github integration ( #6414 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2024-03-23 07:09:28 -07:00
Tom Moor and Apoorv Mishra
f9a11a28d8
chore: Plugin registration ( #6623 )
...
* first pass
* test
* test
* priority
* Reduce boilerplate further
* Update server/utils/PluginManager.ts
Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com >
* fix: matchesNode error in destroyed editor transaction
* fix: Individual imported files do not display source correctly in 'Insights'
* chore: Add sleep before Slack notification
* docs
* fix: Error logged about missing plugin.json
* Remove email template glob
---------
Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com >
2024-03-08 20:32:05 -08:00
Tom Moor
2d879d0939
fix: Restore env validation for plugins ( #6649 )
...
* fix: Restore env validation for plugins
* rever
2024-03-06 18:13:54 -08:00
Tom Moor
7e4b60df4d
Spelling
2024-02-26 20:45:39 -05:00
Tom Moor
d42a493d8b
chore: Suppress AWS deprecation message
2024-02-25 11:11:36 -05:00
Tom Moor
fc761244a9
fix: Do not apply WEB_CONCURRENCY to worker processes
2023-12-17 13:07:03 -05:00
Tom Moor
07cd13f17a
fix: Queue health monitor should only run on worker processes ( #6228 )
2023-11-27 20:55:00 -05:00
Tom Moor
a21e1d9fea
chore: Expose createDatabaseInstance, createMigrationRunner methods
2023-11-25 13:18:51 -05:00
Tom Moor
0964d03a17
More use of isProduction/isDevelopment getters
2023-11-09 19:24:16 -05:00
Tom Moor
ec79cab8b8
fix: Uncaught error in JSZip file reading crashes worker process. closes #6109
2023-11-04 21:51:09 -04:00
Tom Moor
86cb861ca7
Improve clarity of error message when database SSL disabled and file storage cannot be written
2023-09-27 09:07:49 -04:00
Tom Moor
74722b80f2
chore: Refactor file storage ( #5711 )
2023-08-20 07:04:34 -07:00
Tom Moor
b7bfc4bb1a
chore: Remove optimize imports to allow vite upgrade ( #5691 )
2023-08-14 11:44:58 -07:00
Tom Moor
c32cec7bff
Add support for SSL in development ( #5668 )
2023-08-09 04:21:41 -07:00
Tom Moor
ea527bf147
fix
2023-07-01 22:57:59 -04:00
Tom Moor
f843a20a54
chore: Improves linting rule to catch mishandled promises ( #5506 )
2023-07-01 10:25:51 -07:00
Tom Moor
89d5527d39
Handle promise linting ( #5488 )
2023-06-28 17:18:18 -07:00
Tom Moor
e58163ef5f
Add more logging detail when _health endpoint fails
2023-06-25 16:13:58 -04:00
Tom Moor
ba2bfc7c89
fix: recursive require in test env
2023-04-27 22:31:12 -04:00
Apoorv Mishra
dadba3f3af
Autorun migrations in community edition ( #5141 )
...
* fix: autorun migrations in community edition
* re-run tests
* refactor
* fix: review
* fix: double error
2023-04-19 09:27:50 +05:30
Tom Moor
db73879918
Assorted cleanup, minor bug fixes, styling fixes, eslint rules ( #5165
...
* fix: Logic error in toast
fix: Remove useless component
* fix: Logout not clearing all stores
* Add icons to notification settings
* Add eslint rule to enforce spaced comment
* Add eslint rule for arrow-body-style
* Add eslint rule to enforce self-closing components
* Add menu to api key settings
Fix: Deleting webhook subscription does not remove from UI
Split webhook subscriptions into active and inactive
Styling updates
2023-04-08 05:25:20 -07:00
Tom Moor
7321970504
Move health check endpoint back to server root
2023-03-19 15:07:34 -04:00
Tom Moor
68640860fb
/_health endpoint now checks the database and redis connections
2023-03-18 12:37:34 -04:00
Tom Moor
05a4f050bb
chore: Improve graceful server shutdown ( #4625 )
...
* chore: Improve graceful server shutdown
* Replace node timers with custom promise timeout
2022-12-31 13:56:27 -08:00
Tom Moor
c6fb764631
chore: Move tracing decorators into the codebase ( #4623 )
...
* Vendorize tracing, finally fix service name issues
* Upgrade datadaog-metrics, rename decorators -> tracing
* lint
2022-12-31 04:54:51 -08:00
Apoorv Mishra
5c842087a5
feat(server): rate limit all routes ( #4561 )
2022-12-10 05:47:18 -08:00
Apoorv Mishra and Tom Moor
053d10d893
Enhance server side error handling ( #4537 )
...
* fix: server side error handling
* fix: push only unknown 500 errors to sentry
* fix: use in-house onerror in favor of errorHandling middleware
* fix: split error template into dev and prod envs
* fix: check Error instance
* fix: error routes in test env
* fix: review comments
* Remove koa-onerror
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-12-09 21:51:42 +05:30
Tom Moor
9936f42882
Avoid fsstat on every request, remove koa-static ( #4387 )
...
* Avoid fsstat on every request, remove koa-static
* tsx
* Move compression middleware
2022-11-05 06:50:46 -07:00
Tom Moor
8302840ab5
feat: Add timeout to incoming requests
2022-08-19 08:14:11 +02:00
Tom Moor
41d7cc26b5
chore: Adds name to Redis connections for debugging ( #3982 )
...
* chore: Adds name to Redis connections for debugging, minor associated refactoring
* Upgrade bull, ioredis
* Add pid to redis connection name in development
2022-08-17 12:55:57 -07:00
Apoorv Mishra
7eaa8eb961
feat: Put request rate limit at application server ( #3857 )
...
* feat: Put request rate limit at application server
This PR contains implementation for a blanket rate limiter at
application server level. Currently the allowed throughput is set high
only to be changed later as per the actual data gathered.
* Simplify implementation
1. Remove shutdown handler to purge rate limiter keys
2. Have separate keys for default and custom(route-based) rate limiters
3. Do not kill default rate limiter because it is not needed anymore due
to (2) above
* Set 60s as default for rate limiting window
* Fix env types
2022-08-11 15:40:30 +05:30
CuriousCorrelation and Tom Moor
746dc30aeb
feat: Add pending migrations check during startup ( #3744 )
...
* feat: Add pending migrations check during startup
* fix: migration pending log message
Co-authored-by: Tom Moor <tom.moor@gmail.com >
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-07-08 11:30:16 -07:00
Tom Moor
1f3a1d4b86
fix: Improved websockets error handling ( #3726 )
...
* fix: Add websocket client error capturing
fix: Incorrect parsing of documentName will never be empty
* fix: Non-present documentId in collaboration route should trigger an error response
* fix: Close unhandled websocket requests
2022-07-03 00:00:59 -07:00
Tom Moor
bf0ff6c823
chore: Casing of logger -> Logger as it's an instantiated class
2022-05-21 13:59:23 +01:00
Tom Moor
3c002f82cc
chore: Centralize env parsing, validation, defaults, and deprecation notices ( #3487 )
...
* chore: Centralize env parsing, defaults, deprecation
* wip
* test
* test
* tsc
* docs, more validation
* fix: Allow empty REDIS_URL (defaults to localhost)
* test
* fix: SLACK_MESSAGE_ACTIONS not bool
* fix: Add SMTP port validation
2022-05-19 08:05:11 -07:00
Tom Moor
15cecf1e53
Upgrade dd-trace, add APM tracing around key commands, fix tags should be attached to root spans ( #3243 )
2022-03-14 20:03:12 -07:00
Tom Moor
e4dbd67ae1
feat: Support SSL without reverse proxy ( #2959 )
...
* Enable (optional) reading SSL certificates on startup
* Update gitignore
* fix: Expect ssl environment variables to be Base64 encoded
* docs: Add env variables to .env.sample
2022-01-22 17:40:55 -08:00
Tom Moor
b20a341f0c
chore: Typescript database models ( #2886 )
...
closes #2798
2022-01-06 18:24:28 -08:00