diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml
index d400e978..cb6ec86a 100644
--- a/.github/workflows/backend-ci.yml
+++ b/.github/workflows/backend-ci.yml
@@ -13,11 +13,15 @@ on:
branches: [dev]
paths:
- 'backend/**'
+ - 'docs/MIGRATION_INVENTORY.md'
+ - 'scripts/generate-migration-inventory.py'
- '.github/workflows/backend-ci.yml'
pull_request:
branches: [main, dev]
paths:
- 'backend/**'
+ - 'docs/MIGRATION_INVENTORY.md'
+ - 'scripts/generate-migration-inventory.py'
- '.github/workflows/backend-ci.yml'
workflow_call:
@@ -29,8 +33,8 @@ jobs:
name: test-count ratchet
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v7
+ - uses: actions/setup-python@v7
with:
python-version: '3.11'
cache: pip
@@ -82,8 +86,8 @@ jobs:
matrix:
group: [1, 2, 3, 4]
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v7
+ - uses: actions/setup-python@v7
with:
python-version: '3.11'
cache: pip
@@ -115,8 +119,8 @@ jobs:
name: real binaries
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v7
+ - uses: actions/setup-python@v7
with:
python-version: '3.11'
cache: pip
@@ -149,8 +153,8 @@ jobs:
name: docker builds
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v7
+ - uses: actions/setup-python@v7
with:
python-version: '3.11'
cache: pip
diff --git a/.github/workflows/distro-compatibility-discovery.yml b/.github/workflows/distro-compatibility-discovery.yml
index 15a05090..5e0901bc 100644
--- a/.github/workflows/distro-compatibility-discovery.yml
+++ b/.github/workflows/distro-compatibility-discovery.yml
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Run exact and proxy image probes
run: >-
@@ -35,7 +35,7 @@ jobs:
- name: Upload detailed evidence
if: always()
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: distro-compatibility-report
path: scripts/test/output/distro-compatibility/
diff --git a/.github/workflows/extensions-ci.yml b/.github/workflows/extensions-ci.yml
index b0a8289d..b6572486 100644
--- a/.github/workflows/extensions-ci.yml
+++ b/.github/workflows/extensions-ci.yml
@@ -28,8 +28,8 @@ jobs:
name: builtin frontend drift check
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-node@v4
+ - uses: actions/checkout@v7
+ - uses: actions/setup-node@v7
with:
node-version: '22'
- name: Check builtin-extension frontends are in sync
diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml
index ca928566..62c4f71b 100644
--- a/.github/workflows/frontend-ci.yml
+++ b/.github/workflows/frontend-ci.yml
@@ -29,8 +29,8 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-node@v4
+ - uses: actions/checkout@v7
+ - uses: actions/setup-node@v7
with:
node-version: '22'
cache: npm
@@ -89,9 +89,12 @@ jobs:
- name: Assistant deployment browser regressions
working-directory: frontend
run: npm run test:ai-operations
+ - name: Layout screenshot regressions
+ working-directory: frontend
+ run: npm run test:layout
- name: Upload Settings screenshots
if: always()
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: settings-browser-screenshots
path: frontend/test-results/
diff --git a/.github/workflows/measurements-ci.yml b/.github/workflows/measurements-ci.yml
index 216c3bde..907d7885 100644
--- a/.github/workflows/measurements-ci.yml
+++ b/.github/workflows/measurements-ci.yml
@@ -38,8 +38,8 @@ jobs:
measurements:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v7
+ - uses: actions/setup-python@v7
with:
python-version: '3.11'
- name: Test measurement tools (stdlib only)
diff --git a/.github/workflows/release-smoke.yml b/.github/workflows/release-smoke.yml
index e8948ab1..7f87cc49 100644
--- a/.github/workflows/release-smoke.yml
+++ b/.github/workflows/release-smoke.yml
@@ -54,7 +54,7 @@ jobs:
dev_tag: ${{ steps.dev.outputs.tag }}
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
persist-credentials: false
@@ -73,7 +73,7 @@ jobs:
echo "Dev build: v$version"
- name: Set up Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v7
with:
node-version: '22'
@@ -89,7 +89,7 @@ jobs:
- name: Save the dev release files
if: github.event_name == 'push'
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: dev-release
path: |
@@ -108,7 +108,7 @@ jobs:
steps:
# No checkout or repository scripts run with the write token.
- name: Download the built release files
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: dev-release
@@ -157,13 +157,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
- name: Build image (amd64)
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 70d42507..61cfb9a1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -77,7 +77,7 @@ jobs:
tag: ${{ steps.version.outputs.tag }}
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
fetch-depth: 0
@@ -130,10 +130,10 @@ jobs:
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Set up Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v7
with:
node-version: '22'
@@ -148,7 +148,7 @@ jobs:
run: bash scripts/build-release.sh
- name: Upload release artifacts
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: serverkit-release-${{ matrix.arch }}
path: |
@@ -163,16 +163,16 @@ jobs:
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Set up QEMU
- uses: docker/setup-qemu-action@v3
+ uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
- name: Login to Docker Hub
- uses: docker/login-action@v3
+ uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -186,7 +186,7 @@ jobs:
# catches that. The layers are cached, so the multi-arch push below reuses
# this build rather than repeating it.
- name: Build amd64 image for smoke test
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64
@@ -204,7 +204,7 @@ jobs:
run: SKIP_BUILD=1 bash scripts/test/smoke-docker-image.sh serverkit:smoke
- name: Build and push Docker image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64,linux/arm64
@@ -227,10 +227,10 @@ jobs:
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Download release artifacts
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
path: release-artifacts
pattern: serverkit-release-*
diff --git a/.github/workflows/scripts-ci.yml b/.github/workflows/scripts-ci.yml
index 53b0de86..1d944148 100644
--- a/.github/workflows/scripts-ci.yml
+++ b/.github/workflows/scripts-ci.yml
@@ -44,7 +44,7 @@ jobs:
name: lint + unit
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Syntax check (bash -n)
run: |
@@ -123,7 +123,7 @@ jobs:
- 'fedora:40'
- 'opensuse/leap:15.5'
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Pull ${{ matrix.image }} (Docker Hub, then mirror)
env:
@@ -209,7 +209,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Run probe matrix
run: bash scripts/test/probe-matrix.sh
@@ -241,7 +241,7 @@ jobs:
- 'fedora:40'
- 'opensuse/leap:15.5'
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: provision_python on ${{ matrix.image }}
run: |
@@ -265,7 +265,7 @@ jobs:
# fails here instead of on someone's Pi. Real-hardware validation (GPIO,
# SD-card I/O, 32-bit ARM) still needs a physical device.
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: bash -n + unit suites on arm64
run: |
set -e
@@ -294,7 +294,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Install ServerKit (non-interactive, no domain, plain HTTP)
run: |
@@ -380,7 +380,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: ShellCheck --enable=all (advisory — never fails the build)
continue-on-error: true
diff --git a/.github/workflows/scripts-nightly.yml b/.github/workflows/scripts-nightly.yml
index f9e5e807..adeb83ac 100644
--- a/.github/workflows/scripts-nightly.yml
+++ b/.github/workflows/scripts-nightly.yml
@@ -43,7 +43,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Verify the agent release chain
run: bash scripts/test/verify-agent-release-chain.sh
@@ -63,10 +63,10 @@ jobs:
timeout-minutes: 45
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Set up Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v7
with:
node-version: '22'
@@ -143,7 +143,7 @@ jobs:
timeout-minutes: 60
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Install the latest published release (baseline)
id: baseline
diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml
index 87a2e6ec..b4ebcade 100644
--- a/.github/workflows/security-scan.yml
+++ b/.github/workflows/security-scan.yml
@@ -37,9 +37,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- - uses: actions/setup-python@v5
+ - uses: actions/setup-python@v7
with:
python-version: '3.11'
@@ -54,7 +54,7 @@ jobs:
- name: Upload full Bandit report
if: always()
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: bandit-report
path: bandit-report.json
@@ -76,9 +76,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- - uses: actions/setup-python@v5
+ - uses: actions/setup-python@v7
with:
python-version: '3.11'
@@ -105,8 +105,8 @@ jobs:
name: Frontend Production Dependency Scan
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-node@v4
+ - uses: actions/checkout@v7
+ - uses: actions/setup-node@v7
with:
node-version: '22'
cache: npm
@@ -133,7 +133,7 @@ jobs:
continue-on-error: true
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Run Safety CLI to check for vulnerabilities
continue-on-error: true
diff --git a/.github/workflows/test-system-utils.yml b/.github/workflows/test-system-utils.yml
index b60e9c47..17ee1db8 100644
--- a/.github/workflows/test-system-utils.yml
+++ b/.github/workflows/test-system-utils.yml
@@ -56,7 +56,7 @@ jobs:
DEBIAN_FRONTEND: noninteractive
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Install Python & pytest
shell: bash
@@ -86,10 +86,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v7
with:
python-version: '3.11'
diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml
index c1c7b95f..5277693b 100644
--- a/.github/workflows/version-bump.yml
+++ b/.github/workflows/version-bump.yml
@@ -23,7 +23,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.gitignore b/.gitignore
index e2e4800f..34077ef3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -132,6 +132,10 @@ SECURITY_AND_CODE_AUDIT.md
!/docs/screenshots/
!/docs/screenshots/*.png
+# Layout screenshot baselines compared by `npm run test:layout`.
+!/frontend/tests/layout-baselines/
+!/frontend/tests/layout-baselines/*.png
+
# Video walkthrough thumbnails linked from the README.
!/docs/videos/*.png
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8e447d1f..6357b9da 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,15 @@ release history; historical `agent-v*` tags are not panel releases.
### Added
+- Agent permission levels (Monitor / Protect / Full), enforced by the agent and
+ reported to the panel. Adds a signed `POST /api/v1/agent/report` endpoint for
+ report-only Monitor agents, per-server level and service-check state (server
+ list badge and health, server detail panel), offline / service-down alerts
+ through the existing fleet alerts and notification channels, audited level
+ changes, and a panel-side command gate. The panel cannot set the level; it is
+ changed on the server with `serverkit-agent permissions set`. See
+ [docs/AGENT_PERMISSION_LEVELS.md](docs/AGENT_PERMISSION_LEVELS.md). Migration
+ 112. The Add Server commands now pass `--level` / `-Level`.
- `GET /api/v1/servers` now accepts an API key (`X-API-Key`) carrying the
`servers:read` scope, in addition to the usual JWT, so external tools can
poll the server list read-only without a short-lived token. JWT callers are
diff --git a/Dockerfile b/Dockerfile
index ab5a6577..f79de11d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -71,7 +71,7 @@ RUN pip install --no-cache-dir --upgrade pip \
# surfaces as a failed image build, never as a half-installed panel on a host.
#
# 1. Bundled test suites. Third-party packages ship their own pytest trees
-# (passlib is the big one) that no running panel imports.
+# that no running panel imports.
# 2. botocore API models. botocore carries JSON models for 400+ AWS services
# (~15 MB); ServerKit constructs exactly three clients — s3
# (storage_provider_service), route53 (dns_provider_service) and ses
@@ -190,4 +190,4 @@ WORKDIR /app/backend
# Single process (agent gateway state is in-memory) + threads: the app runs
# async_mode='threading' (simple-websocket serves WS); a gevent-websocket
# worker would double-answer the upgrade handshake and break WebSocket.
-CMD ["sh", "-c", "exec gunicorn --workers 1 --threads 100 --bind 0.0.0.0:${SERVERKIT_BACKEND_PORT:-5000} --timeout 120 --access-logfile - --error-logfile - run:app"]
+CMD ["sh", "-c", "exec gunicorn --workers 1 --threads ${SERVERKIT_THREADS:-100} --bind 0.0.0.0:${SERVERKIT_BACKEND_PORT:-5000} --timeout 120 --access-logfile - --error-logfile - run:app"]
diff --git a/SECURITY.md b/SECURITY.md
index 2c693641..15da1660 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -7,8 +7,8 @@ release line and the `main` branch.
| Version | Supported |
|---------|-----------|
-| 1.7.x | ✅ |
-| < 1.7 | ❌ (please upgrade) |
+| 1.11.x | ✅ |
+| < 1.11 | ❌ (please upgrade) |
The **agent** ships from its own repository, `jhd3197/serverkit-agent`, and is
versioned independently (`vX.Y.Z` — it used `agent-vX.Y.Z` while it lived in this
@@ -47,6 +47,12 @@ trust boundaries:
(`system:exec`) and interactive PTY sessions are controlled by the agent's
`Features.Exec` flag, which is **off by default**. Enable it only on servers
where you intend the panel to run shell commands.
+- **Permission levels bound what a compromised panel can do.** An agent runs as
+ Monitor (report-only, no inbound command channel), Protect (security allowlist
+ only) or Full. The level is read only from the agent's local config and can
+ only be changed on the server (`serverkit-agent permissions set`); the panel
+ records and audits the reported level but has no API to set it. See
+ [docs/AGENT_PERMISSION_LEVELS.md](docs/AGENT_PERMISSION_LEVELS.md).
- **Transport & connection controls.** Agents authenticate to the panel with
per-connection HMAC-SHA256 (with nonce/replay protection and a timestamp-skew
check), and the panel enforces a per-server IP allowlist. Use `wss://`
@@ -137,6 +143,13 @@ carry a `sink-safe:
- {t('app.deployTab.anImmutableConfigCheckpointEnvKeys', 'An immutable restore point (env keys, domains, image, build method, volumes) is captured before each deployment. Secret values are masked. Open a restore point to diff it against the previous one or restore it.')}
+ {t('app.deployTab.restorePointsShort', 'Captured before every deployment.')}
- {t('app.containerOpsPanel.imageUpdatesApplyToDockerCompose', 'Image updates apply to services deployed with Docker Compose. You can still check this service\'s digest, but "Update now" is only available for Docker Compose deployments.')}
+ {t('app.containerOpsPanel.imageUpdatesApplyToDockerComposeShort', 'Image updates need Docker Compose.')}
- {t('app.deploySafetyPanel.intro', 'Before a new release counts as live, ServerKit asks it for this path and waits for a 2xx or 3xx answer three times in a row. A release that never answers fails the deploy.')}
+ {t('app.deploySafetyPanel.introShort', 'New releases must answer before going live.')}
- {t('app.htaccessConverter.pasteTheContentsOfAnApache', 'Paste the contents of an Apache')} .htaccess {t('app.htaccessConverter.fileEGFromAnImported', 'file (e.g. from an imported cPanel site). Rewrites, redirects, access rules and basic auth are translated to nginx directives for the custom rules box; anything that has no equivalent is listed below instead of being dropped.')}
+ {t('app.htaccessConverter.hintShort', 'Paste an .htaccess file to convert it.')} .htaccess {t('app.htaccessConverter.fileEGFromAnImported', 'file (e.g. from an imported cPanel site). Rewrites, redirects, access rules and basic auth are translated to nginx directives for the custom rules box; anything that has no equivalent is listed below instead of being dropped.')}
- {t('app.microCachePanel.cachesFullPagesInNginx', 'Caches full pages in nginx for a few seconds, so traffic spikes hit the cache instead of your service, and visitors still get the last good page while the service restarts or errors. It is safe to enable: requests from logged-in users, carts and checkouts, admin and login pages, non-GET requests, and URLs with query strings always bypass the cache and reach the service directly.')}
+ {t('app.microCachePanel.cachesFullPagesShort', 'Caches pages in nginx for a few seconds.')}
- {t('app.resourceLimitsPanel.capHowMuchCpuAndMemory', 'Cap how much CPU and memory this service\'s container may use. Leave a field empty for no limit. Limits are written into the generated compose configuration and enforced by Docker.')}
+ {t('app.resourceLimitsPanel.capShort', 'Cap CPU and memory. Empty means no limit.')}
- {t('app.slotDeploysPanel.intro', 'Each deploy boots the new release in a second slot on its own port while the live one keeps serving. It switches traffic only after the new release passes its health check, watches it for a while, and switches back on its own if it falls over. The previous release stays warm for an instant manual switch back.')}
+ {t('app.slotDeploysPanel.introShort', 'Zero-downtime deploys with automatic rollback.')}
- {t('app.volumesPanel.firstClassPersistentStorageThatSurvives', 'First-class persistent storage that survives redeploys. Each volume is a named Docker volume mounted into the container at the path you choose, which is safer than a relative bind mount. Changes apply on the next deploy.')}
+ {t('app.volumesPanel.firstClassPersistentStorageThatSurvivesShort', 'Persistent storage that survives redeploys.')}
{fe.error('name')}
}{t('app.engineInstallDrawer.namesTheServiceItsContainerAnd', 'Names the service, its container and its data volume.')}
@@ -362,6 +377,8 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta variable={variable} value={vars[variable.name]} onChange={(value) => setVar(variable.name, value)} + onBlur={() => fe.touch(`var-${variable.name}`)} + error={fe.error(`var-${variable.name}`)} /> ))} @@ -457,7 +474,7 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta
- {t('app.importDumpModal.anAbsolutePathOnTheServer', 'An absolute path on the panel server. There is no upload endpoint, so a file on your own machine has to be copied across first (scp, the file manager, or a backup taken here).')} .gz {t('app.importDumpModal.isDecompressedAutomatically', 'is decompressed automatically.')}
+ {t('app.importDumpModal.anAbsolutePathShort', 'Absolute path on the panel server.')} .gz {t('app.importDumpModal.isDecompressedAutomatically', 'is decompressed automatically.')}
{error}
{t('common.loading', 'Loading…')}