Skip to content

Latest commit

 

History

165 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZPL Compiler

Can translate simple ZPL into binary policies that the prototype visa service can process. This comes bundled with a tool to examine the contents of a "compiled" binary policy, zpdump.

Example usage

./zplc -k path/to/rsa-key.pem path/to/policy.zpl
  • That RSA key in the invocation is used to sign the binary policy so must match the one that the visa service is configured with.
  • By default the configuration for the ZPL policy will be found in a file with the same name as the ZPL file but with the zplc extension. If you want to load configuration from somewhre else, use -c path/to/config.zplc argument.
  • Help is available via zplc -h

How to build

  • make

TODO

Work is ongoing to accept the full ZPL syntax. Note that it is one thing for the compiler to accept the syntax and process it into a policy and another for the Visa Service to be able to implement the policy.

Here are syntax bits that are not yet supported by the compiler:

  • Limits.
  • Conditions.

About

The ZPL Compiler

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages