Introducing a new way to review your PRs.

Read the announcement

getarcaneapp / arcane

Modern Docker Management, Designed for Everyone

View on GitHub

26 documents · Updated Oct 19, 2026

docs / registry-and-image-update-workflows

Registry and image update workflows

The registry, image, and image-update services form the backend path from an image reference to trusted image metadata and workload update state. They resolve registry access, inspect remote content, join it with local Docker state, and preserve the result for image views and managed workload actions. The Image and registry management page gives the wider product view. Workload replacement is part of the Container and environment lifecycle, while image attestations and vulnerability data connect to Security and vulnerability management.

System boundary

The backend separates registry access, local image management, update checks, application image assets, and security patching. These areas share image terms but produce different results.

ConcernPurposeDownstream effect
Container registriesStore enabled registry endpoints and access dataAllow pulls, digest checks, repository browsing, and tag inspection
Docker imagesDescribe and change images in an environmentSupply local metadata, usage data, pulls, tags, builds, exports, attestations, and removal
Image updatesCompare local image state with registry stateProduce persisted update status for images, projects, and managed containers
Image patchingCreate a tagged image with updated OS packages or scan-selected fixesProvide a patched image and patch status for security workflows
Application imagesServe Arcane branding and profile assetsSupport the web app, email, favicon, and PWA surfaces only

Registry access supplies remote metadata and credentials. The image service supplies local state and image actions. The image-update service compares the two and records a result that the image and project views can reuse. A later workload action consumes that result. Image patching follows a separate security path because it creates a new image instead of replacing a workload in place.

Service relationships

The backend/internal/registry package owns registry records, access, digest inspection, repository browsing, tag discovery, and pull usage. The backend/internal/image package owns Docker image actions and joins local Docker data with stored update and security state. The backend/internal/imageupdate package owns comparison results and their persistence. The image patch service under backend/internal/image/children/patch owns security patch runs and their records.

These services use one dependency graph. Registry records connect database state and Docker access to image pulls and remote checks. The image service passes registry authentication into pulls and attestation reads. The image-update service uses the same registry boundary for digest and tag checks, then exposes results to workload services through shared types. The image module registers the image, attestation, and patch routes as one environment-facing image surface.

References: backend/…/module.go• L14-50 backend/…/module.go• L23-73 backend/…/service.go• L68-115 backend/…/service.go• L68-169

Registry access

The registry service is the source of configured registry identity, credentials, and remote image information. It supports generic registries and Amazon ECR, then presents both through common pull and inspection contracts.

Registry records

backend/…/model.go stores a registry endpoint with its enabled state, transport mode, type, and repository name hints. Generic registry secrets and ECR secrets are kept as protected values. The shared containerregistry.ContainerRegistry response exposes the registry details needed by clients without exposing stored secret values.

Registry type is normalized to generic or ecr. Generic access uses a user name and token. ECR access uses AWS data to obtain a temporary registry token. ECR records must point to an AWS private ECR endpoint and use TLS verification. Changing the registry host while keeping old credentials is rejected when the credentials could silently be reused for a different target.

References: backend/…/model.go• L9-30 backend/…/service.go• L231-295 backend/…/service.go• L297-405 types/…/container_registry.go• L5-67

Registry synchronization

Registry changes made through the management API trigger a detached synchronization to remote environments. An explicit sync replaces the local registry set with the supplied records, so create, update, and delete behavior remains consistent between the manager and its agents. Empty credential values from a sync can clear the stored credential instead of silently retaining an old secret.

References: backend/…/handler.go• L93-160 backend/…/handler.go• L195-214 backend/…/service.go• L1019-1104

Registry authentication

Image pulls, digest checks, tag listings, and registry browsing match an image reference to a normalized registry host. A request can supply external credentials for one operation. When it does not, the service uses enabled stored credentials. ECR refreshes its temporary token behind the same common credential contract.

Credential choice is visible in digest results and update records through the authentication method, registry, and user name fields. A rejected credential can fall back to anonymous access for registries where that is safe. Rate-limit errors do not trigger an anonymous retry because that would spend the same shared registry quota.

References: backend/…/service.go• L439-499 backend/…/service.go• L899-970 backend/…/service.go• L1147-1175 backend/…/service.go• L173-199 types/…/container_registry.go• L227-257

Digest inspection

Digest inspection answers whether a named tag still points to the same content. The service first asks the Docker daemon and can use a direct registry manifest lookup when the daemon cannot perform the distribution inspection. The result records the digest and the authentication path used to obtain it.

The service bounds and retries remote work. It caches successful digest results for a short period and revalidates them in the background. A partial revalidation keeps successful entries and retries failed references later. Rate limits are retried within the check boundary and remain distinguishable from ordinary lookup errors.

References: backend/…/service.go• L131-159 backend/…/service.go• L744-866 backend/…/service.go• L869-897 types/…/container_registry.go• L249-257

Repository browsing

Registry browsing lets an operator move from a configured registry to its repositories and then to the tags in one repository. Repository results are paginated and searchable. A registry URL may include a repository namespace, and browsing keeps requests inside that namespace.

Tag results include the manifest digest, media type, compressed size, creation time when available, and the platform images behind a multi-platform tag. A manifest detail failure stays on that tag instead of removing the rest of the page. Deleting a tag removes the manifest identified by its digest, so every tag that shares that manifest is removed as well.

The browse boundary uses the registry's stored authentication and transport settings. It also applies a registry tag timeout and maps remote authentication, missing resources, unsupported operations, and unavailable services into API errors.

References: backend/…/service.go• L59-131 backend/…/service.go• L134-213 backend/…/service.go• L216-268 backend/…/module.go• L42-50 types/…/browse.go• L5-85

Registry usage

Successful image pulls increment Arcane's observed pull count for the normalized registry host. Docker Hub usage can also include the current provider rate limit, remaining capacity, authentication method, and probe status. The rate-limit result is cached so usage views do not create a probe for every request.

References: backend/…/service.go• L502-518 backend/…/service.go• L520-651 backend/…/handler.go• L78-90 types/…/container_registry.go• L69-150

Docker image metadata

The image service presents local Docker state as application data and applies image actions in an environment. Its image list combines local identity with workload usage, stored update information, vulnerability state, and exact digest-pinned references.

Image summaries

An image summary uses the local image ID as its stable key. It includes repository tags, repository digests, size, labels, and the projects or containers that use the image. It also reports exact digest-pinned references used by containers. Stored update state is attached as image.UpdateInfo, while vulnerability state remains a separate scan summary.

The service maps update records according to each workload's policy. Digest-policy containers use the image-level record for their runtime image ID. Tag-policy containers use a container-scoped record with an exact policy key. A workload that opts out of update checks is omitted from normal update metadata. A workload excluded only from automatic installation still receives check results.

Project views can use the same records by image reference. Reference lookup accepts equivalent repository spellings and chooses the newest matching result. This keeps image, project, and workload status aligned without a second comparison store. The image list therefore acts as a join of Docker state and durable service state rather than as a copy of only one source.

References: backend/…/service.go• L778-937 backend/…/service.go• L939-1006 backend/…/service.go• L1150-1175 backend/…/service.go• L1219-1277 types/…/image.go• L28-182

Image actions

The image service owns direct image actions such as pull, tag, build, load, export, remove, and prune. The HTTP surface exposes these actions with image lists, detail, history, usage, build history, and attestations. Long-running pull and build actions report progress through activity records.

A pull uses request credentials before stored registry credentials. If a credentialed pull is rejected as unauthorized, it can retry without credentials. A successful pull records registry usage and reconciles the pulled reference with stored update state. This marks the new local image current without changing records for older local image identities or for workloads still running them.

Removing or pruning an image also removes update and vulnerability records tied to deleted local identities. Orphan cleanup removes image-level records that no longer map to local images and container-scoped records whose containers no longer exist. This prevents a later image view from showing state for content that the Docker daemon no longer has.

References: backend/…/handler.go• L142-176 backend/…/handler.go• L295-365 backend/…/service.go• L297-363 backend/…/service.go• L365-438 backend/…/service.go• L465-496 backend/…/service.go• L732-775 backend/…/module.go• L63-73 backend/…/module.go• L75-243 types/…/image.go• L208-218

Image attestations

Image attestations expose in-toto statements attached to a local image or a registry reference. The service resolves a usable repository digest or tag, reads the image manifest, and gathers attestations from both registry referrers and inline index entries.

The response identifies the image reference, subject digest, platform, predicate type, statement type, artifact type, size, and subject data. A request can select one platform or predicate type and can request the original statement body. Multi-platform images are handled as platform-specific subjects, and repeated attestations are returned once.

Registry credentials are reused for private attestation reads. A local image with no usable registry reference returns an empty result or a clear error instead of pretending that a local image ID is a registry address. Compressed gzip and zstd statement layers are read as their original JSON form.

References: backend/…/service.go• L44-79 backend/…/service.go• L81-193 backend/…/service.go• L196-272 backend/…/service.go• L274-327 backend/…/service.go• L330-433 backend/…/service.go• L436-479 types/…/image.go• L184-206

Application image assets

Application images are static Arcane assets such as logos, email marks, favicons, profile images, and PWA icons. The backend/internal/appimages package serves these assets without registry lookup, Docker inspection, or update persistence.

Logo responses can reflect the configured accent color and can use animated variants. The public /api/app-images/* routes keep branding available to the web app and notification messages while remaining outside the container image lifecycle.

References: backend/…/service.go• L16-110 backend/…/handler.go• L49-170 backend/…/notification.go• L1361

Image update detection

The image-update service compares a local image snapshot with the digest currently reported by its registry. It also checks the tag policy of matching containers when those policies follow mutable tags. The durable result becomes the shared fact used by image views, project views, notifications, and later workload actions.

Update check states

An update result describes both the image comparison and the workload context around it. The main states are:

StateMeaningDownstream effect
digestThe reference is compared by content digestA changed digest can produce an update action
tagA container policy is compared with mutable registry tagsThe matching container can receive a tag-policy update
localThe image is a local build or a known local image referenceRegistry comparison is skipped
not_pulledThe registry resolved the reference but no local image existsNo local content is available to replace
ErrorThe check could not completeThe error remains visible and does not claim an update

Digest-pinned references are fixed content and produce no update. The service still records the pinned digest as current and latest so an earlier error does not remain stale. For tag references, the service compares the remote index digest with every local digest associated with the image. It then adds matching container policy results without losing the separate image-level result. When a container result is more actionable than an image result, the combined response can expose that container result at the top level while retaining the image-only snapshot.

Compose build references, Arcane local references, and completed patch outputs are local content. A missing image for one of these references remains local instead of becoming a remote lookup error. A registry reference that resolves while no local image exists becomes not_pulled, not an available update.

References: backend/…/service.go• L256-383 backend/…/service.go• L385-488 backend/…/service.go• L635-671 backend/…/service.go• L1037-1141 backend/…/service.go• L267-331 backend/…/model.go• L46-89 types/…/image_update.go• L9-86

Scan inputs

Single checks accept an image reference or a local image ID. Batch checks normalize equivalent references so one remote lookup can serve aliases. They resolve credentials once and bound concurrent work for each registry. Successful repository tag listings and digest lookups are shared within the scan, while failed lookups are not stored as successful results.

The all-images check gathers local image references and references found on containers when an image has no remaining tag. Update-check opt-out is evaluated by image identity and reference. An image remains eligible when at least one consumer is eligible. It is excluded only when all matching consumers opt out. Automatic-install exclusions do not stop monitoring.

Compose build references, Arcane local references, and completed patch outputs are treated as local content. This prevents missing local build images from becoming false remote checks. The batch scan has bounded Docker and registry work, a scan-wide deadline, controlled concurrency, and a terminal activity result. Checks that finish before the deadline remain stored.

References: backend/…/service.go• L541-633 backend/…/service.go• L1014-1035 backend/…/service.go• L1255-1314 backend/…/service.go• L1330-1431 backend/…/service_test.go• L408-482 backend/…/service_test.go• L980-1145

Container tag updates

Container tag updates compare each eligible workload's current image policy with the mutable registry tag. The updater engine evaluates the policy, while the image-update service supplies registry data and stores the result under the container's identity and policy key.

One shared image can therefore have different target versions for different containers. A container that changes from tag tracking to digest tracking loses its old container-scoped tag record. A container excluded from automatic installation is still checked. Only the explicit update-check opt-out removes it from monitoring.

Tag checks run concurrently within a scan. A per-registry limiter protects remote services, and successful tag and digest lookups are shared across matching containers. Failed lookups are not cached, so a transient registry fault can be tried again. Each completed result is saved before the scan ends, so a slow or canceled sibling does not erase a result that already finished. The combined response keeps the original image result separate from policy-specific container results.

References: backend/…/service.go• L40-83 backend/…/service.go• L85-181 backend/…/service.go• L184-265 backend/…/service.go• L267-331 backend/…/service.go• L341-412

Stored update metadata

Each completed check stores the reference parts, current and latest content, update type, check time, error state, authentication path, and notification state. It also records when a pending target was first seen. Image-level records use the local image ID when available. Container tag records use a container:: identity and the policy key. When the local image is absent, a ref:: identity keeps the result available to project and reference views.

The first-seen time stays stable while the same target remains pending, including across a failed recheck. A changed target starts a new pending period. After a successful pull, the pulled image is marked current and matching ref:: records are cleared. Records keyed by old image IDs are kept because another workload may still run that old image. Project preview records are refreshed only when the pulled digest satisfies the preview; tag-only or newer-digest previews remain pending.

When a container changes its update policy, the old container-scoped record is removed before the result for the new policy key is saved. Image removal, pruning, and orphan cleanup remove records that no longer map to live local images or containers.

A registry rate limit does not replace a prior good result with an error. Notification state resets when the update state or available digest changes. A notification stays pending when no provider delivers it. Delivery by at least one provider marks it notified, even when another provider fails. Notification flushing uses a bounded context that can outlive the completed activity request.

References: backend/…/model.go• L12-89 backend/…/service.go• L772-853 backend/…/service.go• L855-958 backend/…/service.go• L976-1012 backend/…/service.go• L1561-1657 backend/…/service_test.go• L1302-1452 backend/…/service_test.go• L1490-1737

Image patching

Image patching creates a new image reference with updated operating-system packages. It connects local image identity, registry access, vulnerability reports, activity progress, and a durable patch record without changing the original image or its workload directly.

Patch targets

Patch targets come from completed vulnerability scans that report fixable issues or from images with prior patch history. The target list excludes image IDs, untagged images, and completed patch outputs. It folds patch output history and the follow-up scan into the original image's row.

The target contract carries the image reference, fixable and total counts, scan time, local-only state, and the latest patch result. This gives the security surface enough context to show whether an image can be patched and whether a previous patch reduced its findings. Patch target discovery and scheduled targets require vulnerability management and the Docker image store needed by the patch tool.

References: backend/…/service.go• L632-650 backend/…/service.go• L653-686 backend/…/service.go• L689-783 backend/…/service.go• L786-851 backend/…/service.go• L854-910 backend/…/service_test.go• L75-117 backend/…/service_test.go• L133-188 types/…/imagepatch.go• L40-62

Patch execution

The patch service accepts either a general update-all run or a report-driven run. A report-driven run uses a stored vulnerability report for the selected image. It rejects a report for a different image and records the source digest before it starts.

The service queues the run in the background and serializes BuildKit patch work. It resolves the output tag before execution, makes registry credentials available through the deployment-owned Docker config, and records status, duration, package count, errors, and activity progress. After a successful run it checks the expected patched reference and can start a verification scan.

Patch modePackage selectionFeature rule
update-allAll outdated operating-system packagesAvailable for standalone patching when the image can be patched
reportPackages selected by a stored vulnerability reportRequires vulnerability management both when queued and before execution

Patch target listing and scheduled patching also require vulnerability management. If that feature is disabled while a report-driven run waits for the patch slot, the run fails instead of starting with stale security input. Verification scans are skipped when the feature is disabled. An interrupted run is recorded as failed and is not silently replayed because the patch tool may have changed the output tag before interruption.

References: backend/…/service.go• L124-148 backend/…/service.go• L150-289 backend/…/service.go• L291-447 backend/…/service.go• L505-565 backend/…/service.go• L896-910 backend/…/service_test.go• L133-216 backend/…/service_test.go• L313-337 backend/…/service.go• L118-220 types/…/imagepatch.go• L6-38

Update scheduling and actions

The image update watcher starts checks from time-based polling and optional Docker image events. The updater then consumes positive update records, pulls new content, and routes the change to the managed container or project lifecycle.

Scan scheduling

The image update watcher gates the first scan on project image metadata backfill. It coalesces image events with a short debounce and keeps scheduled polling active even if the event subscription closes. The polling setting controls checks, while a separate setting controls whether image events can trigger checks.

The auto-update job is a separate schedule. It runs only when automatic updates and polling are enabled. An admission gate prevents overlapping auto-update runs, so one run owns the pending update set until it finishes or fails.

References: backend/…/image_update_watcher.go• L76-207 backend/…/image_update_watcher.go• L224-317 backend/…/image_update_watcher.go• L343-496 backend/…/auto_update_job.go• L23-92

Update action flow

The following flow shows how registry state becomes an image or container update result, then becomes a workload change and returns to shared status and history.

flowchart LR
    A[Registry record] --> B[Credential and digest lookup]
    C[Local image and Compose metadata] --> D[Image update check]
    B --> D
    D --> T[Container tag-policy checks]
    D --> E[Persist update result]
    T --> E
    E --> F[Image and project views]
    E --> G[Updater pending records]
    G --> H[Pull new image]
    H --> I{Managed workload}
    I -->|Container| J[Apply container update strategy]
    I -->|Compose project| K[Pull selected service images and redeploy services]
    J --> L[Record result and clear handled state]
    K --> L
    L --> F

The updater facade adapts stored image update records to the updater engine. A scoped request resolves image or project IDs to container IDs when needed. An unscoped run applies all pending records through the same engine contract.

References: backend/…/service.go• L48-135 backend/…/service.go• L167-296 backend/…/service.go• L298-437 types/…/updater.go• L20-142

Managed workload delivery

For a single container, the updater pulls the latest image and lets the update strategy replace or restart the container. For a Compose project, the project service resolves registry credentials, pulls the selected service images, stops those services, and brings them up again. The project status is restored to running only after the service update completes.

The same boundary supports manual and scheduled actions. HTTP handlers expose checks, update runs, status, and history. Activity records and event records report progress and per-resource outcomes without changing the image metadata contract.

References: backend/…/handler.go• L60-105 backend/…/service.go• L403-437 backend/…/service.go• L570-598 backend/…/project_lifecycle.go• L115-173 types/…/updater.go• L34-142

Project image metadata

Project update status is derived from the unique image references found in Compose service definitions or live Compose containers. The project service looks up persisted image results by reference first and by image ID when a reference lookup has no result. It then reports the total images, checked images, updated references, not-pulled references, and check errors.

This relationship matters for discovered Compose projects that Arcane does not track as project rows. Their live containers still use the same image update records, so the project list can show update status without creating a second update store.

References: backend/…/project_details.go• L343-489 backend/…/project_listing.go• L325-536

Shared contracts

Shared types define the hand-off between registry access, local image state, update checks, project summaries, security patching, and workload actions. They carry facts across HTTP handlers, scheduled jobs, and service boundaries without making one result serve every purpose.

Metadata contracts

The main metadata types have distinct roles:

TypeRole
containerregistry.CredentialRequest-scoped registry access for pulls and checks
containerregistry.DigestResultRemote digest plus the authentication path used to obtain it
containerregistry.RepositoryTagRegistry tag details, manifest identity, and platform metadata
image.SummaryLocal image identity, tags, usage, pinned references, and attached state
image.UpdateInfoPersisted check result attached to an image or image reference
image.AttestationListAttestation metadata for an image subject and platform
project.UpdateInfoAggregate update state for project image references
imageupdate.ResponseOne image result with optional policy-specific container results
imageupdate.BatchResponseResults keyed by the requested image reference
imagepatch.PatchTargetScanned image that can be considered for security patching
imagepatch.PatchRecordDurable state and outcome of one patch run

An imageupdate.Response can preserve the image-scoped result in ImageUpdate and attach policy-specific results in ContainerUpdates. This keeps the registry fact, the image comparison, and the workload-specific action context distinct while allowing one check to reach several consumers.

Registry facts stay separate from workload facts. A digest result says what the registry returned. An update response says how that result compares with local content and container policy. An image summary adds usage, pinned-reference, vulnerability, and attestation context. A project summary groups update results without changing their meaning.

References: types/…/container_registry.go• L227-257 types/…/browse.go• L5-85 types/…/image.go• L28-206 types/…/project.go• L222-289 types/…/image_update.go• L9-86 types/…/imagepatch.go• L40-80 backend/…/model.go• L12-89

Action contracts

The updater types describe the action boundary rather than the image check. Options select the resource scope and dry-run behavior. Results report counts and per-resource outcomes. Each resource result can carry the old and new image references when workload content changes.

This contract lets the HTTP layer, scheduler, and workload services use one result shape. It keeps a failed pull or redeploy distinct from a check that found no update. Image patching uses separate options and records because it creates a new security image instead of replacing workload content.

References: types/…/updater.go• L20-142 backend/…/service.go• L984-1044 types/…/imagepatch.go• L25-80

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep registry host normalization aligned between stored registry URLs, Docker auth lookup, digest inspection, tag discovery, registry browsing, attestation reads, and patch-tool credentials.
  • Keep ECR endpoint validation aligned with registry type, TLS requirements, AWS credential rules, and the temporary-token path.
  • Keep remote registry synchronization aligned with manager-side create, update, and delete operations. A detached sync must not change the local API result.
  • Keep registry namespace prefixes enforced in repository listing, tag listing, and manifest deletion. A browse request must not escape the configured namespace.
  • Preserve the distinction between image-ID records, container-scoped container:: records, project records, and reference-scoped ref:: records when changing pull reconciliation or cleanup.
  • Keep container policy keys aligned with per-container lookup, policy changes, stale-record deletion, and image-level aggregation.
  • Keep request credentials and stored credentials compatible with pulls and both batch digest and tag checks. Do not turn rate-limit failures into anonymous retries.
  • Keep browse tag metadata aligned with multi-platform manifest handling, per-tag errors, pagination, namespace limits, and digest-based deletion.
  • Keep attestation reference resolution aligned with local image digests, private registry auth, platform filters, predicate filters, and compressed statement layers.
  • Update both per-image UpdateInfo mapping and project aggregation when changing update states or record lookup rules.
  • Treat Compose build references, Arcane local references, and completed patch references as local in single, batch, and all-image checks.
  • Preserve the rule that an image is excluded only when all matching workloads opt out. Keep container-only references and the post-filter scan limit aligned.
  • Keep successful per-scan registry memoization separate from failed lookups so a transient registry error can retry. Do not place manager-provided credentials in a shared cache.
  • Preserve scan deadlines, bounded concurrency, activity terminal states, and writes for checks that finish before cancellation.
  • Keep latest_seen_at aligned with auto-update delay rules. Preserve it across transient failures and reset it only when the pending target changes or no update remains.
  • Keep notification delivery tied to monitoring eligibility. Leave records pending when no provider delivers and mark them after at least one provider delivers.
  • Keep pull reconciliation narrow so an old image identity used by another workload does not become falsely current. Refresh only project previews satisfied by the pulled digest.
  • Keep patch output naming, patch-source identity, deployment-owned Docker auth, feature gates, containerd image-store requirements, interruption handling, and verification scans aligned when changing image patch flows.

Important failure modes

TriggerConsequenceGuard
An ECR registry URL is not an AWS private endpoint or allows insecure transportRegistry credentials can target an unintended host or use an unsafe connectionValidate the full ECR endpoint and require TLS verification before saving the record
A registry URL contains a namespace and a browse request names a repository outside itThe repository or tag operation is rejectedResolve and enforce the configured registry namespace before remote access
A registry tag points to a manifest that cannot be readThat tag reports its own error while the page remains visibleFetch details only for the requested page and retain the tag item on failure
A tag shares a digest with other registry tagsDeleting one tag removes every tag for that manifestTreat tag deletion as digest deletion and return the removed digest
Tag discovery receives a digest-pinned or image-ID-like referenceNo mutable tag lookup runsRequire a repository tag reference before listing tags
Stored registry credentials are rejected by a rate-limited registryAn anonymous retry can spend shared quota and worsen the failureRetry anonymously only for credential rejection, not for rate limits
A Docker distribution digest check is unavailable for a fallback-eligible reasonA valid registry digest may still be missedUse the direct manifest lookup fallback and preserve both errors when it fails
An image has no usable registry reference for attestation lookupThe backend cannot resolve registry attestations from a local IDReturn an empty result or explicit local-reference error rather than inventing a registry ref
A multi-platform image has an attestation for another platformThe response can show unrelated supply-chain dataResolve platform subjects before reading and filtering attestations
A local build or completed patch output is checked as a remote tagThe scan reports a false registry error or updateLoad local build and patch references before registry comparison
An image is used only by containers that opted out of update checksThe all-images scan skips itApply eligibility after matching image IDs and references, and keep an image with one eligible consumer
A container changes from tag tracking to digest trackingIts old container result can remain actionableDelete records whose policy no longer tracks tags
A batch scan waits on a stalled registry or workerThe activity can remain queued and block later workUse per-request limits, a scan-wide deadline, bounded workers, panic recovery, and one terminal finalizer
A registry returns a transient rate-limit errorA prior good update result can be replaced by a misleading errorPreserve the prior good record for rate-limit failures
A pending target is checked again after a transient failureThe auto-update delay can restart or the target can be acted on too earlyPreserve latest_seen_at while the target digest or version stays the same
A pull clears all matching update recordsA workload still running the old image can appear up to dateClear only matching ref:: records and save the pulled image under its new local identity
A project preview targets a different digest or mutable tagA pull can hide a still-pending project changeRefresh only digest previews satisfied by the pulled digest and keep tag or newer-digest previews
The pulled image is saved under a new local ID but reference reconciliation is skippedThe image or project view can keep showing a stale reference-scoped updateReconcile the pulled reference after a successful pull and mark the new image identity current
No notification provider delivers an updateThe record remains eligible for a later deliveryLeave notification_sent false when delivery count is zero
One notification provider delivers and another failsRepeated polls can duplicate delivery through the healthy providerMark the record notified after at least one provider delivers
A project update cannot pull or redeploy its selected servicesThe project remains on its prior deployment and the action failsKeep project status restoration and per-resource errors in the workload action boundary
An image patch is interrupted after the patch tool may have changed its tagA retry can patch or overwrite an uncertain result twiceRecord the interrupted run as failed and require a new explicit patch
A patch has no repository digest or the Docker daemon lacks the required image storeThe patch cannot fetch or export the source imageMark the target local-only and require the supported containerd image store before execution
Vulnerability management is disabled while a report patch waits for the patch slotThe run could use stale security inputRecheck the feature before execution and fail the queued report patch when it is disabled

Key files

FileWhy to read it
backend/…/module.goShows how registry records, Docker access, settings, and remote synchronization meet at the module boundary
backend/…/service.goShows the common registry credential, digest, cache, pull-usage, rate-limit, and sync boundary
backend/…/helpers.goShows the endpoint rules that protect ECR credential use
backend/…/handler.goShows the registry management API and detached remote synchronization trigger
backend/…/service.goShows repository browsing, platform-aware tag details, namespace limits, and digest-based tag deletion
backend/…/browse_handler.goShows the protected API surface for repositories, tags, and registry manifest deletion
types/…/container_registry.goDefines registry, credential, digest, pull-usage, and sync contracts
types/…/browse.goDefines repository, tag, platform, and deletion response data
backend/…/module.goShows the image service boundary and how image, attestation, and patch routes share dependencies
backend/…/handler.goShows the HTTP boundary for image metadata, lifecycle actions, streaming work, and uploads
backend/…/service.goShows how local Docker state, registry-authenticated pulls, update records, usage, patching, and cleanup meet
backend/…/service.goShows patch target selection, background patch runs, registry auth, interruption handling, and verification
backend/…/service.goShows how local or remote image references become platform-filtered attestation results
types/…/image.goDefines image summaries, update information, pinned references, attestations, and pull inputs
backend/…/service.goShows the check, local-image classification, persistence, notification, activity, pull reconciliation, and cleanup lifecycle
backend/…/service.goShows how container tag policies use registry data and become container-scoped results
backend/…/model.goDefines the durable update record, pending-target time, and public status mapping
backend/…/handler.goShows the single, batch, all-image, reference lookup, and summary API surface
types/…/image_update.goDefines single-check, batch-check, aggregate, and policy-scoped update contracts
backend/…/service_test.goShows guarantees for local references, digest and registry fallback, pull reconciliation, eligibility, deadlines, and notifications
backend/…/service_test.goShows guarantees for patch target filtering, feature gates, verification behavior, aggregation, and interrupted runs
backend/…/service_test.goShows registry namespace, credential, multi-platform tag, and digest-deletion behavior
backend/…/service_test.goShows credential precedence, rate-limit handling, fallback behavior, and registry validation
backend/…/service_test.goShows image action and update metadata behavior at the image service boundary
backend/…/image_update_watcher.goShows event-driven, scheduled, and backfill-gated scans
backend/…/service.goShows how pending image results become container or project actions
backend/…/project_lifecycle.goShows image pulls and selected-service redeploy for Compose workloads
backend/…/project_details.goShows how per-image results become project update summaries
types/…/updater.goDefines update scope, result, and per-resource action contracts
backend/…/handler.goShows the separate branding and PWA image surface