{% include 'helpers/stylesheets.html' %}
{% include 'header.html' %}

Policy Adminstration

For HWA, Magen policies are administered using postman with pre-defined requests.

Scope of policies under HWA

The demonstration script, from a clean systems, is as follows.

  1. From postman, establish the postman environment for policy administration:
    1. Import the policy generic collection
    2. Import the poicy demo collection
    3. Set the "local" environment.
    4. From the policy generic collection, select and send the GET request to get all sessions.
    5. Examine the returned list, which should have be empty.
  2. From HWA, log in (as the pre-defined user): neither ingestion nor viewing may proceed without logging in.
  3. From postman, verify that a "policy session" has been established.
    1. From the policy generic collection, select and send the GET request to get all sessions.
    2. Examine the returned list, which should have be empty.
  4. From HWA ingestion menu, ingest an item.
    • This should succeed, as it is not subject to policy.
  5. From HWA repository view, attempt to view the previously ingested item.
    • This should fail, as no policy allowing the access has been established.
  6. From postman, install the hwa policy contract that allows access by the pre-defined user.
    1. From the policy generic collection, select and send the GET request to get all contracts and examine the returned list, which should be empty.
    2. From the policy demo collection, select and send the POST request that installs the contract.
    3. From the policy generic collection, select and send the GET request to get all contracts.
    4. Examine the returned list, which should have a single element, the contract just installed.
  7. From HWA repository view, attempt to view the previously ingested item.
    • This should succeed, as a policy allowing the access has been established.
{% include 'helpers/footer.html' %}