There are two primary ways to run Anchore Enterprise out-of-the-box: the enterprise quickstart’s docker-compose or the anchore-engine helm chart. RBAC is configured and enabled by default if you enable the Enterprise features.
This document will cover a from-scratch configuration of an Anchore Engine deployment to use RBAC. For the sake of simplicity, this document will cover how to modify the config.yaml for the necessary services in order to use RBAC.
The services that need extra configuration in order to enable RBAC are:
- Anchore Engine external API service (apiext)
- Anchore Enterprise RBAC Manager
- You have access to the Anchore Enterprise docker image and have a valid license.yaml issue by Anchore Inc. If you don’t have one and would like a trial, please contact Anchore.
- You have a running Anchore Engine Open Source installation, for example from the Anchore Engine quickstart.
- You’re comfortable on the Linux command line and editing yaml documents. Nothing advanced, just some simple moving files around and editing text.
Option 1: Engine Quickstart & Update docker-compose.yaml
The update process can be accomplished by updating the
docker-compose.yaml. If you’re using the Helm Chart or another deployment mechanism, the updates to the docker-compose should be instructive of what to add, and where to connect the services.
If you are using the
docker-compose.yaml provided in the Anchore Engine Quickstart, then you can simply replace it with the enterprise version:
docker pull anchore/enterprise:1.2 docker create --name ent docker cp ent:/docker-compose.yaml . docker rm ent cp <path_to>/license.yaml . docker-compose up -d
This will add the new services as well as the Enterprise Feeds service and the Enterprise UI, and basically starts the system as outlined in the Anchore Enterprise Quickstart Guide.
Option 2: Anchore Engine Helm Chart for Kubernetes
The chart provides a set of flags to enable to use Enterprise, and RBAC is configured by default when those are set.
The flags are:
This will have the effect of adding some containers to the anchoreAPI deployment pods that run the RBAC Manager and RBAC Authorizer services as well as configuring the api endpoints to use the authorizer correctly.
NOTE: if you have already installed Anchore and have created accounts and users, enabling RBAC will cause all non-admin users to have no permissions or API access to authorization-gated routes (most API calls) until you explicitly assign each user one or more roles. The configuration and install process for RBAC does not automatically assign roles to existing users.
Option 3: Manual Configuration
For more information, see Manual Configuration of RBAC.