- Notifications
You must be signed in to change notification settings - Fork1k
docs: add section about how to disable path based apps to security best practices#18419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
1dcc3f4
3a35413
a5486ca
0dffcbe
d2bb9f3
f9a5c63
868e043
0d9b6fb
127365d
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -68,16 +68,28 @@ determining the nature and scope of the impact. | ||
### Disable path-based apps | ||
For production deployments, disablepath-based apps. | ||
EdwardAngert marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
Path-based apps share the same origin as the Coder API. | ||
This setup is convenient for demos, but can expose the deployment to cross-site-scripting (XSS) attacks in production. | ||
A malicious workspace could reuse Coder cookies to call the API or interact with other workspaces owned by the same user. | ||
EdwardAngert marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
1. [Enable sub-domain appswitha wildcard DNSrecord](../../admin/setup/index.md#wildcard-access-url) (like `*.coder.example.com`) | ||
1. Disablepath-based apps: | ||
```shell | ||
coderd server --disable-path-apps | ||
# or | ||
export CODER_DISABLE_PATH_APPS=true | ||
``` | ||
By default, Coder mitigates the impact of having path-based apps enabled, but we still recommend disabling it to prevent malicious workspaces accessing other workspaces owned by the same user or performing requests against the Coder API. | ||
If you do keep path-based apps enabled, Coder limits the risk: | ||
EdwardAngert marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
- Path-based apps cannot be shared with other users unless you start the Coder server with `--dangerous-allow-path-app-sharing`. | ||
- Users with the site `owner` role cannot use their admin privileges to access path-based apps for workspace unless the server is started with `--dangerous-allow-path-app-site-owner-access`. | ||
## PostgreSQL | ||
Uh oh!
There was an error while loading.Please reload this page.