Skip to main content
The GitLab App, Azure DevOps App, and Bitbucket App create managed namespaces that mirror your source control structure. The GitHub App puts projects directly in the installation namespace. Your security tiers might not follow either structure. Plan the installation namespace and your project groups before you install the app.

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.
The installation namespace isn’t managed. Create policies, scan profiles, and integrations there. They then reach every managed namespace below it. See the following pages to learn the namespace structure each app creates:

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 services tier-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 includes tier-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:
  1. The scan profile assigned to the project.
  2. The default scan profile of the project’s namespace.
  3. The default scan profile of the closest parent namespace, if that scan profile propagates to child namespaces.
  4. The Endor Labs default scan settings, if no scan profile matches.
Set a default scan profile in the installation namespace for most projects. Keep Propagate this scan profile to all child namespaces selected. Managed namespaces then use it. Assign a different scan profile to the projects that need their own toolchain or build settings. See Configure scan profile through the UI to create a scan profile and assign it to projects.

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.
See Data propagation from parent to child namespaces to learn which objects propagate.

Moved repositories start as new projects

A repository can move to a group, organization, or project that maps to a different managed namespace. Endor Labs then creates a new project for it in that namespace. Renaming a GitLab project also creates a new project.
The new project starts without the findings, scan history, and tags of the old project. Add the tags to the new project again. Your tag-scoped policies and scan settings then apply to it.
Decide on your tags and installation namespace before you move repositories between groups, organizations, or projects.

Scan credits for app scans

App scans of the default branch don’t count toward your scan credits for up to five repositories per code contributor seat. Default branch scans of repositories beyond that limit count toward your credits. Endor Labs counts repositories in the order you onboard them. A moved or renamed repository becomes a new project. It moves to the end of that order. See Included and additional scans to learn which scans count toward your credits.