Controlling Access to the Design Center UI
After you have set up the integration between CFEngine Enterprise and git, you may grant or revoke access rights for making changes with the Design Center GUI to your users.
Please note that use of the role-based access control (RBAC) for reporting in the Mission Portal is not yet supported in conjunction with the Design Center GUI. For the time being, we recommend turning RBAC globally off in the Mission Portal settings when using the Design Center GUI. Support for RBAC may be included in future versions.
Roles
There are two user roles that impact users' abilities in the Design Center GUI.
- cf_vcs. If a user is member of the cf_vcs role, he is allowed to use the Design Center GUI in the Mission Portal and commit to the git service configured in the settings. Conversely, if a user is not member of this role, he will not be able to access the Design Center GUI -- not even to list the available sketches.
- cf_remoteagent. This role allows users to invoke
cf-agent
on remote hosts and display the verbose output from the agents. In the context of the Design Center GUI this is used if a sketch activation is non-compliant (red), and a user clicks a failed host followed by the "Verbose output" button. Users can benefit from the Design Center GUI even though they are not member of thecf_remoteagent
role. But they will not be able to invoke remotecf-agent
runs to get additional diagnostics data.
Allowed changes
Users only get access to what the sketches available in the Design Center GUI offers. For example, if only a sketch that controls file integrity monitoring (Security::file_integrity) is available in the GUI, users can only change files that CFEngine monitors. All users will see the same sketches, and be allowed to activate on all hosts. There is not yet a concept of RBAC for the Design Center GUI.
The sketches that are available are controlled with the contents of /var/cfenigne/design-center
on the
Mission Portal server.
Note however, that malicious users can potentially do damage to hosts even if you limit their abilities. For example, if a user creates many activations of the Security::file_integrity sketch for a large amount of directories, this will have a performance impact across the infrastructure.
To get complete control over what users do, changes can be reviewed before
they are copied to /var/cfengine/masterfiles
on the policy server. Please
see [Integrating Mission Portal with git][Integrating Mission Portal with
git
for more information.
Audit log
All changes that Mission Portal users make through the Design Center graphical user interface becomes part of the git commit log. Each change in sketch activation corresponds to one commit in git. In the git commit log, the git committer name and email is configured in the Mission Portal settings. This allows for easily recognizing and parsing which commits are made through the Mission Portal as opposed to other users of the git service.
In addition, the git author name and email is set to the user name and email address of the user logged into the Mission Portal when the commit is made. This allows you to see exactly which users are making which changes in the git commit log.
$ git log --pretty=format:"%h %an: %s" --committer='Mission Portal'
0ac4ae0 bob: Setting up dev environment. Ticket #123.
5ffc4d1 bob: Configuring postgres on test environment. Ticket #124.
4190ca5 bob: My test activation
0ac4ae0 tom: remove failed activation
5ffc4d1 tom: print echo example
dc9518d rachel: Rolling out Apache, Phase 2
3cfaf93 rachel: Rolling out Apache, Phase 1