Description
supercheck diff does not detect changes made to notification provider settings (e.g. bodyTemplate), and reports "no changes" even though the stored config and the rendered body template don't match each other.
Steps to Reproduce
- Edit the bodyTemplate of a notification provider (e.g. VictorOps webhook) in the supercheck config.
- Run
supercheck diff.
- Run
supercheck config --print and supercheck notification get <ID> and compare their output.
Expected Behavior
supercheck diff should detect and report changes to notification provider settings, including config.bodyTemplate, if they differ from what's currently applied/stored.
Actual Behavior
supercheck diff reports everything as unchanged, even though the body template has been edited:
❯ supercheck diff
Change Plan
= 8 unchanged
✓ No changes detected. Everything is in sync.
supercheck config --print shows:
{
"notificationProviders": [
{
"id": "019efa02-c173-7608-9c9d-7e5bc3661fb8",
"name": "VictorOps",
"type": "webhook",
"config": {
"url": "https://alert.victorops.com/integrations/generic/20131114/alert/[REST_ENDPOINT_KEY]/[ROUTING_KEY]",
"method": "POST",
"bodyTemplate": "{\"abcd\":\"{{alertAction}}\",\"entity_id\":\"{{dedupKey}}\",\"entity_display_name\":\"{{title}}\",\"state_message\":\"{{message}}\",\"monitoring_tool\":\"supercheck\",\"timestamp\":\"{{timestamp}}\"}"
}
}
]
}
supercheck notification get 019efa02-c173-7608-9c9d-7e5bc3661fb8 --json shows a different body template for the same provider:
{
"message_type": "{{alertAction}}",
"entity_id": "{{dedupKey}}",
"entity_display_name": "{{title}}",
"state_message": "{{message}}",
"monitoring_tool": "supercheck",
"timestamp": "{{timestamp}}"
}
Note the field abcd vs. message_type — the two commands disagree about what the current body template actually is, and diff flags none of it as a change. This makes it impossible to trust diff for drift detection on notification providers
Environment
- Version:
- OS: MacOS 15.7.2
Description
supercheck diffdoes not detect changes made to notification provider settings (e.g. bodyTemplate), and reports "no changes" even though the stored config and the rendered body template don't match each other.Steps to Reproduce
supercheck diff.supercheck config --printandsupercheck notification get <ID>and compare their output.Expected Behavior
supercheck diffshould detect and report changes to notification provider settings, including config.bodyTemplate, if they differ from what's currently applied/stored.Actual Behavior
supercheck diffreports everything as unchanged, even though the body template has been edited:supercheck config --printshows:supercheck notification get 019efa02-c173-7608-9c9d-7e5bc3661fb8 --jsonshows a different body template for the same provider:Note the field abcd vs. message_type — the two commands disagree about what the current body template actually is, and diff flags none of it as a change. This makes it impossible to trust diff for drift detection on notification providers
Environment