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;
}
}
}
}
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: