fix: Encryption at rest return inconsistent plan when setting secret access key #1529
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Ticket: INTMDB-1202
Help Ticket: HELP-50897
The encryption at rest resource returns inconsistent results after apply when the secret access key is provided
This PR updates the logic to use the
secret_access_key
from the state file instead from the API response since the field is not returned.NOTE
Credentials based authentication is no longer supported by the API, if users try to pass accessKeyID and secretAccessKey for the encryption at rest resource for a new project, they will get the following error
The Atlas team made the decision to allow customers to keep providing these credentials if the project was already using them to allow them to migrate to the new IAM role-based. As a result, if the user was already providing those credentials, they will still be able to do so. New projects will get the error instead. This is why there are no acceptance tests defined and the terraform documentation does not include a test about it. (code mms/NDSUISvc.java
Unfortunately, we cannot deprecate the fields as long as they are supported in the API.
How did I reproduce the issue
I ran Atlas locally and removed the validation in mms/NDSUISvc.java
Type of change:
Required Checklist:
Further comments
Next Steps