You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support --cgroup-parent, bridge name option, enable_icc=false and user namespace remap for hosting multi-tenant apps Context #213
I am evaluating Kiri as a runtime for a shared-hosting panel that runs untrusted user binaries, one project per network, in containers from gcr.io/distroless/static with --read-only, --cap-drop=ALL, --security-opt no-new-privileges, and --user uid:uid. Kiri already handles memory (--memory), CPU (--cpus), --pids-limit, read-only rootfs, capabilities, and no-new-privileges, and it forces memory.swap.max=0, which is what we want. Thanks for that.
The following flags are accepted by the Docker API but silently ignored. The container starts, so nothing reports an error, but the protection is missing:
1. HostConfig.CgroupParent is not read. Containers do not go into the given slice, so we cannot set one aggregate CPU/memory limit per project across its containers.
2. com.docker.network.bridge.name network option is not read. Bridges are always named kiriN. This breaks host firewall rules that match bridge names (iifname "gsh-p-*").
3. com.docker.network.bridge.enable_icc=false is not implemented. Containers on the same user-defined network can likely still reach each other. Please confirm and tell us how to get this isolation.
4. User namespace remap (userns-remap or per-container UsernsMode) is not available. Root inside the container is root on the host kernel, with no uid mapping. We would like at least an option to map container root to an unprivileged host uid, or a documented statement on the isolation boundary.
What you'd like Kiri to do
Why it matters
These are defence-in-depth controls for running code from different tenants on one host. Without 1 and 4, a single project cannot be capped as a group, and a container compromise has less separation. Without 2 and 3, a firewall rule written against the bridge name silently does nothing.
Requested
• Either implement the four items above, or state clearly which are out of scope, so users know what the isolation boundary is.
• For any flag that is ignored, return a warning or a 400 instead of silently accepting it.
Environment: Kiri Linux (host, no VM), commit 1befa94 / release , Debian 13 amd64.
On item 3 (enable_icc=false): confirmed, it is accepted but not enforced. Kiri 0.2.0, Debian 13, Linux host mode:
docker network create --subnet 10.213.0.0/24 -o com.docker.network.bridge.enable_icc=false t2
docker run -d --name srv --network t2 alpine sh -c 'while true; do echo hi | nc -l -p 8080; done'
docker run --rm --network t2 alpine nc -w 3 <srv ip> 8080 # prints "hi"
docker network inspect t2 shows the option, but containers on the network still reach each other. On Docker Engine the same setup blocks container-to-container traffic. Please either enforce it or refuse the option with an error. As a workaround we give each tenant its own network.
A small update: from 0.2.3, com.docker.network.bridge.name is refused at docker network create with a message that says why, where it used to be accepted and ignored (#588).
The other three are unchanged on today's main: --cgroup-parent is not applied, enable_icc=false is accepted but containers on the network still reach each other, and there is no user-namespace remap. Until enable_icc is enforced, one network per tenant is the way to get that isolation.
I opened #1000 for item 3 (enable_icc=false). Each container's bridge port on such a network is isolated, so containers can't reach each other, while the gateway, DNS, published ports and egress keep working. A non-boolean value is refused at network create. Tested on Linux hosts (Ubuntu 22.04 and 24.04), not yet on macOS/Windows. --cgroup-parent and userns remap are not covered.
Activity
severinlindenmann commentedon Nov 15, 2026
On item 3 (
enable_icc=false): confirmed, it is accepted but not enforced. Kiri 0.2.0, Debian 13, Linux host mode:docker network inspect t2shows the option, but containers on the network still reach each other. On Docker Engine the same setup blocks container-to-container traffic. Please either enforce it or refuse the option with an error. As a workaround we give each tenant its own network.libracoder commentedon Nov 19, 2026
Thanks for the suggestion, and sorry Kiri doesn't cover this yet. We'll look into it and work on adding it to our release plan.
libracoder commentedon Nov 20, 2026
A small update: from 0.2.3,
com.docker.network.bridge.nameis refused atdocker network createwith a message that says why, where it used to be accepted and ignored (#588).The other three are unchanged on today's main:
--cgroup-parentis not applied,enable_icc=falseis accepted but containers on the network still reach each other, and there is no user-namespace remap. Untilenable_iccis enforced, one network per tenant is the way to get that isolation.fix(linux): enforce enable_icc=false by isolating bridge ports
Panahifarah commentedon Nov 27, 2026
I opened #1000 for item 3 (enable_icc=false). Each container's bridge port on such a network is isolated, so containers can't reach each other, while the gateway, DNS, published ports and egress keep working. A non-boolean value is refused at network create. Tested on Linux hosts (Ubuntu 22.04 and 24.04), not yet on macOS/Windows. --cgroup-parent and userns remap are not covered.