Skip to content

Multiple env or alias #2

@jonhteper

Description

@jonhteper

In some cases, if you are working with multiple containers, is necessary to named diferently the same environment. In the next example, I need to granted the same access to Root actor type; this is helpfull in unitary testing and for a cli tool in production. Why I can't reuse the same environment but with "diferent name".

My proposal syntaxt is:


syntax = 0.16;


resource User {
    env STD {
        policy {
            allow =["read"];
            rule {
                actor.id = resource.id;
            }
        }
    }

    env CLI | TESTS {
        policy {
            allow = [
                "Read",
                "Create",
            ];

            rule {
                actor.type = Root;
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions