You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(slack): classify malformed mapping strings as configuration errors - #5831
Validate Slack event-template and channel-mapping string fields before trimming them. Malformed config now produces a field-specific, per-event 400 ConfigurationError rather than a 500 TypeError. Add focused unit and component regressions.
What is the related Linear task?
Resolves INT-7764
Please explain the objectives of your changes below
Prevent malformed stored Slack configuration from being classified as a transient transformation failure.
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Present non-string mapping fields now fail as configuration errors. Valid strings, absent optional fields, and blank-string fallbacks retain their behavior.
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A; validation is local to Slack.
Any technical or performance related pointers to consider with the change?
Regenerated and byte-checked the complete secret-path map; no artifact change. Modern webhook URL validation and unrelated Slack settings are outside scope.
Validation
npm test -- --testPathPattern="slack" --no-coverage --runInBand — passed, 39 tests.
Full secret-path generation and npm run check:secret-paths — passed; artifact unchanged.
npm run lint:fix, changed-file Prettier check, and git diff --check — passed. npm run lint stopped during its full-tree format pass; its output was truncated, so that combined command is not confirmed passing.
Simplify pass: shortened unit-case construction and clarified fixture IDs; retained common.ts variants per fixture conventions.
Local integration verification: skipped; transformer source is sha-pinned and cannot be source-run in the local stack.
⚠️ Known Issues
npm run lint stopped during its full-tree format pass and is not confirmed passing. The focused lint fix, changed-file Prettier check, and git diff --check passed.
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change? No.
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.
👋 I'm rudder-devbox. I opened this PR from task INT-7764.
Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 625a453b-8cf3-4e87-892e-4000c6aac579
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
What are the changes introduced in this PR?
Validate Slack event-template and channel-mapping string fields before trimming them. Malformed config now produces a field-specific, per-event 400 ConfigurationError rather than a 500 TypeError. Add focused unit and component regressions.
What is the related Linear task?
Resolves INT-7764
Please explain the objectives of your changes below
Prevent malformed stored Slack configuration from being classified as a transient transformation failure.
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Present non-string mapping fields now fail as configuration errors. Valid strings, absent optional fields, and blank-string fallbacks retain their behavior.
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A; validation is local to Slack.
Any technical or performance related pointers to consider with the change?
Regenerated and byte-checked the complete secret-path map; no artifact change. Modern webhook URL validation and unrelated Slack settings are outside scope.
Validation
npm test -- --testPathPattern="slack" --no-coverage --runInBand— passed, 39 tests.npm run test:ts -- component --destination=slack --runInBand— passed, 12 tests.npx tsc --noEmit -p tsconfig.test.json— passed.npm run check:secret-paths— passed; artifact unchanged.npm run lint:fix, changed-file Prettier check, andgit diff --check— passed.npm run lintstopped during its full-tree format pass; its output was truncated, so that combined command is not confirmed passing.npm run lintstopped during its full-tree format pass and is not confirmed passing. The focused lint fix, changed-file Prettier check, andgit diff --checkpassed.Developer checklist
Reviewer checklist