Tutorial: examining recent decisions
About this task
Earlier, you configured the Test endpoint to keep track of recent decisions made during policy evaluation. You can use details about recent decisions to debug policy behavior during policy development.
Recent decisions are a policy debugging tool, and are not intended for monitoring of authorization decisions in real time. You can examine the 20 most recent decisions made for an endpoint in the last 24 hours. |
Let’s examine recent decisions to make sure that the policy is handling payment requests correctly.
Steps
-
Go to Authorization > Recent Decisions.
-
In the Decision Endpoint list, select the Test endpoint.
-
In the Decision to Visualize list, select the first decision.
This is the most recent decision.
-
Examine the decision flow to make sure that decisions are evaluated according to your expectations.
The visualization is similar to what you saw when you tested your policy.
-
Click the Permit payments up to 10000 USD box to show more details.
Result:
You can see that this represents your rule that permits payments up to $10,000 USD. The decision evaluated to
Permit
and it took 3.288 milliseconds. -
In the Select Decision to Visualize list, select the second decision and then examine the Visualization tab and the other tabs to make sure that everything looks as expected:
-
Click the Request tab to review the JSON request sent to the decision service and confirm that the expected information was sent.
-
Click the Response tab to review the complete, high-verbosity response for the decision, including expanded errors and other helpful information.
-
Click the Attributes tab for details about the attribute used in the decision.
Now that you’ve examined recent decisions for your named version, let’s roll it out to production by publishing it to the Prod endpoint.
-
-
Go to Authorization > Version History.
-
For the Payment checks version, click the More Options (⋮) icon and select Publish Version.
-
In the Publish to list, select the Prod endpoint and click Publish.
Result:
The blue Prod icon indicates that the version is now published in Prod in addition to Test and Dev.
Result
Congratulations! You’ve built your first dynamic authorization policy, tested it, and rolled it out to production.