1
root@272c02832f2c:~/conjur/tutorials/secrets# conjur policy load --as-group security_admin --namespace $NAMESPACE policy.yml
error: Unknown option --as-group

NAME
   load - Load a policy

SYNOPSIS
   conjur [global options] policy load [command options] POLICY FILENAME

COMMAND OPTIONS
   --[no-]delete  - Allow explicit deletion statements in the policy.
   --[no-]replace - Fully replace the existing policy, deleting any data that
                    is not declared in the new policy.
root@272c02832f2c:~/conjur/tutorials/secrets#

我该如何解决错误?任何人都可以在这个问题上帮助我。

4

1 回答 1

1

此命令将起作用:

$ conjur policy load <namespace> policy.yml

您不必担心这--as-group security_admin一点。命名空间在策略文件之前声明,而不是作为单独的参数。

于 2018-04-02T19:29:52.760 回答