mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-27 12:18:59 +00:00
a1804c8fbe
* docs: comprehensive review and refresh of all documentation pages Reviewed every doc page against the current app state after the v0.38 dashboard redesign. Updated content, fixed inaccuracies, and refreshed all screenshots at 1920x1080. Pages updated: - introduction: expanded feature list to 25 items across 6 subsections - quickstart: fixed docker run command (Docker Hub, auto JWT, COMPOSE_DIR) - configuration: replaced personal paths with generic /home/user/docker - sso-quickstart: fixed Settings navigation reference - sso: added SSO_LDAP_DISPLAY_NAME env var - overview: added 8 missing feature sections (labels, API tokens, schedules, etc.) - dashboard: complete rewrite for new health bar, gauges, stack health table - stack-management: updated for UP/DN indicators, rollback button, split actions - editor: rewritten for two-column layout, inline stats, embedded terminal - resources: updated Quick Clean docs, added network topology and inspect - app-store: updated categories, deploy sheet details, permission gate, settings - openapi.yaml: fixed YAML parsing error on line 1831 Screenshots refreshed: 14 images across 6 feature areas. * docs: review and update observability, console, multi-node, and compatibility pages - Global Observability: fix log format fields, add download button docs, split display limits into memory buffer vs rendered rows, correct settings labels - Host Console: remove internal implementation details per security docs policy, add stack directory behavior, expand header bar docs, remove unverified scrollback claim - Multi-Node: add Compose Directory field, document connection test details panel, fix edit/delete node behavior, simplify token security section, remove internal details - Node Compatibility: add missing self-update capability, remove internal endpoint paths and cache TTL, move from Features to Reference group in navigation - Refresh all screenshots for the redesigned UI (7 images) * docs: review and refresh fleet, remote updates, labels, alerts, routing, and webhooks pages - Fleet View: added node updates modal, container detail, version/update/critical badges, Tags filter - Remote Updates: removed internal details, added capability cross-link, fast polling - Stack Labels: three creation methods, two assignment methods, 10 colors, bulk actions screenshot - Alerts & Notifications: fixed metric labels, added notification popover detail, status banner - Notification Routing: HTTPS requirement, rule card layout, channel terminology fix - Webhooks: corrected license tier to Admiral, matched action labels to UI, removed internal security details, added local-only note - Troubleshooting: centralized entries from remote-updates, stack-labels, notification-routing - Refreshed all screenshots at 1920x1080, removed 11 orphaned images * docs: review and refresh RBAC, user management, and atomic deployments pages - RBAC: added missing Auditor role (5th role), updated permission matrix, fixed license tier references, documented username/password validation rules, self-deletion protection - Atomic Deployments: added "Which operations are protected" section covering webhooks/schedules/app store, removed internal backup path, fixed license tier to Skipper/Admiral - Screenshots: cropped to dialog element per updated strategic cropping guideline, removed 2 orphaned images * docs: review and refresh fleet-wide backups and audit log pages Update fleet-backups page to reflect current inline create form, add scheduled snapshots section, document the detail view and restore dialog, expand RBAC table to all five roles. Update audit log page to document expanded row detail fields, pagination, refresh button, and data retention screenshot. Replace all screenshots with fresh captures at 1920x720. * docs: review and refresh API tokens and private registries pages - API Tokens: clarify Full Admin scope, add Managing tokens section with card details, document revocation confirmation dialog, add usage tracking to security model, refresh screenshot - Private Registries: add Managing registries section with card details and action buttons, document edit behavior, fix URL auto-fill description, remove encryption algorithm name per security policy, fix grammar, refresh both screenshots * docs: review and refresh auto-update policies, scheduled operations, and SSO pages - Auto-Update Policies: document all 8 table columns, expand action buttons, add "All Stacks" wildcard option, fix field labels, add CSV export and pagination details, refresh screenshots - Scheduled Operations: fix System Prune target description, add Task List table columns, restructure create dialog fields with action-specific annotations, rewrite execution history with column table, refresh screenshots - SSO: remove encryption algorithm name per security policy, add LDAP and OIDC configuration field tables, document provider card controls (Save, Test Connection, Remove, Active badge), refresh screenshots - Move SSO troubleshooting entries to centralized troubleshooting page * docs: review and refresh licensing & billing page Update upgrade card feature lists to match actual tier gating (Skipper: fleet view, webhooks, labels, atomic deployments, backups, auto-update policies; Admiral: scoped RBAC, SSO, audit log, host console, API tokens, private registries, scheduled operations). Add flex layout to align upgrade card buttons at the bottom. Replace stale screenshot with fresh community and active license captures. Add feature breakdown subsection and profile menu billing shortcut to docs. * docs: review and refresh settings reference and security advisories pages Settings Reference: add 5 missing sections (SSO, API Tokens, Registries, Labels, Routing), expand Users from 2 to 5 roles, fix System Limits and Developer field labels to match UI, restructure Developer into Streaming and Data Retention sub-tables, update App Store and Support sections, refresh overview screenshot. Security Advisories: restructure into versioned sections (v0.25.x hardening and v0.19-v0.24 CVE remediation), expand from 3 bullet points to 10 specific improvements, fix GitHub URL from SaelixCode to AnsoCode, redact internal details per security docs policy. Remove "Sencho Pro" product name from all three pages, replaced with tier names (Community, Skipper, Admiral). * docs: review and refresh troubleshooting page, remove architecture and development guides - Rewrote forgotten password section to remove exposed SQL and table names - Updated all Settings navigation paths to Profile > Settings > X - Fixed network topology from "tab" to "view mode", added Pro license note - Updated Prune Networks to current "Prune Dead Networks" label - Corrected update check cooldown from vague to 2 minutes - Consolidated two network creation error sections into one - Removed hardcoded version reference (v0.34.0) - Replaced em dashes throughout - Deleted architecture.mdx (exposes internal implementation details) - Deleted development.mdx (contributor guide belongs in repo, not public docs) - Removed both pages from docs.json navigation * docs: review and refresh operations pages (backup, upgrade, self-hosting, troubleshooting) Backup & Restore: - Added missing encryption.key to all backup/restore procedures - Added Warning about restoring db without matching encryption key - Added cross-reference to Fleet-Wide Backups for paid tiers - Removed false claim about no built-in backup scheduler - Updated cron example to include encryption key copy Upgrading Sencho: - Removed internal migration details (table names, column specs, encryption algorithm) - Replaced with high-level migration summary per security docs policy - Added encryption.key to pre-upgrade backup command - Updated version pinning example from 0.25.3 to 0.38.0 - Added Remote Updates cross-reference for Skipper/Admiral users Self-Hosting Best Practices: - Removed JWT_SECRET from env var table (auto-generated, not an env var) - Removed PORT from env var table (hardcoded to 3000, not configurable) - Added API_RATE_LIMIT to env var table (actually exists in code) - Fixed listen port description from "configurable" to "fixed" - Updated resource recommendations based on measured footprint audit - Removed su-exec reference (internal implementation detail) - Upgraded data directory Note to Warning with file names Troubleshooting: - Fixed "Pro features" heading to "Paid features" with correct tier names
134 lines
5.7 KiB
Plaintext
134 lines
5.7 KiB
Plaintext
---
|
|
title: Private Registries
|
|
description: Store credentials for private Docker registries so Sencho can automatically authenticate during deploy, pull, and image update checks.
|
|
---
|
|
|
|
<Note>
|
|
Private Registry Management requires a Sencho **Admiral** license. Skipper and Community Edition do not include this feature.
|
|
</Note>
|
|
|
|
Sencho can store credentials for your private Docker registries and inject them automatically whenever it runs `docker compose pull` or `docker compose up`. This means your stacks can reference private images without needing to manually `docker login` on the host.
|
|
|
|
## Supported registry types
|
|
|
|
| Type | Description | Credentials |
|
|
|------|-------------|-------------|
|
|
| **Docker Hub** | Private Docker Hub organizations and repositories | Username + access token |
|
|
| **GHCR** | GitHub Container Registry (`ghcr.io`) | GitHub username + personal access token (PAT) |
|
|
| **AWS ECR** | Amazon Elastic Container Registry | AWS Access Key ID + Secret Access Key |
|
|
| **Custom** | Any self-hosted Docker V2 registry | Username + password or token |
|
|
|
|
## Adding a registry
|
|
|
|
1. Open **Settings Hub** and navigate to the **Registries** tab (visible to Admiral admins only).
|
|
2. Click **Add Registry**.
|
|
3. Select the registry type. When you switch types, the URL field auto-fills with the standard endpoint for Docker Hub and GHCR.
|
|
4. Enter a descriptive name, the registry URL, and your credentials.
|
|
5. For **ECR** registries, also provide the AWS region (e.g., `us-east-1`).
|
|
6. Click **Add**.
|
|
|
|
<Frame>
|
|
<img src="/images/private-registries/registries-with-entry.png" alt="Private Registries management view in Settings Hub showing a configured Docker Hub registry" />
|
|
</Frame>
|
|
|
|
<Frame>
|
|
<img src="/images/private-registries/registries-add-form.png" alt="Add Registry form with type selector, credentials, and URL fields" />
|
|
</Frame>
|
|
|
|
## Managing registries
|
|
|
|
Each configured registry appears as a card showing:
|
|
|
|
- **Name** and **type badge** (e.g., Docker Hub, GHCR, AWS ECR, Custom)
|
|
- **Registry URL** (monospaced)
|
|
- **Username**
|
|
- **Secret status** (whether a secret is stored)
|
|
- **AWS Region**, if the registry is an ECR type
|
|
- **Created date**
|
|
|
|
Each card has three action buttons:
|
|
|
|
- **Test connection** (checkmark icon) to verify credentials
|
|
- **Edit** (pencil icon) to modify the registry name, URL, credentials, or type
|
|
- **Delete** (trash icon) to remove the registry after confirmation
|
|
|
|
When editing a registry, you can leave the secret field blank to keep the existing stored secret. Only fill it in if you want to replace it.
|
|
|
|
### Testing connectivity
|
|
|
|
Click the checkmark icon on any registry card to test the connection. Sencho authenticates against the registry's `/v2/` endpoint and reports success or failure.
|
|
|
|
For ECR registries, the test verifies that the AWS credentials can successfully obtain an authorization token.
|
|
|
|
## How credentials are applied
|
|
|
|
### Deploy and pull operations
|
|
|
|
When you deploy or update a stack, Sencho:
|
|
|
|
1. Resolves credentials for all configured registries.
|
|
2. For ECR registries, fetches a fresh authorization token from AWS (ECR tokens are short-lived, lasting 12 hours).
|
|
3. Writes a temporary Docker config file with all registry auth entries.
|
|
4. Sets the `DOCKER_CONFIG` environment variable so `docker compose` uses the temporary config.
|
|
5. Runs the compose operation (pull and/or up).
|
|
6. Cleans up the temporary config file immediately after.
|
|
|
|
This approach ensures credentials are never persisted on disk beyond the duration of the operation.
|
|
|
|
### Image update checks
|
|
|
|
Sencho's background image update checker also uses stored registry credentials. When checking for newer image versions, it passes your credentials to the registry's authentication endpoint so it can compare local and remote digests for private images.
|
|
|
|
## ECR setup
|
|
|
|
AWS ECR uses short-lived authentication tokens (valid for 12 hours) derived from your IAM credentials. Sencho handles this automatically:
|
|
|
|
1. Store your **AWS Access Key ID** and **Secret Access Key** as the username and secret.
|
|
2. Specify the **AWS Region** where your ECR registry lives.
|
|
3. On every deploy or pull, Sencho calls the AWS `GetAuthorizationToken` API to obtain a fresh token.
|
|
|
|
<Warning>
|
|
Use an IAM user or role with only the `ecr:GetAuthorizationToken` and `ecr:BatchGetImage` permissions. Avoid using root account credentials.
|
|
</Warning>
|
|
|
|
### IAM policy example
|
|
|
|
```json
|
|
{
|
|
"Version": "2012-10-17",
|
|
"Statement": [
|
|
{
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"ecr:GetAuthorizationToken",
|
|
"ecr:BatchGetImage",
|
|
"ecr:GetDownloadUrlForLayer",
|
|
"ecr:BatchCheckLayerAvailability"
|
|
],
|
|
"Resource": "*"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
## Registry URL reference
|
|
|
|
| Registry | URL to use |
|
|
|----------|-----------|
|
|
| Docker Hub | `https://index.docker.io/v1/` |
|
|
| GHCR | `ghcr.io` |
|
|
| AWS ECR | `{account_id}.dkr.ecr.{region}.amazonaws.com` |
|
|
| Self-hosted | Your registry hostname, e.g. `registry.example.com` |
|
|
|
|
## Security
|
|
|
|
- **Encrypted storage** - Registry secrets are encrypted at rest, using the same encryption layer as remote node tokens and SSO secrets.
|
|
- **No persistent Docker login** - Credentials are written to a temporary file for the duration of each operation and immediately deleted afterward.
|
|
- **Secrets never exposed** - The API never returns decrypted secrets. The UI shows only whether a secret is stored.
|
|
- **Audit trail** - Registry create, update, and delete operations are recorded in the [Audit Log](/features/audit-log).
|
|
- **Admin-only access** - Only admin users with an Admiral license can manage registry credentials.
|
|
|
|
## Multi-node behavior
|
|
|
|
Registry credentials are stored per Sencho instance. When managing remote nodes, each node runs its own Sencho instance with its own registry credentials. Configure private registries on each node that needs access to private images.
|