Participant Policy. Local and External

I have been playing around with an external policy server.

I have found this to be quite useful. This is an external policy server written in python (Flask) with a db that stores participant properties policy rules. You can point your Infinity location to it and the rules will take effect. The code provides a UI where you can experiment with creating participant policy rules that can be ordered (drag/drop) to change the order of rule matching.

There is a policy test section that gives instance response so that you don’t need to place actual calls while testing the effectiveness of the the rules. In addition to a log file, there is also a live log viewer that streams logs in real time.

A bonus is a simple Local Policy script export that takes the (enabled) rules and provides a local policy based on the rules that exist in the app.

Code here: GitHub - lorist/flask_external_policy

Note: No warranty here, just an example experimental app.

2 Likes

Very cool Dennis! I need to try this out. Abstracting away the complication of policy is a great idea.