Projects¶
Projects introduce a native mechanism to group instances by tenant boundaries within an Anbox Cloud deployment. A project is a scope that provides access control for its instances through entitlements and entitlement sets and hypervisor-level network isolation from the instances in other projects.
Why projects exist¶
Before projects, all instances shared a common network bridge (amsbr0) and a global permission scope. This made multi-tenant isolation difficult to enforce.
Projects allow users to group workloads according to their intended purposes and establish separate access and network boundaries for those workloads.
A project in Anbox Cloud acts as a scope with two boundaries:
Clear object ownership and access: Every instance belongs to one project. The project defines the scope for managing access to its instances. A user must belong to a group with access to the project it is in before the group’s direct instance entitlements can apply.
Network isolation: Each project uses a LXD-managed network. Instances connect to their project’s network, which is isolated from other project networks by default. Every project has a capacity of 8 instances. Since each project uses a unique subnet to assign IP addresses to instances, these subnet addresses are carved out from a subnet pool with address 100.64.0.0/10.
The default project¶
AMS comes with a pre-defined, immutable default project that users cannot edit or delete. If no project is specified when launching an instance, AMS places it in the default project. Instances that existed before projects were introduced are assigned to the default project during upgrade.
The default project preserves the networking that existed before projects. It uses a fixed address 192.168.100.1/20 that maps to a special network bridge amsbr0 on LXD. Its bridge mapping cannot be changed. All base instances created during the initialization of an application will still be launched within the default project.
Network traffic¶
Since a project forces stronger network isolation, a project has the following network properties:
Within a project: network traffic between instances within a project is unrestricted. In 1.31.0, communication is supported only between instances running on the same node.
Between projects: traffic between projects is denied by default. The
defaultproject is an exception: it can be reached from any other project in the system.Outbound to the internet: traffic from any instance within a project to the internet is allowed.
Inbound traffic: for non-default projects, traffic from the internet to instances is denied by default.