orchestracities / anubis

Anubis: a flexible policy enforcement solution for NGSI APIs (and beyond!)
https://anubis-pep.readthedocs.org
Apache License 2.0
7 stars 5 forks source link

1. before creating a policy for a resource, subscribe to it #160

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

(should be done in lua)

https://github.com/orchestracities/anubis/blob/1bf8f99724890027d9c2de4d38c258fcb987a90b/anubis-management-api/anubis/policies/routers.py#L419


    else:
        return serialize_policy(db_policy)

# TODO: 0. if at least provider exists (beyond the node itself), we should not create default policies in lua
# TODO: 1. before creating a policy for a resource, subscribe to it
# (should be done in lua)

@router.post("/",
             response_class=Response,
             status_code=status.HTTP_201_CREATED,
github-actions[bot] commented 1 year ago

Closed in a5a34904961db04494f2966aea6d54b7a68414ad