Skip to content

Permission denied on /sys/wrapping/rewrap endpoint #17507

Open

Description

@tledkov

Hi, Vault team.

I've forked vault-java-driver to fix unwrap and add wrap/rewrap functions.
The wrap/unwrap work perfectly, but /sys/wrapping/rewrap always response:
Code: 403
Body: {"errors":["1 error occurred:\n\t* permission denied\n\n"]}

I've tried to put wrapped token to body, or X-Vault-Token header but the response is the same.

I try to modify approlePolicy.hcl and implicit specify all rights for the path sys/wrapping/rewrap - response not changed.

I hope this is not a Vault bug, but a misconfiguration or invalid HTTP request (but I follow the API docs).

Please any comment or suggestions.

Activity

  1. tledkov commented on Oct 14, 2022

    @tledkov
    Author

    Hi Vault team.
    My apologize for the incomplete / wrong description of the issue.
    Adding permissions (create new role and assign one to user) for /sys/wrapping/rewrap endpoint solved the problem.

    I was wrong when i wrote about modify policy. The policy setting was not correct.

    BUT. It is not clear for me why all /sys/wrapping/* endpoints are allowed by the default policy, except for the /sys/wrapping/rewrap endpoint. This fact is not described (or not highlight) at the documentation.

    Looks like the default policies have been modified or documentation should be improved.
    Sorry for trouble, if I wrong again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions