bito-code-review[bot] commented on code in PR #42494:
URL: https://github.com/apache/superset/pull/42494#discussion_r3661945592
##########
docs/admin_docs/configuration/alerts-reports.mdx:
##########
@@ -28,6 +28,7 @@ Alerts and reports are disabled by default. To turn them on,
you'll need to chan
- Users can customize the email subject by including date code placeholders,
which will automatically be replaced with the corresponding UTC date when the
email is sent. To enable this functionality, activate the
`"DATE_FORMAT_IN_EMAIL_SUBJECT"` [feature
flag](/admin-docs/configuration/configuring-superset#feature-flags). This
enables date formatting in email subjects, preventing all reporting emails from
being grouped into the same thread (optional for the reporting feature).
- Use date codes from [strftime.org](https://strftime.org/) to create the
email subject.
- If no date code is provided, the original string will be used as the
email subject.
+- Each alert/report has an "Include a link back to Superset" option (enabled
by default) controlling whether the call-to-action link (its email text is
configurable via `EMAIL_REPORTS_CTA`) is included in email and Slack
notifications. Uncheck it when recipients should not receive a link to your
Superset host, e.g. for external audiences.
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>CWE-10906: Config inapplicable to Slack</b></div>
<div id="fix">
The `EMAIL_REPORTS_CTA` config only affects email notifications, not Slack.
In slack_mixin.py line 40, the CTA text is hardcoded as 'Explore in Superset'
and does not reference this config. Users may be misled into thinking they can
customize the Slack CTA text via this setting. (See also:
[CWE-10906](https://cwe.mitre.org/data/definitions/10906.html))
</div>
</div>
<small><i>Code Review Run #0480e7</i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]