⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
docs: unwrap hard-wrapped prose
Andrej04ea0cad5437
diff --git a/SECURITY.md b/SECURITY.mdindex c0a2c37a7..c1e0b1327 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -2,13 +2,9 @@## Reporting a vulnerability-Please report security issues privately. Do not open a public issue, and do not-include details in a pull request.+Please report security issues privately. Do not open a public issue, and do not include details in a pull request.-Use [GitHub's private vulnerability reporting](https://github.com/usekaneo/kaneo/security/advisories/new),-which notifies the maintainers directly and keeps the discussion private until a-fix ships. If you cannot use it, email [[email protected]](mailto:[email protected])-instead.+Use [GitHub's private vulnerability reporting](https://github.com/usekaneo/kaneo/security/advisories/new), which notifies the maintainers directly and keeps the discussion private until a fix ships. If you cannot use it, email [[email protected]](mailto:[email protected]) instead.Helpful things to include, as far as you have them:@@ -21,21 +17,16 @@ Helpful things to include, as far as you have them:- An acknowledgement within 3 days.- An assessment of severity and scope, and whether we can reproduce it, within 7 days.-- A fix released as soon as it is ready. Anything exploitable against a running- instance is prioritised over other work.+- A fix released as soon as it is ready. Anything exploitable against a running instance is prioritised over other work.- Credit in the advisory, unless you would rather stay anonymous.-We publish a [GitHub Security Advisory](https://github.com/usekaneo/kaneo/security/advisories)-for issues that affect self-hosted instances, so operators can see whether they-are affected and what to do about it, including any credentials worth rotating.+We publish a [GitHub Security Advisory](https://github.com/usekaneo/kaneo/security/advisories) for issues that affect self-hosted instances, so operators can see whether they are affected and what to do about it, including any credentials worth rotating.-Please give us a chance to ship a fix before disclosing publicly. If you have a-deadline in mind, say so in your report and we will work to it.+Please give us a chance to ship a fix before disclosing publicly. If you have a deadline in mind, say so in your report and we will work to it.## Supported versions-Fixes land on the latest release. Self-hosted instances should track the most-recent version; older versions do not receive backported patches.+Fixes land on the latest release. Self-hosted instances should track the most recent version; older versions do not receive backported patches.| Version | Supported || ------- | --------- |@@ -44,15 +35,8 @@ recent version; older versions do not receive backported patches.## Scope-In scope: the API (`apps/api`), the web app (`apps/web`), the MCP server-(`packages/mcp`), the Helm chart, and the published Docker images.+In scope: the API (`apps/api`), the web app (`apps/web`), the MCP server (`packages/mcp`), the Helm chart, and the published Docker images.-Out of scope: findings that require an already-compromised host or database,-denial of service through sheer request volume, missing hardening headers with-no demonstrated impact, and vulnerabilities in third-party dependencies without-a working path through Kaneo. For dependency advisories, a pull request bumping-the dependency is welcome and can be public.+Out of scope: findings that require an already-compromised host or database, denial of service through sheer request volume, missing hardening headers with no demonstrated impact, and vulnerabilities in third-party dependencies without a working path through Kaneo. For dependency advisories, a pull request bumping the dependency is welcome and can be public.-Self-hosted deployments are configured by their operator. Reports that depend on-an insecure configuration are useful when Kaneo's own defaults or documentation-lead operators there; please say which default you followed.+Self-hosted deployments are configured by their operator. Reports that depend on an insecure configuration are useful when Kaneo's own defaults or documentation lead operators there; please say which default you followed.diff --git a/apps/docs/core/installation/drim-migration.mdx b/apps/docs/core/installation/drim-migration.mdxindex ac69ba39a..d7b4e1074 100644--- a/apps/docs/core/installation/drim-migration.mdx+++ b/apps/docs/core/installation/drim-migration.mdx@@ -3,25 +3,19 @@ title: Migrating to drimdescription: Move an existing Kaneo deployment onto the drim CLI, or update an older drim deployment to the current single-container layout----Two migrations are covered here. Both reuse your existing Docker volumes, so your database-and uploads stay where they are and no data is copied.+Two migrations are covered here. Both reuse your existing Docker volumes, so your database and uploads stay where they are and no data is copied.## Updating an older drim deployment-Kaneo used to ship as two images, `api` and `web`, behind a reverse proxy that split-traffic between them. It now ships as one container that serves the web app and the API-together.+Kaneo used to ship as two images, `api` and `web`, behind a reverse proxy that split traffic between them. It now ships as one container that serves the web app and the API together.-`drim upgrade` pulls new images but does not rewrite an existing `docker-compose.yml`, so a-deployment created before that change keeps running the old layout indefinitely. Check-which one you have:+`drim upgrade` pulls new images but does not rewrite an existing `docker-compose.yml`, so a deployment created before that change keeps running the old layout indefinitely. Check which one you have:```bashgrep -E 'image:.*usekaneo' docker-compose.yml```-Two lines with `usekaneo/api` and `usekaneo/web` mean you are on the old layout. A single-`usekaneo/kaneo` line means you are already current and there is nothing to do.+Two lines with `usekaneo/api` and `usekaneo/web` mean you are on the old layout. A single `usekaneo/kaneo` line means you are already current and there is nothing to do.### Steps@@ -39,8 +33,7 @@ Pull the image first, so the switchover is a quick container swap rather than adocker pull ghcr.io/usekaneo/kaneo:latest```-Replace the `api` and `web` services in `docker-compose.yml` with one `kaneo` service.-Leave `postgres`, the volumes, and any services you added yourself untouched:+Replace the `api` and `web` services in `docker-compose.yml` with one `kaneo` service. Leave `postgres`, the volumes, and any services you added yourself untouched:```yamlkaneo:@@ -60,9 +53,7 @@ Leave `postgres`, the volumes, and any services you added yourself untouched:- kaneo```-Update anything that pointed at the old services. In `depends_on` entries elsewhere,-replace `api` and `web` with `kaneo`. In your reverse proxy, send everything to the one-service instead of splitting on path, because the container routes `/api` internally:+Update anything that pointed at the old services. In `depends_on` entries elsewhere, replace `api` and `web` with `kaneo`. In your reverse proxy, send everything to the one service instead of splitting on path, because the container routes `/api` internally:```caddyfileyour-domain.com {@@ -78,9 +69,7 @@ docker compose up -d --remove-orphans```<Warning>-If your reverse proxy config is bind-mounted as a single file, recreate that container-rather than reloading it. Replacing the file with `mv` gives it a new inode, and the-running container keeps reading the old one, so a reload silently applies stale config:+If your reverse proxy config is bind-mounted as a single file, recreate that container rather than reloading it. Replacing the file with `mv` gives it a new inode, and the running container keeps reading the old one, so a reload silently applies stale config:```bashdocker compose up -d --force-recreate caddy@@ -94,8 +83,7 @@ docker compose pscurl -s https://your-domain.com/api/health```-You want every service up, the Kaneo container reporting healthy once its start period-elapses, and `{"status":"ok"}` from the health endpoint.+You want every service up, the Kaneo container reporting healthy once its start period elapses, and `{"status":"ok"}` from the health endpoint.### Rollback@@ -109,8 +97,7 @@ docker compose up -d --force-recreate## Moving an existing Kaneo onto drim-If you deployed Kaneo by hand and want drim to manage it, the goal is to have drim generate-its files and then point them at the volumes you already have.+If you deployed Kaneo by hand and want drim to manage it, the goal is to have drim generate its files and then point them at the volumes you already have.Record the names of your existing volumes and your current environment values:@@ -128,8 +115,7 @@ drim setup --domain=your-domain.comdrim stop```-Point the generated `docker-compose.yml` at your existing database volume by declaring it-external, using the exact name from `docker volume ls`:+Point the generated `docker-compose.yml` at your existing database volume by declaring it external, using the exact name from `docker volume ls`:```yamlvolumes:@@ -138,10 +124,7 @@ volumes:name: your_existing_volume_name```-Copy your previous credentials into the generated `.env`, in particular `POSTGRES_USER`,-`POSTGRES_PASSWORD`, `POSTGRES_DB`, `DATABASE_URL` and `AUTH_SECRET`. A different-`AUTH_SECRET` invalidates every existing session, so reuse the old value unless you intend-to sign everyone out.+Copy your previous credentials into the generated `.env`, in particular `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_DB`, `DATABASE_URL` and `AUTH_SECRET`. A different `AUTH_SECRET` invalidates every existing session, so reuse the old value unless you intend to sign everyone out.```bashdrim configure # opens .env, applies changes on save@@ -151,28 +134,20 @@ Then start and verify as above.### Using your own reverse proxy-If you already run nginx, Traefik or similar, choose `--no-reverse-proxy` at setup so drim-does not start Caddy on ports 80 and 443, and point your proxy at Kaneo on port 5173.+If you already run nginx, Traefik or similar, choose `--no-reverse-proxy` at setup so drim does not start Caddy on ports 80 and 443, and point your proxy at Kaneo on port 5173.## Common issues-**Database connection failed.** The credentials in `.env` do not match the ones the volume-was created with. `DATABASE_URL` must agree with `POSTGRES_USER`, `POSTGRES_PASSWORD` and-`POSTGRES_DB`.+**Database connection failed.** The credentials in `.env` do not match the ones the volume was created with. `DATABASE_URL` must agree with `POSTGRES_USER`, `POSTGRES_PASSWORD` and `POSTGRES_DB`.-**Volume not found.** The `name:` under an external volume must match `docker volume ls`-exactly, including any project-name prefix from the old deployment.+**Volume not found.** The `name:` under an external volume must match `docker volume ls` exactly, including any project-name prefix from the old deployment.-**Port already in use.** Something else holds 80 or 443, usually a system nginx or the old-stack still running. Stop it, or use `--no-reverse-proxy`.+**Port already in use.** Something else holds 80 or 443, usually a system nginx or the old stack still running. Stop it, or use `--no-reverse-proxy`.**Everyone was signed out.** `AUTH_SECRET` changed. Restore the previous value.## After migrating-Keep the old containers' volumes until you are confident, then remove the stale containers-and images. Volumes are the only thing holding your data, so remove those last and-deliberately.+Keep the old containers' volumes until you are confident, then remove the stale containers and images. Volumes are the only thing holding your data, so remove those last and deliberately.-Set up off-site backups if you have not already. A copy on the same machine does not-survive losing that machine.+Set up off-site backups if you have not already. A copy on the same machine does not survive losing that machine.diff --git a/apps/docs/core/installation/drim.mdx b/apps/docs/core/installation/drim.mdxindex e3f7ce5bf..0ce358662 100644--- a/apps/docs/core/installation/drim.mdx+++ b/apps/docs/core/installation/drim.mdx@@ -5,14 +5,9 @@ description: Deploy and manage a self-hosted Kaneo instance with the drim CLI## What is drim?-[drim](https://github.com/usekaneo/drim) is a CLI tool for deploying Kaneo. It generates-your `docker-compose.yml`, `Caddyfile` and `.env`, installs Docker if it is missing, and-brings the stack up, so a fresh server goes from nothing to a running instance in one-command.+[drim](https://github.com/usekaneo/drim) is a CLI tool for deploying Kaneo. It generates your `docker-compose.yml`, `Caddyfile` and `.env`, installs Docker if it is missing, and brings the stack up, so a fresh server goes from nothing to a running instance in one command.-It suits straightforward deployments. If you need a custom topology, extra services, or-your own reverse proxy, [Docker Compose](/core/installation/docker-compose) gives you more-control.+It suits straightforward deployments. If you need a custom topology, extra services, or your own reverse proxy, [Docker Compose](/core/installation/docker-compose) gives you more control.## Installation@@ -35,8 +30,7 @@ Or download a binary from [releases](https://github.com/usekaneo/drim/releases/lcurl -fsSL https://assets.kaneo.app/install.sh | sh -s -- --setup --domain=kaneo.example.com```-The script detects your platform, downloads the matching binary, and installs it to-`/usr/local/bin`. It supports Linux and macOS on amd64 and arm64, and Windows through WSL.+The script detects your platform, downloads the matching binary, and installs it to `/usr/local/bin`. It supports Linux and macOS on amd64 and arm64, and Windows through WSL.## Quick start@@ -46,14 +40,11 @@ The script detects your platform, downloads the matching binary, and installs itdrim setup```-You are asked whether to use the bundled Caddy reverse proxy, and for a domain. Leave the-domain empty for a local deployment, reachable at `http://localhost`, or-`http://localhost:5173` when you skip the reverse proxy.+You are asked whether to use the bundled Caddy reverse proxy, and for a domain. Leave the domain empty for a local deployment, reachable at `http://localhost`, or `http://localhost:5173` when you skip the reverse proxy.### Non-interactive-Pass the configuration as flags to skip the prompts, which is what you want in a script or-over SSH without a terminal:+Pass the configuration as flags to skip the prompts, which is what you want in a script or over SSH without a terminal:```bashdrim setup --domain=kaneo.example.com@@ -61,8 +52,7 @@ drim setup --no-reverse-proxy```<Info>-Point your domain's DNS A record at the server before running setup. Caddy requests a-certificate immediately, and that only succeeds once the record resolves.+Point your domain's DNS A record at the server before running setup. Caddy requests a certificate immediately, and that only succeeds once the record resolves.</Info>## Commands@@ -78,13 +68,9 @@ drim configure # Edit .env, then apply the changesdrim uninstall # Remove Kaneo```-Run these from the directory holding your `docker-compose.yml`. drim tells you when it-cannot find a deployment there.+Run these from the directory holding your `docker-compose.yml`. drim tells you when it cannot find a deployment there.-`drim restart` restarts the containers. Because services read configuration through-`env_file`, a plain restart reuses the environment a container was created with, so use-`drim restart --recreate` to recreate containers and pick up `.env` changes. `drim-configure` already does this for you.+`drim restart` restarts the containers. Because services read configuration through `env_file`, a plain restart reuses the environment a container was created with, so use `drim restart --recreate` to recreate containers and pick up `.env` changes. `drim configure` already does this for you.## What gets installed@@ -92,8 +78,7 @@ configure` already does this for you.- **Kaneo**, the API and web app in a single container- **Caddy**, the reverse proxy with automatic HTTPS, unless you pass `--no-reverse-proxy`-Services run with health checks and restart automatically unless explicitly stopped.-PostgreSQL is only reachable on the internal Docker network, never published to the host.+Services run with health checks and restart automatically unless explicitly stopped. PostgreSQL is only reachable on the internal Docker network, never published to the host.## Configuration@@ -101,11 +86,9 @@ PostgreSQL is only reachable on the internal Docker network, never published todrim configure```-This opens `.env` in `$EDITOR` (or nano). After saving, drim offers to apply the changes,-which recreates the containers so the new values take effect.+This opens `.env` in `$EDITOR` (or nano). After saving, drim offers to apply the changes, which recreates the containers so the new values take effect.-`drim setup` writes the variables Kaneo requires. Optional features are enabled by adding-their variables, for example:+`drim setup` writes the variables Kaneo requires. Optional features are enabled by adding their variables, for example:```env# GitHub sign-in@@ -131,12 +114,9 @@ See [environment variables](/core/installation/environment-variables) for the fu- 2GB RAM and 10GB disk- A public DNS record, for production deployments-drim installs Docker automatically on supported Linux distributions. When it does, it also-adds your user to the `docker` group and stops, because group membership only applies to a-new login session. Log out, log back in, and run `drim setup` again.+drim installs Docker automatically on supported Linux distributions. When it does, it also adds your user to the `docker` group and stops, because group membership only applies to a new login session. Log out, log back in, and run `drim setup` again.-If Docker is already installed but you are not in the `docker` group, setup tells you so-before writing any files, along with the command to fix it:+If Docker is already installed but you are not in the `docker` group, setup tells you so before writing any files, along with the command to fix it:```bashsudo usermod -aG docker $USER@@ -148,8 +128,7 @@ sudo usermod -aG docker $USERdrim upgrade```-This pulls the latest images and restarts the changed services. Your data lives in Docker-volumes and is not touched.+This pulls the latest images and restarts the changed services. Your data lives in Docker volumes and is not touched.To update drim itself:@@ -158,9 +137,7 @@ drim update```<Warning>-Deployments created before Kaneo moved to a single container still run the older two-image-layout, and `drim upgrade` does not rewrite an existing `docker-compose.yml`. See-[migrating to drim](/core/installation/drim-migration) to move to the current layout.+Deployments created before Kaneo moved to a single container still run the older two-image layout, and `drim upgrade` does not rewrite an existing `docker-compose.yml`. See [migrating to drim](/core/installation/drim-migration) to move to the current layout.</Warning>## Building from source