Implement permission provisioning and watchers

Remove rule reset from roles cli command
Add generic "provision" command for each binary and (re)set perm. rules
Permission rules are now separated and part of AccessControl service

Facility for watchers was added.
This commit is contained in:
Denis Arh
2019-05-10 09:49:07 +02:00
parent f113439d23
commit 2a4054c9bc
20 changed files with 377 additions and 166 deletions
+5
View File
@@ -46,6 +46,11 @@ func main() {
switch command {
case "help":
flag.PrintDefaults()
case "provision":
if err := system.Provision(ctx); err != nil {
println("Failed to provision system: ", err.Error())
os.Exit(1)
}
default:
// Checks subscription, will os.Exit(1) if there is an error
ctx = subscription.Monitor(ctx)