Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
EdwardAngert merged 9 commits intomainfromdisable-path-based-apps
Jul 1, 2025
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
edit path-based apps section
  • Loading branch information
@EdwardAngert
EdwardAngert committedJun 17, 2025
commit3a354134476b8195113f849960983d7403a9eeb1
24 changes: 18 additions & 6 deletionsdocs/tutorials/best-practices/security-best-practices.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,16 +68,28 @@ determining the nature and scope of the impact.

### Disable path-based apps

By default,path-based apps are enabled in Coder to make demos and trials easier for new users.
For production deployments, disablepath-based apps.

In production deployments, however, path-based apps reduce security significantly as it allows user workspace apps to be hosted on the same domain as other apps and the Coder API itself in the default region.
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.

We recommend turning off path-based appsafter you have configured and enabled subdomain apps viaa wildcard DNSentry.
1. [Enable sub-domain appswitha wildcard DNSrecord](../../admin/setup/index.md#wildcard-access-url) (like `*.coder.example.com`)

The impact of havingpath-based apps enabled is mitigated by default, 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:
1. Disablepath-based apps:

- Path-based apps cannot be shared with other users without a special flag `--dangerous-allow-path-app-sharing`
- Users with the site "owner" role cannot use their admin privileges to access path-based apps for workspace they do not own without a special flag `--dangerous-allow-path-app-site-owner-access`
```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:

- 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

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp