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

Deleting a Policy does not delete configured defaults_roles #76

Open
ricrodriguezg opened this issue Jun 3, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ricrodriguezg
Copy link

ricrodriguezg commented Jun 3, 2021

PROBLEM SUMMARY
While deleting the default policy and re-creating it, it was observed that the previously configured default role was not being removed and even after deleting also the role, creating the policy and a role with the same name, it remained in the defaults_roles key of the default policy.

STEPS TO REPRODUCE

  • Delete the default policy.
  • Re-create the default policy.
  • Verify if the defaults_roles key contains the role configured in the default policy that was deleted.

image

The association between the role and the policy persist even if both elements are deleted following these steps.

  • Delete the default policy.
  • Delete the role.
  • Re-create policy
  • Re-create role
  • Verify if the defaults_roles key contains the role configured in the default policy that was deleted.

image

EXPECTED RESULTS
The value of the defaults_roles key should be empty since the default policy is being re-created.

ACTUAL RESULTS
The value of the defaults_roles key of the default policy points to the previously configured role.

ENVIRONMENT DETAILS

  • Vault v1.7.1
  • venafi-pki-monitor v0.9.0
@ricrodriguezg ricrodriguezg added the bug Something isn't working label Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant