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-6131 OpenAPI schema now includes /auth/token endpoints when explicit permission has been granted #15552

Merged
merged 3 commits into from
May 31, 2022

Conversation

VioletHynes
Copy link
Contributor

Previously, this code path was checking for ACLs for "/token/" when it should have been checking for "/auth/token". The Core.mounts.Entries and Core.auth.Entries both get checked by hasAccess, and while the MountEntry for mounts was simply mounts, which should not be prepended to e.g. /sys/, auth does need to be prepended for /auth/token etc.

Blanket access (e.g. access to /auth/token/*) goes down a different code path, which is why this issue was not seen in that case.

The OpenAPI schema now contains information about the /auth/token/ endpoints if explicit permission is granted to at least one of them (same behaviour as other endpoints).

@VioletHynes VioletHynes marked this pull request as ready for review May 20, 2022 19:36
Copy link
Contributor

@swayne275 swayne275 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd discussed and this seems to be the right thing, but I lack a bit of context. Waiting for @ncabatoff is a good idea

@VioletHynes VioletHynes merged commit f851d00 into main May 31, 2022
@VioletHynes VioletHynes deleted the violethynes/VAULT-6131 branch May 31, 2022 15:25
Gabrielopesantos pushed a commit to Gabrielopesantos/vault that referenced this pull request Jun 6, 2022
…licit permission has been granted (hashicorp#15552)

* VAULT-6131 OpenAPI schema now includes /auth/token endpoints when explicit permission has been granted

* VAULT-6131 add changelog

* VAULT-6131 Update changelog and fix related bug
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

Successfully merging this pull request may close these issues.

2 participants