Repository navigation
fix(alerts): handle profile webhooks like alert destinations - #36722
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
bc48ebb to
b8adad1
Compare
…cret errors in every alert form
|
| Count | Rule |
|---|---|
| 3 | react-hooks/exhaustive-deps |
| 2 | openmetadata-imports/no-lower-layer-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Alerts/DestinationFormItem/DestinationSelectItem/DestinationConfigField/DestinationConfigField.tsx:103:9 |
react-hooks/exhaustive-deps |
The 'receivers' logical expression could make the dependencies of useCallback Hook (at line 129) change on every render. To fix this, wrap the initialization of |
| 🟡 | src/components/Alerts/DestinationFormItem/DestinationSelectItem/DestinationConfigField/DestinationConfigField.tsx:103:9 |
react-hooks/exhaustive-deps |
The 'receivers' logical expression could make the dependencies of useCallback Hook (at line 139) change on every render. To fix this, wrap the initialization of |
| 🟡 | src/components/Alerts/DestinationFormItem/DestinationSelectItem/DestinationSelectItem.test.tsx:34:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/Alerts/DestinationFormItem/DestinationSelectItem/DestinationSelectItem.tsx:60:9 |
react-hooks/exhaustive-deps |
The 'destinationItem' logical expression could make the dependencies of useMemo Hook (at line 109) change on every render. To fix this, wrap the initialization |
| 🟡 | src/utils/Alerts/AlertsUtilPure.ts:43:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed…mask their change events
…ials when the auth type changes
🚦 Removed from the merge queue —
|
…s them to their owner
# Conflicts: # openmetadata-service/src/main/java/org/openmetadata/service/resources/teams/TeamResource.java
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
Head branch was modified
Head branch was modified
Code Review ✅ Approved 3 closed / 3 findings🔴 High risk · Encrypting and masking profile webhook credentials changes secret storage and delivery; mistakes could expose credentials or disrupt webhook notifications. Brings user and team profile webhooks under the same webhook configuration handling as alert destinations, with secrets encrypted at rest, masked in responses, and decrypted only when sending. Resolved this session: the profile webhook secret rule and 2.1.0 data step now have a decision record, the channel-change rule was reconciled with the accepted secrets ADR, and a token URL change now clears the masked endpoint so the save is no longer refused. No issues remain open. ✅ 3 closed✅ Quality: Profile webhook secret rule and 2.1.0 data step have no decision record
✅ Quality: Channel-change rule contradicts Accepted secrets ADR, which is not revised
✅ Bug: Token URL change leaves the masked endpoint, so the save is refused
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|



Describe your changes:
User and team profile webhooks now go through the same webhook configuration handling as alert destinations (PR #36147). The per-configuration logic moves unchanged from
DestinationSecretsintoConfigSecretsso both share it. Includes matching updates to the team subscription editors. Stored rows are brought to this form by the 2.1.0 data step in PR #36939, which follows this PR.The AI profile's team view now loads the team's profile, so its subscription widget shows the saved webhook and a save keeps the rest of the profile. Changing a destination's authentication type now keeps only the new type's settings; moving to or from OAuth2 asks for the hidden values again, as a token URL change does.
Type of change:
Tests:
ProfileWebhookSecretsTest,WebhookSecretStoresTest,BuildSearchIndexDocTest,IngestionPipelineMigrationEntryPointTest.ProfileWebhookSecretsIT. This andEventSubscriptionResourceIT,DispatchScenariosIT,TemplateTestSendITpass locally on MySQL + Elasticsearch.TeamsSubscription.test.tsx,MembersTeamInfoWidgets.test.tsx,MembersTeamDetail.utils.test.ts,DestinationConfigField.test.tsx,AlertsUtilPure.test.ts, Playwright helperteamSubscription.ts.UI screen recording:
Changing a destination's URL or token URL empties its hidden secrets and opens Advanced Configuration on them, so the form asks for each one before saving. The classic and AI alert forms behave the same.
Classic form:
AI form:
Checklist: