Repository navigation
Description
Summary
A Pushover integration created from the dashboard can never deliver.
Three layers each use their own names for the same two settings:
| Layer | File | User key | API token |
|---|---|---|---|
| Dashboard form (writes) | web/dash0/src/components/integrations/integration-form.tsx (ch-pushover-user / ch-pushover-token) |
user |
token |
| Sender (reads) | server/internal/notifications/pushover.go (pushoverSettings) |
userKey |
apiToken |
| Secret encryption list | server/internal/crypto/credentials/conn_secrets.go |
user_key |
api_token |
Two consequences:
- Delivery always fails.
parseSettingsfindsapiTokenempty and
returnsErrPushoverAPITokenNotConfiguredbefore any network call. That
affects every "Send test" and every real incident notification routed to
that integration. - The credentials are stored in plaintext. Neither
usernortokenis
in the encryption list, so they land inintegrations.settingsinstead of
settings_private.
Seen in production
A new user created a Pushover integration and pressed Send test about 25
times over 10 minutes. PostHog recorded 3 $rageclick on that button. In
between they re-entered the token, toggled Enabled and Default
off and on, deleted the integration and recreated it twice. All three rows in
prod have settings keys user,token, with an empty settings_private_keys.
The one test request still in the logs completed in 6.7 ms, which is too
fast to have reached api.pushover.net, so it failed on the missing-key path.
The user then left (and later deleted their organization).
Every Pushover integration in prod has this shape, so the type has never
worked from the dashboard.
Proposed fix
- Pick one canonical pair. The encryption list's
user_key/api_token
matches the snake_case of other secret settings (api_key,app_token,
routing_key). Use it in the form, the sender and the docs
(web/docs/docs/configuration/notifications.md§ Pushover). - Make the sender tolerant during the transition. Read the canonical keys and
fall back touser/tokenanduserKey/apiToken, so existing rows work
before the migration runs. - Add a migration that renames the keys on existing
pushoverrows and moves
the secrets intosettings_private(encrypted), so nothing stays in
plaintext. - Check the user-level Pushover contact (
models/user_contact.go) and the
escalation-step sender (jobtypes/job_escalation_step.go) for the same
drift. - Add a guard test: for every integration type, the keys the dashboard form
writes must cover what the sender requires, and every secret field the form
writes must be inconn_secrets.go. This class of drift should fail CI, not
a customer.
Separate UX gap seen in the same session
The test result badge tells the user it failed, but nothing pointed at why
in a way they could act on: they kept retyping a token that was correct.
Once (1) is fixed this goes away for Pushover. Still, a "not configured" error
from the sender should be shown as a configuration bug ("this integration is
missing its API token"), not as a delivery failure.
Acceptance
- Create Pushover from the dashboard, then Send test: a push arrives, and
the badge says delivered. - The settings row has no
user/tokenin clear;settings_private_keys
lists both. - Existing rows are migrated, and the CI guard test fails if a form and its
sender drift again.
Activity
fclairamb commentedon Oct 8, 2026
Converted to a spec:
specs/todos/2026-10-08-03-pushover-settings-key-drift.md(opus/medium), why: existing rows need a key rename plus an encryption backfill, and correctness hinges on credential handling. Not implemented yet — closing because the spec is now the tracking artifact; run /implement-todos to implement it. Spec PR: #496.fix: implement batch of specs (emails, incidents, Pushover, port fiel…