Using the Policy Simulator
    • 24 Dec 2024
    • 2 Minutes to read
    • Dark
      Light
    • PDF

    Using the Policy Simulator

    • Dark
      Light
    • PDF

    Article summary

    Accessing the Simulator

    SaaS Access

    Visit simulator.operations-ext.plainid.cloud/app

    Policy Simulator Local PAA Installation

    To install the Simulator locally on your PAA, contact PlainID support at support@plainid.com.

    Running the Simulator

    Basic Configuration

    1. In the left pane, choose a Response Type.
      You can investigate identities using Asset Resolution or Policy Resolution. You have the option to investigate either an Identity or an Asset by using Policy List.

      • Asset Resolution:
        • Provides a list of allowed assets and actions for a specific Identity.
      • Policy Resolution:
        • Returns logical filtering of data permitted for the Identity and enables SQL query simulation by specifying the fully qualified table name.
      • Policy List
        • Returns the relevant policies based on Identities or Assets with their metadata.
    2. Fill out the input fields.

    • Object Type (Available only for Policy List): Allows users to choose whether to investigate Policies based on either Identities (relevant for or all response types) or Assets (Policy List).

      • To investigate Identities, fill out the following input fields:
        • JWT: Allows users to get Identity information from JWT. Users can also use the JWT to specify their Identity Template.
        • UID: The Identity's unique Identifier
        • Identity Template ID: Specifies the Identity Template the Identity is connected to. This is required when there are multiple Identity Templates within your Environment.
      • To investigate Assets fill out the following input fields:
        • Asset ID: The Asset's unique identifier.
        • Asset Template ID: Specifies the Asset the Asset Template is connected to.
        • The Actions field and Asset Attributes section are optional.
    • Fully Qualified Table Name (Available only for Policy Resolution): Enables users to visualize how the original SQL query is modified based on the Access Decision.

    • You can access additional information by filling out the fields in the Advanced dropdown.

    1. Click on Run Report.

    Advanced Configuration

    Additional parameter input options (applicable to certain endpoints):

    ParameterDescription
    Identity ContextPass Identity context data for the request.
    Identity AttributesAdd Identity Attributes to support dynamic group calculation or Attribute-based conditions.
    Asset ContextFilter access responses based on the Asset Context defined, excluding Policies unrelated to the provided Asset defined during the calculation process. For more information, check out our article on Working with assetContext.
    Environmental DataPass information required for requests, Asset rules, and request Conditions.
    Time Zone and Date and TimeProvide timestamp definition for request calculations.
    IPPass the IP in the request for IP-based condition calculation.

    Reviewing Authorization Responses

    When you send an Authorization Request with the relevant objects, you can see a detailed response. The response provides a comprehensive view of how these endpoints work in the context of Identity and Asset investigation.
    In the Policy Simulator, after running a report successfully, you view:

    • The Authorization request sent to the PDP, which can be useful for custom code or testing with Postman.
    • The JSON response as calculated by the PDP.
    • A Policies List containing the Name of the Policy, the type, and the Policy ID.

    image.png




    Additionally, users can view more specific information regarding Identities:

    • Asset Resolution

      • List of Assets permitted to the Identity and their associated Actions.
      • The exact Policy granting the Identity access to specific Asset and Action combinations.
        image.png
    • Policy Resolution

      • Original and Modified Queries (if the Fully Qualified Table Name is sent in the request).

    image.png


    Was this article helpful?