Security & Data Access

Restrict access to metadata objects ..

Workshop - Securing the Metadata Model

SecurityOrder - constraints

  1. Start Metadata Editor:

    Windows (PowerShell):

    Linux:

    1. Start the Pentaho Server (not required if using Pentaho Labs):

    Windows (PowerShell):

    Linux:

Follow the guide to apply security restrictions:

Access Control List

You must know the base URL for the Pentaho BA Server (the default URL is http://localhost:8080/pentaho as well as the name of the service to execute security information retrieval (the service is ServiceAction).

The Pentaho Metadata Editor must be configured to connect to your BA Server so that it can retrieve usernames, roles, and access control lists. Follow the below directions to set up Metadata Editor.

ACL
  1. Go to the Tools menu, then select Security. The Security Service dialogue will appear.

  2. In the Service URL field, type in the base URL for the BA Server plus the security service.

  1. Next, select the level of detailed security information you want:

All

Users

Roles

If you have hundreds of users in your system, you probably only want to return the roles, and use roles for security information properties. The access control lists are returned with all three options.

  1. In the Username and Password fields, type:

Username: admin

Password: password

  1. Click Test. A popup window with the returned XML should appear.

ACL list

OrderSecurity

For clarity let's rename the current OrderStarModel to OrderSecurity. Remember its the name of the Business Models that is displayed as the Data Source.

  1. Open the OrderStarCustomer.

  2. Right-click on Business Models and select: Edit.

  1. Name the model OrderSecurity

  2. Click OK.


Offline Access

If you want to work on your model and do not have access to the Pentaho Server, you can save your security information in a file. The Pentaho Metadata Editor retrieves your settings from the file instead of accessing the server every time you open your domain.

  1. After you click Test, Copy all the XML between the tags, including content the tags themselves.

  2. Paste the XML code into your favourite text editor, and save the file as metadata_security.xml, in a location of your choice.

  3. Click the File tab in the Security Service dialog box.

  4. Browse to the file that you just saved.

  5. Click OK to exit the dialog box.

Was this helpful?