How managed namespaces work
The GitLab App, Azure DevOps App, and Bitbucket App map your source control hierarchy to namespaces under the installation namespace. For example, the GitLab App creates a namespace for each group and subgroup. Managed namespaces have the following restrictions:- Structure: You can’t create child namespaces or add projects inside a managed namespace.
- Deletion: You can’t delete a managed namespace or the projects in it.
- Changes: Changes to groups, organizations, or projects in your source control system appear in Endor Labs after the next scan.
- Installations: You can’t create an app installation inside a managed namespace.
- Managed namespaces for GitLab
- Managed namespaces for Azure DevOps
- Managed namespaces for Bitbucket Data Center
Group projects with tags
Use project tags when a set of projects spans more than one group or organization. Managed namespaces follow your source control structure. Tags group projects across that structure. You can add tags to projects that an app imports. The app keeps your tags when it scans. For example, tag your most critical servicestier-critical, other production services tier-prod, and everything else tier-other. Each tag can then drive its own policies and scan settings.
New repositories arrive without tags. Scope your strictest policies to all projects. Exclude the tags of projects that need less. A new project then starts under the strictest rules.
See Tag projects to add tags to a project.
Scope policies across namespaces
Create policies in the installation namespace and scope them with project tags. A policy that propagates to child namespaces applies to every managed namespace below it. Its tag inclusions and exclusions match projects in those child namespaces. For example, create an action policy with Break the Build that includestier-critical and tier-prod. Then create an action policy with Warn that includes tier-other. Break the Build applies to PR scans and CI scans.
See Action policies to create a policy and set its project scope.
Assign scan profiles
Projects that an app imports use scan profiles in the same way as other projects. You can assign a scan profile to individual projects or set a default scan profile for a namespace. Endor Labs picks the scan profile for a project in the following order:- The scan profile assigned to the project.
- The default scan profile of the project’s namespace.
- The default scan profile of the closest parent namespace, if that scan profile propagates to child namespaces.
- The Endor Labs default scan settings, if no scan profile matches.
Share integrations with child namespaces
Create integrations in the installation namespace and propagate them to child namespaces. You then don’t need to configure them again in each managed namespace. Integrations support propagation in the following ways:- Notification targets: Jira, Slack, email, and webhook targets propagate by default. Clear Propagate this notification target to all child namespaces to keep a target in the parent namespace only.
- Package managers: Package manager integrations don’t propagate by default. Select Propagate this package manager to all child namespaces to share one.