Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

policy example not clear #14

Closed
jmls opened this issue Dec 23, 2015 · 2 comments
Closed

policy example not clear #14

jmls opened this issue Dec 23, 2015 · 2 comments

Comments

@jmls
Copy link

jmls commented Dec 23, 2015

Looking at the example to add a policy, it's not clear how to pass the rules

vault.addPolicy { name: 'mypolicy' }, (err, result)->

how are the rules meant to be passed in ? for example, should it be this ?

rules:[ {path: "sys/policy",  { policy: "write" } }] 
@kr1sp1n
Copy link
Collaborator

kr1sp1n commented Jan 1, 2016

Hi @jmls ,
after reading hashicorp/vault#582 I wrote a better example for you 😄
It seems that it is only possible to pass the rules as a String and not as an Object because the vault server parses the rules by itself. So since v0.4.4 the policies example should be much clearer.

@jmls
Copy link
Author

jmls commented Jan 2, 2016

thanks

@jmls jmls closed this as completed Jan 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants