Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(docs): updating README.md for helm chart. Replaced steps and added clear direction

justin53a245dac23f
diff --git a/charts/kaneo/README.md b/charts/kaneo/README.md
index 47280992e..9d36f4b82 100644
--- a/charts/kaneo/README.md
+++ b/charts/kaneo/README.md
@@ -1,38 +1,24 @@
# Kaneo Helm Chart
-
This Helm chart deploys [Kaneo](https://kaneo.app) - open source project management that works for you, not against you.
-
## Introduction
-
This chart bootstraps a Kaneo deployment on a Kubernetes cluster using the Helm package manager. It deploys both the API backend and Web frontend components, along with a PostgreSQL database, with optional ingress or Gateway API resources.
-
## Prerequisites
-
- Kubernetes 1.23+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure (if persistence is enabled)
-
## Quick Start
-
### Basic Installation
-
Install directly from GHCR:
-
```bash
helm install kaneo oci://ghcr.io/usekaneo/charts/kaneo \
--namespace kaneo \
--create-namespace
-
# Access locally
kubectl port-forward svc/kaneo-kaneo 5173:5173 -n kaneo
```
-
Open [http://localhost:5173](http://localhost:5173) and you're ready to go.
-
### Production Setup with Ingress
-
For real deployments, you'll want proper ingress:
-
```bash
helm install kaneo oci://ghcr.io/usekaneo/charts/kaneo \
--namespace kaneo \
@@ -41,11 +27,8 @@ helm install kaneo oci://ghcr.io/usekaneo/charts/kaneo \
--set ingress.className=nginx \
--set "ingress.hosts[0].host=pm.yourcompany.com"
```
-
### Production Setup with Gateway API
-
If your cluster already has Gateway API CRDs and a `Gateway` configured, you can expose Kaneo with an `HTTPRoute`:
-
```bash
helm install kaneo oci://ghcr.io/usekaneo/charts/kaneo \
--namespace kaneo \
@@ -56,54 +39,37 @@ helm install kaneo oci://ghcr.io/usekaneo/charts/kaneo \
--set "gateway.parentRefs[0].sectionName=https" \
--set "gateway.hostnames[0]=pm.yourcompany.com"
```
-
## Installing the Chart
-
To install the published chart with the release name `my-kaneo`:
-
```bash
helm install my-kaneo oci://ghcr.io/usekaneo/charts/kaneo
```
-
To install from a local checkout instead:
-
```bash
helm install my-kaneo ./charts/kaneo
```
-
The command deploys Kaneo on the Kubernetes cluster with default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.
-
## Uninstalling the Chart
-
To uninstall/delete the `my-kaneo` deployment:
-
```bash
helm uninstall my-kaneo
```
-
## Parameters
-
### Global parameters
-
| Name | Description | Value |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------ | ----------- |
| `nameOverride` | String to partially override the fullname template (will maintain the release name) | `""` |
| `fullnameOverride` | String to fully override the fullname template | `""` |
| `replicaCount` | Number of replicas (ignored if autoscaling is enabled) | `1` |
-
### Autoscaling parameters
-
| Name | Description | Value |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ----------- |
| `autoscaling.enabled` | Enable autoscaling for the deployment | `false` |
| `autoscaling.minReplicas` | Minimum number of replicas | `1` |
| `autoscaling.maxReplicas` | Maximum number of replicas | `10` |
| `autoscaling.targetCPUUtilizationPercentage` | Target CPU utilization percentage | `80` |
-
When CPU autoscaling is enabled, set `kaneo.resources.requests.cpu`; Kubernetes cannot calculate CPU utilization without a CPU request.
-
### PostgreSQL Database parameters
-
| Name | Description | Value |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------- |
| `postgresql.enabled` | Deploy PostgreSQL as part of this chart | `true` |
@@ -121,9 +87,7 @@ When CPU autoscaling is enabled, set `kaneo.resources.requests.cpu`; Kubernetes
| `postgresql.service.type` | PostgreSQL service type | `ClusterIP` |
| `postgresql.service.port` | PostgreSQL service port | `5432` |
| `postgresql.resources` | Resource requests and limits for PostgreSQL container | `{}` |
-
### Kaneo application parameters
-
| Name | Description | Value |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------- |
| `kaneo.image.repository` | Kaneo image repository | `ghcr.io/usekaneo/kaneo` |
@@ -133,7 +97,7 @@ When CPU autoscaling is enabled, set `kaneo.resources.requests.cpu`; Kubernetes
| `kaneo.service.port` | Kaneo service port | `5173` |
| `kaneo.service.targetPort` | Kaneo container port | `5173` |
| `kaneo.env` | Environment variables for the Kaneo container | See `values.yaml` |
-| `kaneo.env.clientUrl` | Public URL of the Kaneo instance | `""` |
+| `kaneo.env.clientUrl` | Public URL of the Kaneo instance. **Required for any non-localhost deployment** — sets `KANEO_CLIENT_URL`. Omitting this causes "invalid origin" errors on login. Note: this key is case-sensitive (`clientUrl`, not `clientURL`). | `""` |
| `kaneo.env.corsOrigins` | Allowed CORS origins as a comma-separated string or YAML list | `[]` |
| `kaneo.env.authSecret` | Better Auth secret, ignored if existingSecret is enabled | `change_me_to_at_least_32_characters_long_string` |
| `kaneo.env.existingSecret.enabled` | Whether to use an existing secret for `AUTH_SECRET` | `false` |
@@ -147,11 +111,14 @@ When CPU autoscaling is enabled, set `kaneo.resources.requests.cpu`; Kubernetes
| `kaneo.env.database.external.database` | External PostgreSQL database name | `kaneo` |
| `kaneo.env.database.external.username` | External PostgreSQL username | `kaneo_user` |
| `kaneo.env.database.external.password` | External PostgreSQL password | `""` |
+| `kaneo.env.database.external.existingSecret.enabled` | Use an existing secret for the external database connection URI | `false` |
+| `kaneo.env.database.external.existingSecret.name` | Name of the secret containing the database connection URI | `""` |
+| `kaneo.env.database.external.existingSecret.passwordKey` | Key in the secret whose value is a full PostgreSQL connection URI | `postgres_uri` |
| `kaneo.extraEnv` | Additional Kubernetes EnvVar entries appended to the Kaneo container | `[]` |
| `kaneo.resources` | Resource requests and limits for the Kaneo container (optional, disabled by default) | `{}` |
-
+| `podSecurityContext` | Security context applied at the Pod level | `{}` |
+| `securityContext` | Security context applied at the container level | `{}` |
### Ingress parameters
-
| Name | Description | Value |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------- |
| `ingress.enabled` | Enable ingress | `false` |
@@ -159,9 +126,7 @@ When CPU autoscaling is enabled, set `kaneo.resources.requests.cpu`; Kubernetes
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.hosts` | Ingress hosts configuration | See `values.yaml` |
| `ingress.tls` | Ingress TLS configuration | `[]` |
-
### Gateway API parameters
-
| Name | Description | Value |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------- |
| `gateway.enabled` | Enable Gateway API `HTTPRoute` creation | `false` |
@@ -170,18 +135,14 @@ When CPU autoscaling is enabled, set `kaneo.resources.requests.cpu`; Kubernetes
| `gateway.parentRefs` | Parent Gateway listener references for attaching the `HTTPRoute` | `[]` |
| `gateway.hostnames` | Hostnames exposed by the `HTTPRoute` | `[]` |
| `gateway.rules` | Gateway API routing rules mapping paths to the chart services | See `values.yaml` |
-
## Configuration Examples
-
### Minimal Configuration
-
```yaml
# values.yaml
kaneo:
env:
authSecret: "your-secure-auth-secret-at-least-32-characters"
clientUrl: "https://your-domain.com"
-
ingress:
enabled: true
className: nginx
@@ -194,13 +155,10 @@ ingress:
service: kaneo
port: 5173
```
-
### Production Configuration with TLS
-
```yaml
# values.yaml
replicaCount: 1
-
# PostgreSQL configuration
postgresql:
auth:
@@ -215,7 +173,6 @@ postgresql:
requests:
cpu: 100m
memory: 128Mi
-
# Kaneo configuration
kaneo:
resources:
@@ -228,7 +185,6 @@ kaneo:
env:
authSecret: "your-secure-auth-secret-at-least-32-characters"
clientUrl: "https://your-domain.com"
-
ingress:
enabled: true
className: nginx
@@ -247,17 +203,49 @@ ingress:
hosts:
- your-domain.com
```
-
+### Production Configuration with Traefik
+If you're running Traefik as your ingress controller (common in self-hosted clusters), configure the ingress directly rather than through the chart's built-in ingress support:
+```yaml
+# values.yaml
+kaneo:
+ env:
+ authSecret: "your-secure-auth-secret-at-least-32-characters"
+ clientUrl: "https://kaneo.your-domain.com"
+```
+```yaml
+# ingress.yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: kaneo-ingress
+ namespace: kaneo
+ annotations:
+ cert-manager.io/cluster-issuer: letsencrypt-prod
+spec:
+ ingressClassName: traefik
+ rules:
+ - host: kaneo.your-domain.com
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: kaneo
+ port:
+ number: 5173
+ tls:
+ - hosts:
+ - kaneo.your-domain.com
+ secretName: kaneo-tls
+```
### Using External PostgreSQL Database
-
If you prefer to use an external PostgreSQL database instead of the bundled one:
-
```yaml
# values.yaml
# Disable bundled PostgreSQL
postgresql:
enabled: false
-
kaneo:
env:
authSecret: "your-secure-auth-secret-at-least-32-characters"
@@ -270,13 +258,9 @@ kaneo:
username: "kaneo_user"
password: "your-db-password"
```
-
### Using an Existing Secret for Sensitive Data
-
For production environments, it's recommended to store sensitive data like the auth secret and database credentials in Kubernetes Secrets:
-
When `postgresql.auth.existingSecret` is used with bundled PostgreSQL, the password is expanded by Kubernetes into `DATABASE_URL` at runtime and must be URL-safe. If your password contains reserved URI characters such as `@`, `:`, `/`, `#`, `%`, or spaces, use an external database and provide the complete connection URI through `kaneo.env.database.external.existingSecret`.
-
```bash
# Create a Secret for sensitive data
kubectl create secret generic kaneo-secrets \
@@ -284,9 +268,7 @@ kubectl create secret generic kaneo-secrets \
--from-literal=auth-secret="your-secure-auth-secret-at-least-32-characters" \
--from-literal=postgres-password="your-secure-db-password"
```
-
Then reference these secrets in your values:
-
```yaml
# values.yaml
postgresql:
@@ -294,7 +276,6 @@ postgresql:
existingSecret: "kaneo-secrets"
secretKeys:
userPasswordKey: "postgres-password"
-
kaneo:
env:
existingSecret:
@@ -302,66 +283,105 @@ kaneo:
name: "kaneo-secrets"
key: "auth-secret"
```
+#### Using an Existing Secret with External PostgreSQL
+When using an external database, the secret must contain a full PostgreSQL connection URI rather than just the password. Any special characters in the password (such as `@`, `:`, `/`) must be [percent-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding).
+```bash
+# Create the secret with a full connection URI
+kubectl create secret generic kaneo-secrets \
+ --namespace kaneo \
+ --from-literal=auth-secret="your-secure-auth-secret-at-least-32-characters" \
+ --from-literal=postgres_uri="postgresql://kaneo_user:your-password@your-host:5432/kaneo"
+```
+```yaml
+# values.yaml
+postgresql:
+ enabled: false
+kaneo:
+ env:
+ clientUrl: "https://kaneo.your-domain.com"
+ existingSecret:
+ enabled: true
+ name: "kaneo-secrets"
+ key: "auth-secret"
+ database:
+ external:
+ enabled: true
+ host: "your-postgres-host.com"
+ port: 5432
+ database: "kaneo"
+ username: "kaneo_user"
+ password: ""
+ existingSecret:
+ enabled: true
+ name: "kaneo-secrets"
+ passwordKey: postgres_uri
+```
## Database Management
-
### PostgreSQL Configuration
-
The chart deploys PostgreSQL 16 (Alpine) by default with the following configuration:
- Database name: `kaneo`
- Username: `kaneo_user`
- Default password: `kaneo_password` (change this in production!)
- Persistent storage: 8Gi (configurable)
-
The bundled PostgreSQL deployment is intended for development, trials, and small self-hosted installs. For production environments, use an external managed PostgreSQL database by setting `postgresql.enabled=false` and configuring `kaneo.env.database.external`.
-
Bundled PostgreSQL credentials are only applied when PostgreSQL initializes an empty data directory. If a PVC already exists, changing `postgresql.auth.password` or `postgresql.auth.existingSecret` updates the Pod environment but does not rotate the password inside the existing database. For local retesting with a new password, uninstall the release and delete the test PVC before reinstalling:
-
```bash
helm uninstall kaneo -n kaneo-test
kubectl delete pvc kaneo-postgresql-data -n kaneo-test --ignore-not-found
```
-
To preserve data, rotate the password inside PostgreSQL first, then update the Helm values to match.
-
### Backup and Recovery
-
For production deployments, consider implementing regular database backups:
-
```bash
# Example backup command
kubectl exec -it deployment/my-kaneo-postgresql -- pg_dump -U kaneo_user kaneo > kaneo-backup.sql
```
-
### Migration from SQLite
-
If you're migrating from a previous SQLite-based installation, you'll need to:
1. Export your data from SQLite
2. Deploy the new PostgreSQL-based chart
3. Import your data into PostgreSQL
-
Contact the Kaneo community on [Discord](https://discord.gg/rU4tSyhXXU) for migration assistance.
+## Troubleshooting
+### "invalid origin" error on login
+Kaneo's API validates the `Origin` header on every request against `KANEO_CLIENT_URL`. If `clientUrl` is not set (or is set incorrectly), every login attempt fails with this error.
-## Architecture
+Set `clientUrl` to the URL users access Kaneo from:
+```yaml
+kaneo:
+ env:
+ clientUrl: "https://kaneo.your-domain.com"
+```
-This chart deploys the following components:
+> **Note:** The key is `clientUrl` (camelCase). `clientURL` (all-caps) is silently ignored — the env var will be empty and login will fail with no helpful error.
+### Pods crash immediately after upgrading to use `existingSecret`
+If pods enter `CrashLoopBackOff` after switching to an existing secret for the external database, the connection URI in the secret is likely wrong. Check what the pod is actually using:
+```bash
+kubectl get secret kaneo-secrets -n kaneo \
+ -o jsonpath='{.data.postgres_uri}' | base64 -d
+```
+Common causes:
+- Wrong password
+- Password contains special characters that need percent-encoding (e.g. `p@ss` → `p%40ss`)
+- Incorrect host, port, or database name in the URI
+
+### PodSecurity warnings on install/upgrade
+On clusters with Pod Security Admission enabled, you may see warnings like `would violate PodSecurity "restricted:latest"`. The chart exposes `podSecurityContext` and `securityContext` to address these. See the [Security](#security) section for recommended values.
+## Architecture
+This chart deploys the following components:
1. **Kaneo application**: Serves the web UI and API from the combined Kaneo image
2. **PostgreSQL Database**: Stores all application data with proper relational integrity
-
The Kaneo application and PostgreSQL run in separate pods for resource isolation and simpler database lifecycle management.
-
## Production Environment
-
For production deployments, you should:
-
1. Set secure values for `AUTH_SECRET` and PostgreSQL passwords
2. Use an Ingress controller to expose the application
3. Configure TLS for secure access
4. Set appropriate resource limits and requests
5. Enable persistent storage with appropriate storage classes
6. Consider using external PostgreSQL for better scalability
-
```yaml
ingress:
enabled: true
@@ -381,11 +401,8 @@ ingress:
hosts:
- your-domain.com
```
-
## Using Gateway API
-
As an alternative to Ingress, the chart can create an `HTTPRoute` for the Kubernetes Gateway API:
-
```yaml
# values.yaml
gateway:
@@ -397,32 +414,35 @@ gateway:
hostnames:
- kaneo.example.com
```
-
By default the chart creates one Gateway API rule:
-
1. `/` goes to the Kaneo service
-
If you need custom matching or multiple backend references, override `gateway.rules` directly. Each `backendRefs` entry follows the same pattern as ingress and uses the chart-specific `service` field (`kaneo`), which is expanded to the release-specific Service name.
-
## Security
-
For production deployments, consider the following security recommendations:
-
1. Use secure `AUTH_SECRET` and PostgreSQL passwords, preferably stored in Kubernetes Secrets
2. Enable TLS for ingress or Gateway API
3. Enable and set resource limits to prevent resource exhaustion
4. Use a dedicated storage class for the PostgreSQL database
5. Consider using a network policy to restrict traffic between components
6. Regularly update PostgreSQL and application images
-
+### Pod Security Context
+On clusters with Pod Security Admission enforcement, set the following to satisfy the `restricted` policy:
+```yaml
+podSecurityContext:
+ runAsNonRoot: true
+ seccompProfile:
+ type: RuntimeDefault
+
+securityContext:
+ allowPrivilegeEscalation: false
+ capabilities:
+ drop: ["ALL"]
+```
### Registration Control
-
By default, user registration is enabled. To disable new user registration:
-
```yaml
kaneo:
env:
disableRegistration: true
```
-
This will prevent new users from registering while still allowing existing users to log in. The registration option will be hidden from the login page.