Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion docs/database-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Still stuck: See [Database users](/database-access#database-users) for preset pe

Likely cause: The database scope was changed to "project only" or "environment only", and the app is in a different project or environment.

How to confirm: Check the database scope: Dashboard > Databases > <database> > Network > Network scope. Check the app's project and environment: Dashboard > Apps > <app> > Settings. If the scope does not include the app's project or environment, the app cannot reach the database.
How to confirm: Check the database scope: Dashboard > Databases > &lt;database&gt; > Network > Network scope. Check the app's project and environment: Dashboard > Apps > &lt;app&gt; > Settings. If the scope does not include the app's project or environment, the app cannot reach the database.

Fix: Either change the database scope back to "Whole platform", or move the app to the same project or environment as the database: `levelrail-cli apps set-project <app> <project-id>`.

Expand Down
2 changes: 1 addition & 1 deletion docs/database-upgrades.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Still stuck: See [Backups and storage](/backups-and-storage) to set up a backup

Likely cause: The health check after the upgrade failed (the database did not come up healthy, or the version mismatch detected).

How to confirm: Check the upgrade run details: `levelrail-cli databases upgrades <name>` shows past runs with their status and revert path. Dashboard: Databases > <database> > Upgrades tab.
How to confirm: Check the upgrade run details: `levelrail-cli databases upgrades <name>` shows past runs with their status and revert path. Dashboard: Databases > &lt;database&gt; > Upgrades tab.

Fix: Investigate why the database failed to come up. Check the control plane logs after the upgrade attempt: `lrail logs --since 1h | grep "upgrade\|database"`. Try the upgrade again once you know why it failed, or wait for a newer patch release if it is a compatibility issue with your data.

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Percent-encode values (`:` as `%3A`, `/` as `%2F`). Only `image` is required for
| `port` | Port the app listens on inside its container | Integer 1 to 65535 |
| `env` | Names of environment variables the app needs, comma separated | Names only, `[A-Z_][A-Z0-9_]*`, up to 64 characters each, at most 50 names. `NAME=value` is rejected |
| `health` | HTTP health check path | Starts with a single `/`, up to 256 characters, no spaces, control characters or backslashes |
| `source` | Project page shown to the reader as "filled in by a link from <host>" | `http` or `https` URL with no username or password, up to 2048 characters. Only the host is displayed; it is not used to build anything |
| `source` | Project page shown to the reader as "filled in by a link from &lt;host&gt;" | `http` or `https` URL with no username or password, up to 2048 characters. Only the host is displayed; it is not used to build anything |

Unknown parameters are ignored and listed in a notice on the reader's form. The public page forwards only the parameters above, each cut to 2048 characters.

Expand Down
2 changes: 1 addition & 1 deletion docs/domains-and-ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ Traffic reaches the control plane but the app container is not responding.

Likely cause: the app is not running, the container is not healthy, or it is not listening on the port declared in the app spec.

How to confirm: open the app's dashboard page (Apps > <app>) and check the Status section. If it shows Running, run `levelrail-cli apps status <app>` to see the container status and any readiness or liveness probe failures. Also check the app's logs (Apps > <app> > Logs).
How to confirm: open the app's dashboard page (Apps > &lt;app&gt;) and check the Status section. If it shows Running, run `levelrail-cli apps status <app>` to see the container status and any readiness or liveness probe failures. Also check the app's logs (Apps > &lt;app&gt; > Logs).

Fix: if the app is not running, deploy it again. If it is running but unhealthy, check the logs for startup errors, then fix the app code or configuration and redeploy. Verify that the app actually listens on the port specified in `app.yaml` (default 3000).

Expand Down
4 changes: 2 additions & 2 deletions docs/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Duration values use Go duration syntax such as `30s`, `5m`, `1h30m`. Most variab

## Runtime settings

<!-- runtime-settings:start -->
{/* runtime-settings:start */}
{/* Generated by scripts/gen-runtime-settings-docs. Do not edit by hand. */}
These variables only seed the default of a [runtime setting](/runtime-settings). A stored value wins and applies without a restart unless the setting says otherwise.

Expand Down Expand Up @@ -1120,7 +1120,7 @@ These variables only seed the default of a [runtime setting](/runtime-settings).
| `APP_PROVISION_SPEND_REFRESH_MIN_INTERVAL_SECONDS` | [`provision.spend.refresh_min_interval_seconds`](/runtime-settings#experimental) | `300` |
| `APP_ANNOUNCEMENTS_DEV_KEYS` | [`updates.announcements_dev_keys`](/runtime-settings#experimental) | empty |
| `APP_UPDATE_CHANNELS_OFFERED` | [`updates.offered_channels`](/runtime-settings#experimental) | `stable` |
<!-- runtime-settings:end -->
{/* runtime-settings:end */}

## Renamed to seconds

Expand Down
4 changes: 2 additions & 2 deletions docs/external-databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ How to confirm: Check what user is configured: `levelrail-cli databases get <nam

Fix: Either create a new external database record with a write-enabled user, or grant the user write permissions on the database server. For Postgres: `ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT INSERT, UPDATE, DELETE ON TABLES TO <user>`.

Still stuck: Use the database viewer (Databases > <database> > Editor) with an admin user instead, or reconfigure the external database with a different user role that has write access.
Still stuck: Use the database viewer (Databases > &lt;database&gt; > Editor) with an admin user instead, or reconfigure the external database with a different user role that has write access.

</Accordion>
</AccordionGroup>
Expand All @@ -220,7 +220,7 @@ Likely cause: The host and port are wrong, the database is not running, or a fir

How to confirm: Try connecting manually from the control plane node: `psql -h <host> -p <port> -U <user> <database>` for Postgres, or `mysql -h <host> -p <port> -u <user> -e "SELECT 1" <database>`. If it hangs or refuses, the network path is blocked.

Fix: Verify the host IP or hostname is correct. Check that the database is running on the remote machine. If behind a firewall, ensure the port is open from the control plane node to the database host. Run the test again: `levelrail-cli databases probe <name>` or Dashboard > Databases > <database> > Check now.
Fix: Verify the host IP or hostname is correct. Check that the database is running on the remote machine. If behind a firewall, ensure the port is open from the control plane node to the database host. Run the test again: `levelrail-cli databases probe <name>` or Dashboard > Databases > &lt;database&gt; > Check now.

Still stuck: Run `curl -v <host>:<port>` from the control plane to diagnose network connectivity.

Expand Down
2 changes: 1 addition & 1 deletion docs/iac/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tag: "Experimental"
description: Every stable error code an apply, plan or stack call can return, what it means and how to fix it. Generated from the code list.
---

<!-- Generated by scripts/geniacref from internal/iac/codes.go. Do not edit. -->
{/* Generated by scripts/geniacref from internal/iac/codes.go. Do not edit. */}

Codes are frozen: a released code is never renamed or reused, only added to. Match on the `code` field, not the message text.

Expand Down
4 changes: 2 additions & 2 deletions docs/iac/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "IaC reference"
description: Every resource kind, its fields, types and which are required. Generated from the JSON Schema.
---

<!-- Generated by scripts/geniacref from the IaC JSON Schema. Do not edit. -->
{/* Generated by scripts/geniacref from the IaC JSON Schema. Do not edit. */}

Every document has `version: 1`, a `kind`, a `metadata.name` and a `spec`. Fields marked required must be set.

Expand Down Expand Up @@ -182,7 +182,7 @@ No fields.
| --- | --- | --- | --- |
| `spec.app` | string | yes | Name of the app the rule watches. |
| `spec.channel` | string | no | Notification channel to alert. |
| `spec.comparator` | string | no | Comparison of the metric against threshold: >, <, >= or <=. Required for threshold rules and ignored by other kinds. |
| `spec.comparator` | string | no | Comparison of the metric against threshold: >, &lt;, >= or &lt;=. Required for threshold rules and ignored by other kinds. |
| `spec.enabled` | boolean | no | Whether the rule is active. |
| `spec.for` | string | no | How long the condition must hold before alerting. |
| `spec.metric` | string | no | Metric the rule evaluates. |
Expand Down
2 changes: 1 addition & 1 deletion docs/pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Browser posts redirect to the form's redirect URL or show a built-in thank-you p

### Export submissions as CSV

In the site's Forms tab, each form has an **Export <form> as CSV** button. It downloads `GET /api/v1/apps/{name}/forms/{form}/export` (ability `read:sensitive`), a `text/csv` attachment named `<app>-<form>-submissions.csv` with up to 50,000 submissions. The columns are `id`, `created_at` (UTC, RFC3339) and `spam`, then one column per field name seen across the submissions, sorted by name. Cells that a spreadsheet would run as a formula are prefixed with a quote. Submissions marked as spam show a **Spam** badge in the tab, with the reason when one was recorded.
In the site's Forms tab, each form has an **Export &lt;form&gt; as CSV** button. It downloads `GET /api/v1/apps/{name}/forms/{form}/export` (ability `read:sensitive`), a `text/csv` attachment named `<app>-<form>-submissions.csv` with up to 50,000 submissions. The columns are `id`, `created_at` (UTC, RFC3339) and `spam`, then one column per field name seen across the submissions, sorted by name. Cells that a spreadsheet would run as a formula are prefixed with a quote. Submissions marked as spam show a **Spam** badge in the tab, with the reason when one was recorded.

### Preview the 404 page

Expand Down
6 changes: 3 additions & 3 deletions docs/runtime-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The environment variables that seed these defaults are also listed on [Environme
| `pipelines.status_links` | bool | `false` | any valid bool | `APP_PIPELINE_STATUS_LINKS` | yes | Allows expiring, revocable links that show one run's status without signing in. No logs, no secrets, no actions. Turning it off disables every existing link. Weakening it asks for confirmation. | `levelrail-cli settings runtime get\|set pipelines.status_links` | Settings > Security and runtime, Security card |
| `policy.image_signature_cache_minutes` | int | `10` | value must be between 0 and 1440 | `APP_POLICY_IMAGE_SIGNATURE_CACHE_MINUTES` | yes | How long a verified or rejected verdict is reused for the same image digest and signer list. 0 checks on every deploy. Failed, unsigned, unreachable and timed out checks are never cached, so a fix takes effect on the next deploy. | `levelrail-cli settings runtime get\|set policy.image_signature_cache_minutes` | Settings > Security and runtime, Security card |
| `policy.image_signature_timeout_seconds` | int | `15` | value must be between 2 and 120 | `APP_POLICY_IMAGE_SIGNATURE_TIMEOUT_SECONDS` | yes | How long one signature check may read the registry before the deploy is refused as unverifiable. | `levelrail-cli settings runtime get\|set policy.image_signature_timeout_seconds` | Settings > Security and runtime, Security card |
| `policy.image_trusted_signers` | string_list | empty | colon separated list | `APP_POLICY_IMAGE_TRUSTED_SIGNERS` | yes | Who may sign images the require_image_signature policy rule accepts. Each entry is key:<base64 DER ECDSA public key> or keyless:<https issuer>\|<exact identity>. Identities are matched exactly. With the rule on and this list empty, every deploy is refused. | `levelrail-cli settings runtime get\|set policy.image_trusted_signers` | Settings > Security and runtime, Security card |
| `policy.image_trusted_signers` | string_list | empty | colon separated list | `APP_POLICY_IMAGE_TRUSTED_SIGNERS` | yes | Who may sign images the require_image_signature policy rule accepts. Each entry is key:&lt;base64 DER ECDSA public key> or keyless:&lt;https issuer>\|&lt;exact identity>. Identities are matched exactly. With the rule on and this list empty, every deploy is refused. | `levelrail-cli settings runtime get\|set policy.image_trusted_signers` | Settings > Security and runtime, Security card |
| `profile.gravatar_cache_max` | int | `256` | value must be between 16 and 500 | `APP_PROFILE_GRAVATAR_CACHE_MAX` | yes | Most Gravatar images kept in memory at once, from 16 to 500, which keeps the cache under about 64 MiB. | `levelrail-cli settings runtime get\|set profile.gravatar_cache_max` | Settings > Security and runtime, Security card |
| `profile.gravatar_cache_ttl` | duration | `1h` | value must be a duration between 1m0s and 24h0m0s | `APP_PROFILE_GRAVATAR_CACHE_TTL` | yes | How long a fetched Gravatar, or a missing one, is kept in memory, from 1m to 24h. | `levelrail-cli settings runtime get\|set profile.gravatar_cache_ttl` | Settings > Security and runtime, Security card |
| `profile.gravatar_enabled` | bool | `false` | any valid bool | `APP_PROFILE_GRAVATAR_ENABLED` | yes | Let the server fetch a Gravatar for users who turned Gravatar on and have no uploaded photo. Only a hash of the email goes to gravatar.com, browsers never contact it. | `levelrail-cli settings runtime get\|set profile.gravatar_enabled` | Settings > Security and runtime, Security card |
Expand Down Expand Up @@ -782,7 +782,7 @@ The environment variables that seed these defaults are also listed on [Environme
| `alerts.default_5xx_percent` | int | `5` | value must be between 1 and 100 | `APP_ALERTS_DEFAULT_5XX_PERCENT` | yes | Percent of 5xx responses over the request window that fires the default error rate alert for any app, from 1 to 100. | `levelrail-cli settings runtime get\|set alerts.default_5xx_percent` | Settings > Security and runtime, Observability card |
| `alerts.default_crashloop_restarts` | int | `3` | value must be between 2 and 50 | `APP_ALERTS_DEFAULT_CRASHLOOP_RESTARTS` | yes | Restarts of one app inside ten minutes that fire the default crash loop alert, from 2 to 50. | `levelrail-cli settings runtime get\|set alerts.default_crashloop_restarts` | Settings > Security and runtime, Observability card |
| `alerts.defaults_enabled` | bool | `true` | any valid bool | `APP_ALERTS_DEFAULTS_ENABLED` | yes | Master switch for the built-in alert rules (crash loop, disk, certificate expiry, 5xx rate, failed backups). Turning it off disables them; rules you deleted are never re-added. | `levelrail-cli settings runtime get\|set alerts.defaults_enabled` | Settings > Security and runtime, Observability card |
| `alerts.digest_schedule` | string | `off` | use off or <day>@<hour>, for example mon@08 | `APP_ALERTS_DIGEST_SCHEDULE` | yes | Send one weekly summary mail to the admin (apps, deploys, restarts, certificates, backups, disk). Off, or a day and UTC hour such as mon@08. Needs email configured. | `levelrail-cli settings runtime get\|set alerts.digest_schedule` | Settings > Security and runtime, Observability card |
| `alerts.digest_schedule` | string | `off` | use off or &lt;day>@&lt;hour>, for example mon@08 | `APP_ALERTS_DIGEST_SCHEDULE` | yes | Send one weekly summary mail to the admin (apps, deploys, restarts, certificates, backups, disk). Off, or a day and UTC hour such as mon@08. Needs email configured. | `levelrail-cli settings runtime get\|set alerts.digest_schedule` | Settings > Security and runtime, Observability card |
| `alerts.duration_regression_baseline` | int | `10` | value must be between 1 and 100 | none | yes | How many succeeded builds or deploys before the newest ones set an app's usual p50 for the duration regression alert. An app needs recent plus this many runs before it is checked. | `levelrail-cli settings runtime get\|set alerts.duration_regression_baseline` | Settings > Security and runtime, Observability card |
| `alerts.duration_regression_percent` | int | `50` | value must be between 0 and 1000 | none | yes | A deploy_duration_regression alert fires when an app's recent build or deploy p50 grows past this percent over its own earlier p50, naming the stage that grew. 0 turns the check off. | `levelrail-cli settings runtime get\|set alerts.duration_regression_percent` | Settings > Security and runtime, Observability card |
| `alerts.duration_regression_recent` | int | `3` | value must be between 1 and 30 | none | yes | How many of the newest succeeded builds or deploys of an app form its current p50 for the duration regression alert. | `levelrail-cli settings runtime get\|set alerts.duration_regression_recent` | Settings > Security and runtime, Observability card |
Expand Down Expand Up @@ -1154,7 +1154,7 @@ The environment variables that seed these defaults are also listed on [Environme
| `k8s.allowed_namespaces` | string | empty | "-1" is not a lowercase DNS label | `APP_K8S_ALLOWED_NAMESPACES` | yes | Comma separated namespaces a deploy may use although Levelrail did not create them. The default namespace is always allowed. Empty by default. | `levelrail-cli settings runtime get\|set k8s.allowed_namespaces` | Settings > Security and runtime, Experimental card |
| `k8s.app_target_enabled` | bool | `true` | any valid bool | `APP_K8S_APP_TARGET_ENABLED` | yes | Lets root create and update apps that deploy to a connected Kubernetes cluster and list under a Kubernetes category. On by default. | `levelrail-cli settings runtime get\|set k8s.app_target_enabled` | Settings > Security and runtime, Experimental card |
| `k8s.cluster_agent_enabled` | bool | `false` | any valid bool | `APP_K8S_CLUSTER_AGENT_ENABLED` | yes | Lets root connect a cluster through an outbound agent that runs inside it, so the API server needs no inbound port. Needs k8s.clusters_enabled and k8s.cluster_agent_image. Experimental and not yet proven on a real cluster. Off by default. | `levelrail-cli settings runtime get\|set k8s.cluster_agent_enabled` | Settings > Security and runtime, Experimental card |
| `k8s.cluster_agent_image` | string | empty | must be empty or an image reference pinned by digest, such as registry.example/agent@sha256:<64 hex> | `APP_K8S_CLUSTER_AGENT_IMAGE` | yes | Digest pinned image reference the cluster agent manifest runs. Empty by default, which refuses connecting an agent cluster until an operator sets it. | `levelrail-cli settings runtime get\|set k8s.cluster_agent_image` | Settings > Security and runtime, Experimental card |
| `k8s.cluster_agent_image` | string | empty | must be empty or an image reference pinned by digest, such as registry.example/agent@sha256:&lt;64 hex> | `APP_K8S_CLUSTER_AGENT_IMAGE` | yes | Digest pinned image reference the cluster agent manifest runs. Empty by default, which refuses connecting an agent cluster until an operator sets it. | `levelrail-cli settings runtime get\|set k8s.cluster_agent_image` | Settings > Security and runtime, Experimental card |
| `k8s.clusters_enabled` | bool | `true` | any valid bool | `APP_K8S_CLUSTERS_ENABLED` | yes | Lets root connect external Kubernetes clusters and deploy apps to them. On by default. | `levelrail-cli settings runtime get\|set k8s.clusters_enabled` | Settings > Security and runtime, Experimental card |
| `k8s.cpu_limit` | string | `500m` | must be a Kubernetes quantity such as 100m or 128Mi | `APP_K8S_CPU_LIMIT` | yes | CPU limit set on every deployed container, as a Kubernetes quantity such as 500m. | `levelrail-cli settings runtime get\|set k8s.cpu_limit` | Settings > Security and runtime, Experimental card |
| `k8s.cpu_request` | string | `100m` | must be a Kubernetes quantity such as 100m or 128Mi | `APP_K8S_CPU_REQUEST` | yes | CPU request set on every deployed container, as a Kubernetes quantity such as 100m. | `levelrail-cli settings runtime get\|set k8s.cpu_request` | Settings > Security and runtime, Experimental card |
Expand Down
Loading