An open API service indexing awesome lists of open source software.

https://github.com/lac-dcc/hapi

A domain specific language to define access policies.
https://github.com/lac-dcc/hapi

Last synced: 6 months ago
JSON representation

A domain specific language to define access policies.

Awesome Lists containing this project

README

          

# Project Hapi

## H​ierarchical Access Policy Implementation

This project aims to implement a domain specific language to define access policies. Considering actors (A) and resources (R), we want to be able to ensure:
- **Totality**: either A accesses R or it does not
- **Uniqueness**: R cannot be both accessible and forbidden to A

By hierarchical, we mean that policies specified for an actor can be projected into another actor, and extended in this new setting.

## Usage

Suppose you have a Hapi project under the folder `` and then you want to run the file `/.hp`:

- **With Docker**

```
docker build -t hapi_image .
docker run -v :/data --rm hapi_image "/data/.hp"
```

- **Without Docker**

```
gradle run --args="/.hp"
```

In both ways the YAML translation will be generated at `/.yaml`.

## Examples

@TODO

## License

This project is licensed under the [GPLv3 license](LICENSE).