-
Notifications
You must be signed in to change notification settings - Fork 178
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
401 error when trying to create Encryption At Rest #192
Comments
We'll take a look, thank you for the details. That helps a great deal. FYI @PacoDw |
Hello, I believe I've faced a similar one (while performing a different action though, but the symptoms seem to be similar).
While trying to simulate a similar api call from curl, it works fine (200 response code is preceded by 401, similarly to what @piotrgwiazda reported above). Also, when trying to create the project using mongodbatlas_project resource (instead of importing it), everything works fine. |
@michaljrk no but that's helpful information so will add a link to the other issue to this one. It may help during attempted repro. Thank you! |
The first 401 and then 200 response seen is due to the digest auth mechanism used by the Atlas API. However, please confirm if you are still facing this issue or has this resolved for you. In case this is still the case, Please confirm the below details for the further troubleshooting here:
Thanks. |
Is this still an issue? If not going to close it? |
This is still an issue. I am using Terraform v0.13.6 and "mongodb/mongodbatlas" version = "1.1.1". We have a public/private key-pair in project with full permissions on that project and at Organization level, that key-pair has 'Organization Member' access. No IP restriction applied. We are trying to create alerts in Atlas via terraform, where we are getting following error, when Terraform is making POST call to /api/atlas/v1.0/groups//alertConfigs HTTP/1.1
However, when I run the curl command against the same API, with that public-private key pair as POST "https://cloud.mongodb.com/api/atlas/v1.0/groups//alertConfigs", the alert is getting created fine. |
@vikassinha2019 this is not the same issue as reported here. Without your configuration or other details I can't tell you why you aren't having success with Terraform. I would suggest reaching out to Atlas support for assistance. |
@themantissa I have the same issue while calling modify cluster through the API. Request: Actual Response got:
|
Not the same issue above. I'm closing this out. Any related issues should be open as a fresh issue and include the information we request to investigate, including the tf config and any logs. Thanks! |
I am trying to setup Encryption at rest with Azure using Terraform.
In general it works when calling Mongo DB Atlas REST API with CURL, but does not work via Terraform.
Here is Terraform code
Terraform fails with 401 error
Terraform logs (sensitive data removed)
However, when I take the same JSON and run it via CLI it works.
The curl output shows 401 response as a first response as well, but then 202.
The text was updated successfully, but these errors were encountered: