Add a tenant¶
Run these as root on any host. Each tenant gets a project and an OpenFGA group of the same name, and its members are the Andrew IDs in that group.
- Create the tenant's project with its limits. It uses the default project's profiles and images, which give its instances their NICs and root disk:
incus project create <tenant> -c features.profiles=false -c features.images=false \
-c limits.cpu=<cpus> -c limits.memory=<memory> -c limits.disk=<disk>
- Add each member to the tenant's group:
- Give the group the
userrole on the project:
- Check that a member can see the project:
This prints "allowed":true.
To remove a member, run fga tuple delete with the same arguments as in step 2. To change a limit, run incus project set <tenant> limits.<resource>=<value>.