Skip to content

[ER] Allow Elastic Package Registry to start without any installed packages #1351

Description

@fred-maussion

Description

Currently, the Elastic Package Registry fails to start if no package is present in the configured directory. This behavior makes it difficult to deploy the registry in scenarios where packages are not yet available at installation time, a common case in lightweight installations or automated provisioning pipelines.

Use case

In environments where we build minimal Docker images or binaries for air-gapped or CI/CD-driven deployments, the registry should be allowed to start even if no packages are installed yet. This enables customers to bootstrap the infrastructure before loading packages through custom automation or manual uploads.

Expected behavior

The service should start successfully and return an empty package list (or an appropriate response), rather than fail or exit. Once packages are added, the registry should dynamically reflect the changes without requiring a restart.

Benefits

  • Enables light installations and infrastructure-as-code deployments
  • Improves developer experience and early-stage automation flows
  • Reduces coupling between package availability and service lifecycle

Proposed solution

  • Allow package-registry to start with zero packages present
  • Log a warning such as: "No packages found at startup. The registry is running but no content is available yet."

A new flag would be added, that when used, would start the local indexer with a watcher for the configured directories, that would update the index when packages are added or removed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions