Skip to content

Option to disable network access in the sandbox #62

@comunidadio

Description

@comunidadio

Summary

It's not obvious right now how to launch a sandbox without any network access.
It seems the easiest workaround would be --allow-host with a non-existing host... but that looks a bit ugly.

Why

Some usages do not, or should not, have (external) network access at all.
Eg. running a command in a sandbox and getting results via stdout.

How (optional)

Perhaps --deny-net option in the CLI, DenyNetwork: bool in SDK's Config objects.

Not sure if it's doable or sensible to not have eth0 at all inside the VM (just lo) ?
If not possible due to host<->agent comm, perhaps eth0 could be limited to the guest-agent cgroup in this case?

Regardless if keeping eth0 in sandbox is necessary or makes sense, the option would completely disable network egress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions