-
Notifications
You must be signed in to change notification settings - Fork 23
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
TERRA-60 ⁃ astra_role module crashes when listing existing roles #101
Comments
@sflandergan I tried to reproduce this one, but I'm not able to. Can you verify that the Astra token you are using when you perform this has permissions to read user roles? It would be a little odd to have the ability to create a role, but not be able to read it. |
Hi @emerkle826 ,
Yes I can. You can check the response of It might be necessary though that you need to create a token referring to the role:
Seems otherwise the routine |
@sflandergan Thanks for the gist with your token permissions. Using the terraform file you provided, and creating a role that matches the permissions of your |
A little more of an update. While I am able to use the "user <client ID> is missing admin role for organization <org ID>" However, when I use an Admin token with the provider, I am able to list the role via terraform. I am also able to list specific roles via DevOps API with the admin token. I'm going to leave this ticket open for now, but I'll raise an issue with the Dev Ops API folks to see if this is expected. |
@emerkle826 thanks for the update. As you said this looks like a bug in the DevOps API since there seems to be an explicite check for the admin role. |
@sflandergan Glad the workaround will work for you. Also, I have a fix to prevent the panic and dump the Astra error instead in the PR #105 (which addresses #99) |
Seems that the issue is still appearing after a time of using this module. The issue happened after a couple of months using the module. Finallt, it is worth to mention that I did not have any issues until now and I did not even modify nothing related to the module for a while. Besides the role not having enough permissions, I've also got a null database fetch response but I guess this is related. At this moment, using an |
Hi,
I've tried to manage a role with the
astra_role
module.While it managed to create the role it crashes directly afterwards when listing the roles.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Panic Output
Panic Output
Expected Behavior
terraform plan
andapply
should work withouth the module crashing.Actual Behavior
The module crashes after the role has been created.
Additional Information
The state has been successfully written:
Steps to Reproduce
terraform apply -auto-approve
┆Issue is synchronized with this Jira Task by Unito
┆friendlyId: TERRA-60
┆priority: Major
The text was updated successfully, but these errors were encountered: