Skip to content

feat: Levelrail v1.5.21, stability, small server speed, sleep and build guardrails - #1875

Merged
thegdsks merged 14 commits into
mainfrom
release/v1.5.21
Dec 4, 2026
Merged

thegdsks merged 14 commits into
mainfrom
release/v1.5.21

Conversation

@thegdsks

@thegdsks thegdsks commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Levelrail 1.5.21: stability first (proxy reloads, templates, settings overwrites, backups), then small server speed, sleep for idle apps and databases, build guardrails and the build server.

Change ID and tasks

Added / Changed / Removed / Fixed

  • Fixed: proxy reloading every pass when a domain uses basic auth; shared volumes in six templates; alert updates clearing other settings; scheduled backups of stopped databases now skipped with a reason; cut off downloads accepted as complete; bot pattern allocations; scoped search decoding rows twice; flaky terminal tests; screego health check.

Surfaces touched

  • API
  • CLI
  • Dashboard
  • Docs
  • Why a surface is missing: the backup skip reason has no dashboard view yet.

Migrations

  • Numbers: 3400
  • Forward only, no down migration

Runtime settings added

  • None

Feature flags and status

  • No flag

Security review

Basic auth change reviewed.

Behaviour changes and upgrade notes

Existing OpenProject installs need a manual volume copy, see docs/compose-apps.md.

Not verified / needs a real host

Basic auth reload behaviour and template changes on a real host (SiteWatcher was run locally).

Tests run

Targeted tests per change.

Rollback

Revert. The migration is forward only.

Confidence Score: 4/5RetriggerView in Greptile

Fix the alert enabled-state bug before merging; an unrelated edit can leave alerts permanently disabled.

Findings

  1. P1 Paused alerts stay disabled ▶
  2. P2 Screego readiness guidance is wrong ▶
Fix with agent prompt
### Issue 1
internal/api/alerts_update_merge.go:38
A threshold-only update can permanently disable a rule while its notification channel is paused. `GetRule` returns `Enabled=false` when the channel is disabled. `toRuleResource(prev)` keeps that computed value, and `SaveRule` writes it into the rule even though the caller omitted `enabled`. Turning the channel back on then leaves the rule disabled.

Build the merge base from the rule's saved settings rather than its computed delivery state.

### Issue 2
docs/self-host/screego.mdx:37
This page says deployment only checks whether the process starts, but the template now declares an HTTP check through `x-levelrail-healthcheck`. `resolveServiceHealth` prefers that check over the disabled container check, so Levelrail still checks `/health` before the service is ready. Operators following this guidance could misread why a running service is still waiting.

Update this page and the generated requirements in `catalog-index.json` to describe the external HTTP check.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

This PR improves alert editing, backup behavior, proxy stability, and template storage.

  • Alert edits now change sent settings and keep the rest.
  • Stopped databases now show why scheduled backups were skipped.
  • Six app templates now mark volumes that their services share.
  • Screego now uses its HTTP health endpoint as its readiness check.
  • Basic-auth reloads now reuse the same password hash while the password stays the same.
  • Access checks now load service membership without decoding full service rows.
  • Traffic classification now avoids parsing its refresh interval on every request.
  • Domain-connect fetches now reject responses whose request context expired.
  • Test markers and benchmark notes now match the behavior they measure.

Acknowledged by thegdsks: existing OpenProject installs need a manual volume copy; the backup skip reason has no dashboard view yet; basic-auth reloads and template changes still need real-host checks.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[CLI or dashboard sends selected fields] --> B[Load existing rule]
  B --> C[Merge sent fields]
  C --> D[Check ownership and references]
  D --> E[Save rule]
  E --> F[Return masked destination]
  G[Disabled notification channel] -->|Makes loaded Enabled false| B
  C -->|If enabled was omitted| H[Computed false becomes saved false]
Loading

Reviews (1) · Last reviewed commit: "perf: stop decoding every app row twice ..." · Reviewed by Greptile

@thegdsks thegdsks added this to the v1.5.21 milestone Dec 4, 2026
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

… a remote terminal

The echoed command followed by the first prompt could satisfy the wait while the
shell had not yet run it, so Close raced the shell's raw mode and lost Ctrl-D.

Refs #1622
…input echo

The echoed command already contained the marker, so the check passed without
tty -s running.

Refs #1658
The growth is the toolchain, not the route builder. Go 1.27 encoding/json
(json/v2) allocates a copy of every struct held in an interface, so each
route pays two extra allocations in marshal. A 500 route probe shows 5
allocs on go1.26.10 and 2006 on go1.27. JSON output bytes are unchanged.
…ch timed out

On timeout the client's TLS close notify reaches the server before the socket
shuts, so the server could finish the chunked body and the cut response read as
complete.
…figured

The refresh interval was parsed from the environment on each match, and an
unset value builds a parse error. It is now read only when the list rebuilds.
…im test

The test still expected a db- volume to be reclaimable. It now reclaims an
app volume, expects a conflict for the database one, and the docs say so.
…quests

A team scoped apps list with a query loaded all services in full for the
search access check and again for the stack sharing check. Both only need
the name and app id. At 1000 apps the local apps list p95 goes from 21ms to
14ms, and allocation drops accordingly.
@thegdsks
thegdsks marked this pull request as ready for review December 4, 2026 19:38
@thegdsks thegdsks self-assigned this Dec 4, 2026
@thegdsks
thegdsks merged commit 46ffb79 into main Dec 4, 2026
74 of 78 checks passed
@thegdsks
thegdsks deleted the release/v1.5.21 branch December 4, 2026 19:39
if err := json.Unmarshal(body, &sent); err != nil {
return out, err
}
base := toRuleResource(prev)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Paused alerts stay disabled

A threshold-only update can permanently disable a rule while its notification channel is paused. GetRule returns Enabled=false when the channel is disabled. toRuleResource(prev) keeps that computed value, and SaveRule writes it into the rule even though the caller omitted enabled. Turning the channel back on then leaves the rule disabled.

Build the merge base from the rule's saved settings rather than its computed delivery state.

Prompt To Fix With AI
This is a comment left during a code review.
Path: internal/api/alerts_update_merge.go
Line: 38

Comment:
**Paused alerts stay disabled**

A threshold-only update can permanently disable a rule while its notification channel is paused. `GetRule` returns `Enabled=false` when the channel is disabled. `toRuleResource(prev)` keeps that computed value, and `SaveRule` writes it into the rule even though the caller omitted `enabled`. Turning the channel back on then leaves the rule disabled.

Build the merge base from the rule's saved settings rather than its computed delivery state.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

What this template needs:

- Passwords and keys are generated at deploy time (`screego`): SCREEGO_SECRET.
- No health check, so a deploy is judged by the process starting (`screego`).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Screego readiness guidance is wrong

This page says deployment only checks whether the process starts, but the template now declares an HTTP check through x-levelrail-healthcheck. resolveServiceHealth prefers that check over the disabled container check, so Levelrail still checks /health before the service is ready. Operators following this guidance could misread why a running service is still waiting.

Update this page and the generated requirements in catalog-index.json to describe the external HTTP check.

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/self-host/screego.mdx
Line: 37

Comment:
**Screego readiness guidance is wrong**

This page says deployment only checks whether the process starts, but the template now declares an HTTP check through `x-levelrail-healthcheck`. `resolveServiceHealth` prefers that check over the disabled container check, so Levelrail still checks `/health` before the service is ready. Operators following this guidance could misread why a running service is still waiting.

Update this page and the generated requirements in `catalog-index.json` to describe the external HTTP check.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant