Lineaje

API endpoints for Lineaje image patching operations. These endpoints allow users to patch OS vulnerabilities in container images and check the status of patching operations.

Patch OS Vulnerabilities in Container Image

post

Initiates an OS vulnerability patching operation for a specified container image. This endpoint leverages Copacetic to patch known vulnerabilities in container images without requiring a full image rebuild.

Use Cases

  • Security Remediation: Automatically patch vulnerable OS packages in container images.

  • Compliance: Ensure container images meet security compliance requirements by patching known CVEs.

  • CI/CD Integration: Integrate image patching into your deployment pipeline for continuous security.


Process Details

  1. The request is validated and forwarded to the patching service.

  2. A unique UUID is returned to track the patching operation.

  3. Use the status endpoint with the UUID to monitor progress.


Important Notes!

  • Asynchronous Operation: Patching is performed asynchronously. Use the status endpoint to check progress.

  • Image Registry: The image must be accessible from the configured registry.

  • Supported Formats: Only OCI-compliant container images are supported.

Authorizations
AuthorizationstringRequired

API authentication using Bearer tokens. Include your API token in the Authorization header: Authorization: Bearer <your-api-token>

Tokens can be obtained from the Opsera platform's API token management interface.

Body
imagestringRequired

The full container image reference including registry, repository, and tag.

Example: docker.io/library/nginx:1.21.0
registrystringOptional

The container registry URL (optional if included in image reference).

Example: docker.io
tagstringOptional

The target tag for the patched image.

Example: 1.21.0-patched
scannerTypestring · enumOptional

The vulnerability scanner type to use.

Default: trivyExample: trivyPossible values:
Responses
chevron-right
200

Patching operation initiated successfully

application/json
statusstringOptional

Status of the operation

Example: success
messagestringOptional

Descriptive message about the operation

Example: Image patching initiated successfully
uuidstringOptional

Unique identifier to track the patching operation

Example: 550e8400-e29b-41d4-a716-446655440000
post
/api/v2/lineaje/image/patch

Get Image Patching Operation Status

get

Retrieves the current status of an image patching operation using the UUID returned from the initial patch request.

Use Cases

  • Progress Monitoring: Track the progress of an ongoing patching operation.

  • Completion Verification: Confirm when patching is complete before deploying the patched image.

  • Error Handling: Retrieve error details if the patching operation failed.


Status Values

  • pending: The patching operation is queued and waiting to start.

  • in_progress: The patching operation is currently running.

  • completed: The patching operation completed successfully.

  • failed: The patching operation encountered an error.


Important Notes!

  • Polling: For long-running operations, poll this endpoint periodically to check status.

  • UUID Expiry: Status information may be retained for a limited time after completion.

Authorizations
AuthorizationstringRequired

API authentication using Bearer tokens. Include your API token in the Authorization header: Authorization: Bearer <your-api-token>

Tokens can be obtained from the Opsera platform's API token management interface.

Path parameters
uuidstring · uuidRequired

The unique identifier returned from the image patch initiation request.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
200

Successfully retrieved patching operation status

application/json
statusstringOptional

Overall response status

Example: success
patchStatusstring · enumOptional

Current status of the patching operation

Example: completedPossible values:
messagestringOptional

Descriptive message about the current status

Example: Image patching completed successfully
patchedImagestringOptional

The reference to the patched image (available when completed)

Example: docker.io/library/nginx:1.21.0-patched
progressinteger · max: 100Optional

Percentage of completion (0-100)

Example: 100
startedAtstring · date-timeOptional

Timestamp when the patching operation started

Example: 2026-01-19T10:30:00Z
completedAtstring · date-timeOptional

Timestamp when the patching operation completed (if finished)

Example: 2026-01-19T10:35:00Z
get
/api/v2/lineaje/image/patch/status/{uuid}

Last updated