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

Cannot enter multiple URLs in list format at pki/config/urls #3407

Closed
lauradiane opened this issue Oct 2, 2017 · 0 comments
Closed

Cannot enter multiple URLs in list format at pki/config/urls #3407

lauradiane opened this issue Oct 2, 2017 · 0 comments
Milestone

Comments

@lauradiane
Copy link
Contributor

Documentation (https://www.vaultproject.io/api/secret/pki/index.html#set-urls) says that you can set multiple URLs at /pki/config/urls path by using a list of strings and gives the example: {"ocsp_servers": ["https://..."]}. However, lists are not accepted and you get an error:

$ vault --version
Vault v0.8.3+ent ('02d9a02dfdd5b7a8becc4e67982a75782f948f58+CHANGES')

$ curl -H "X-Vault-Token: TOKEN" -X POST http://127.0.0.1:8200/v1/pki/config/urls -d '{"crl_distribution_points":["http://exampleone.com","http://exampletwo.com"]}'

{"errors":["1 error occurred:\n\n* Error converting input [http://exampleone.com http://exampletwo.com] for field crl_distribution_points: '' expected type 'string', got unconvertible type '[]interface {}'"]}

You get the same error when trying to give a list of strings for ocsp_servers and issuing_certificates.

It does allow you to enter multiple URLs as comma-separated string though. For example "http://exampleone.com,http://exampletwo.com"

@briankassouf briankassouf added this to the 0.8.4 milestone Oct 2, 2017
jefferai added a commit that referenced this issue Oct 3, 2017
jefferai added a commit that referenced this issue Oct 3, 2017
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