Skip to content

Qualify a resolved container before it reaches the daemon - #329

Merged
athNdev merged 1 commit into
mainfrom
feat/runtime-profile
Nov 4, 2026
Merged

athNdev merged 1 commit into
mainfrom
feat/runtime-profile

Conversation

@athNdev

@athNdev athNdev commented Nov 4, 2026

Copy link
Copy Markdown
Owner

DescribeRuntime inspects the resolved config and host config after defaults and operator overrides, so the qualification sees what the daemon will actually run.

Fatal (refuses creation, before any daemon mutation):

  • no /data mount, or /data mounted read-only
  • read-only root without the image's nsswitch skip
  • CapDrop ALL removing the root-then-drop bootstrap capabilities
  • a runtime uid that cannot own the world directory
  • host networking, or a host device mapping

Warnings (logged with a named code and remedy, never block): no-new-privileges replaced by an override, privileged mode, writable rootfs, a non-numeric user, a replaced image entrypoint, a missing/small/executable /tmp tmpfs.

StartServer and the recreate path now return failed-precondition with the reason instead of a generic internal error; every other create failure still hides daemon internals.

Refs OSS-238

DescribeRuntime inspects the config and host config after overrides and
refuses a combination that cannot boot: no writable /data, a read-only root
that blocks the image's nsswitch rewrite, bootstrap capabilities removed by
CapDrop ALL, a runtime uid that cannot own the world, host networking or a
host device. Warnings name the weaker setting without stopping creation.

Replaces the opaque internal error on the start and recreate paths with a
failed-precondition that carries the reason.

Refs OSS-238
@athNdev
athNdev merged commit 183e44c into main Nov 4, 2026
11 checks passed
@athNdev
athNdev deleted the feat/runtime-profile branch November 4, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant