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

Vault API Explorer does not allow parameters on /token/create #8665

Closed
identitymonk opened this issue Apr 2, 2020 · 3 comments
Closed

Vault API Explorer does not allow parameters on /token/create #8665

identitymonk opened this issue Apr 2, 2020 · 3 comments
Labels
bug Used to indicate a potential bug ui

Comments

@identitymonk
Copy link

identitymonk commented Apr 2, 2020

Hi,

Describe the bug
When using Vault API Explorer (through portal) and trying to create a token, I cannot specified all parameters allowed in the corresponding standard API call.

To Reproduce
Steps to reproduce the behavior:

  1. Open Vault portal and authenticate
  2. Launch graphical CLI and execute api
  3. Filter API on /token/create
  4. POST on /token/create expects No parameters

image

Expected behavior
Parameters as in https://www.vaultproject.io/api-docs/auth/token/#create-token should be allowed

Environment:

  • Vault Server Version 1.3.4
@tyrannosaurus-becks tyrannosaurus-becks added ui bug Used to indicate a potential bug labels Apr 2, 2020
@tyrannosaurus-becks
Copy link
Contributor

Thanks for posting this! Just to confirm, I am also able to reproduce this issue.

@bmcguire
Copy link

Also would it be possible to create tokens from the Vault-UI?

@hashishaw
Copy link
Contributor

Hello, thanks for your patience!

@bmcguire Yes, as the warning message shows when navigating to the api explorer page:

The "Try it out" functionality in this API explorer will make requests to this Vault server on your behalf.

IF YOUR TOKEN HAS THE PROPER CAPABILITIES, THIS WILL CREATE AND DELETE ITEMS ON THE VAULT SERVER.

Your token will also be shown on the screen in the example curl command output.

In terms of the bug reported, this was addressed in #16938 for 1.12 and patched in 1.10.11 and 1.11.4. The API explorer shows the params as below:
token/create API parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug ui
Projects
None yet
Development

No branches or pull requests

4 participants