ockam
ockam copied to clipboard
feat(rust): support global policies
- Add support for global policies in the
policy create
command. The information about whether the resource is global is derived from the resource name to guarantee backward compatibility. The global policy is used within a given node across resources of the same type (i.e. each node has its global policies). - Change
--expression
argument ontcp-inlet|outlet create
to--allow
. - The
--from
argument oftcp-outlet create
has been removed and its value it's not derived from thealias
. The first outlet to be created will always use theoutlet
worker address, to ensure backwards compatibility. - Refactor internals of policy commands to have the same structure and produce the same output as other commands
- Refactor struct returned by policy API endpoints.