Skip to content

Restricting Maia Foundation runners🔗

You can restrict which Maia Foundation runners are available to a specific project or environment. This is useful if you have multiple Maia Foundation runners and want to ensure that a Maia Foundation runner is only available to specific projects. You can also ensure that only specific environments are allowed to use Maia Foundation runners, thus preventing access within a project to any user who doesn't have access to that environment.

An unrestricted Maia Foundation runner (the default state when a Maia Foundation runner is created) can always be used by any project or environment. A restricted Maia Foundation runner can only be used by the projects and environments you specify. If you restrict a Maia Foundation runner but don't specify any projects, the Maia Foundation runner won't be accessible to any project.

Note

At this moment, these restrictions work in relation to the Designer UI only, but will be extended to runtime in a future release.

In addition to the process described below, you can also restrict Maia Foundation runners using the Manage Agents API endpoint.


How to restrict Maia Foundation runners🔗

Note

You can restrict a Maia Foundation runner regardless of its current status (Running, Stopped, etc.).

  1. In the left navigation, click the Agents & Instances icon . Then, select Agents from the menu.
  2. Locate the Maia Foundation runner you want to restrict and click the Maia Foundation runner's name to open the Maia Foundation runner details page.
  3. Click the Allow List tab.
  4. Click the Restrict agent toggle to enable restrictions. This will reveal the list of projects that can use the Maia Foundation runner, along with the number of environments in each project that can use the Maia Foundation runner ("All environments", "1 environment", "2 environments", etc.).
  5. Click Manage next to the Projects heading. This will open the Manage projects dialog.
  6. The Manage projects dialog lists all the projects in your Maia account. To allow a project to use the Maia Foundation runner, click the project name and then click the right-arrow button. This will move the project to the Allowed projects list on the right. You can use the left-arrow button to remove a project from the Allowed projects list.
  7. Click Save to save your changes and close the dialog.

By default, every environment in an allowed project can use the Maia Foundation runner. If you want to further restrict the Maia Foundation runner to a specific environment or set of environments within the project:

  1. Click environments next to the project name (it may say "All environments", "1 environment", "2 environments", etc.). This will open the Manage environments dialog.
  2. The Manage environments dialog lists all the environments used by the project. To allow an environment to use the Maia Foundation runner, click the environment name and then click the right-arrow button. This will move the environment to the Allowed environments list on the right. You can use the left-arrow button to remove an environment from the Allowed environments list.

Reserving an environment name🔗

If an environment doesn't yet exist but you want to ensure that when it's created it can use the Maia Foundation runner, you can use the Reserve environment function to specify the name of the environment that you plan to create. To do this:

  1. Click the three dots ... to the right of the project you want to reserve an environment for.
  2. Click + Reserve environment. This will open the Reserve Environment dialog.
  3. In the Environment name field, enter the name of the environment you plan to create.
  4. Click Reserve to reserve the name and close the dialog. The reserved environment name will be added to the Allowed environments list for the project, with "(reserved)" next to its name.

You can repeat this process to reserve multiple environment names for the project.

Note

This action doesn't create the environment. When an environment with this exact name is subsequently created in the project, this Maia Foundation runner will be available for selection by that environment.

When you reserve an environment name for the Maia Foundation runner, it automatically restricts the Maia Foundation runner to only that environment, even though it doesn't yet exist, which means no other environments can use it unless you explicitly add them to the Allowed environments list.

To remove a reserved environment, click the environment name in the Allowed environments list and then click the left-arrow button to move it to the list on the left. This will remove the reservation, and it will no longer appear in either list of the dialog.

Turning off Maia Foundation runner restrictions🔗

If you switch the Restrict agent toggle off, the Maia Foundation runner will be made available to every project and environment. The list of allowed projects, environments, and reserved environments will be saved, however, so if you later re-enable the Restrict agent toggle, the previous restrictions will be restored.


Using the restricted Maia Foundation runner🔗

In an environment🔗

When you create an environment within a project, one of the decisions you need to make is which Maia Foundation runner the environment will use. For details of how to create an environment, read Environments.

The environment's Agent drop-down will only display those Maia Foundation runners that are unrestricted or that are restricted to the environment that is being created.

In a schedule🔗

When you create a schedule, one of the decisions you need to make is which Maia Foundation runner the scheduled pipelines will use. For details of how to create a schedule, read Schedules.

The schedule's Agent drop-down will only display those Maia Foundation runners that are unrestricted or that are restricted to the project and environment that the schedule is being created in.

If you restrict a Maia Foundation runner so that it's no longer available to a project that already uses it in a schedule, the schedule will continue to use the Maia Foundation runner. However, no new schedules subsequently added to the project will be able to use that Maia Foundation runner.