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

Alerting: Fix grafana_contact_point ignores changes in secure fields #880

Merged

Conversation

JacobsonMT
Copy link
Member

Previously we suppressed the comparison of secure fields and stored "[REDACTED]" in state. This change will instead store the unredacted values in state on create/update and patch them during read.

This way, Terraform can identify and update changed secure field values.

Fixes: #713

Previously we suppressed the comparison of secure fields and stored "[REDACTED]" in state. This change will instead store the unredacted values in state on create/update and patch them during read.

This way, Terraform can identify and update changed secure field values.
@JacobsonMT JacobsonMT requested a review from a team as a code owner April 13, 2023 14:57
@github-actions
Copy link

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically. To do so, a Grafana Labs employee must promote the Drone build.

For maintainers, it's better to run only the Cloud tests you need, rather than all of them. You can do so by setting the following parameter when promoting:

TESTARGS='-run=<testname>'

@julienduchesne
Copy link
Member

julienduchesne commented Apr 13, 2023

Weird, I see tests failing with REDACTED values being seen, but I don't see anymore references about that string anymore in the code 🤔

Does the API return [REDACTED]?

@JacobsonMT
Copy link
Member Author

Yes, the API returns [REDACTED]. There seems to be an edge case or issue that I didn't catch in local testing when I copied the code over from slack to all the other notifiers. I'm looking into it and will update.

Copy link
Member

@julienduchesne julienduchesne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job. Pretty tricky considering you have to re-send the whole config every time. The tests still look good so 👍

@armandgrillet armandgrillet merged commit 35008eb into master Apr 14, 2023
@armandgrillet armandgrillet deleted the jacobsonmt/fix_grafana_contact_point_secure_fields branch April 14, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

grafana_contact_point ignores changes in pagerduty integration_key
3 participants