You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "mqqpyjh1988 (via GitHub)" <gi...@apache.org> on 2025/10/22 02:42:46 UTC
[D] How to configure dynamic watermark with logged-in username? [superset]
GitHub user mqqpyjh1988 created a discussion: How to configure dynamic watermark with logged-in username?
Description
I'm exploring ways to add a dynamic watermark that displays the currently logged-in username on charts/dashboards in Apache Superset. This is a common requirement for audit trails and security compliance in many organizations.
What I've investigated:
Checked the Superset configuration documentation but didn't find obvious watermark-related settings
Looked through existing issues and discussions but couldn't find a clear solution
Examined if there are any existing configuration flags in superset_config.py
What I'm trying to achieve:
Display the logged-in username as a watermark on charts and dashboards
Ideally, this should work both in the UI and on exported reports (PDF, PNG)
The watermark should be dynamic, showing different usernames for different users
Example of desired behavior:
When user "john_doe" is logged in, all charts should display "john_doe" as a semi-transparent watermark in the background.
Questions:
Is there a built-in configuration or feature in Superset to achieve this?
If not, what would be the recommended approach to implement this functionality?
Are there any plugins or extensions that provide this capability?
Would this require customizing the frontend components, backend, or both?
Environment:
Superset version: 6.0.0rc2
GitHub link: https://github.com/apache/superset/discussions/35778
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to configure dynamic watermark with logged-in username? [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: How to configure dynamic watermark with logged-in username?
<!-- Greeting -->
Hi @mqqpyjh1988! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
There isn't a built-in feature, config flag, or plugin in Superset for dynamic watermarks with the logged-in username. To achieve this, you'll need to customize the frontend. The username is available in the frontend via the bootstrap data (`getBootstrapData().user.username`), so you can overlay a semi-transparent watermark in components like `ChartRenderer.jsx` or `Dashboard.jsx` by injecting a styled DOM element. This approach will display the watermark in both the UI and exported reports (PDF/PNG), since Superset's export pipeline captures the rendered UI as seen in the browser. No backend changes are required unless you want to enforce or audit the watermark at the export level. There are no existing plugins or extensions for this—custom frontend code is necessary.
[Reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/components/Chart/ChartRenderer.jsx)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/00ea92be-6b2e-4f44-8630-03a685da3346?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/00ea92be-6b2e-4f44-8630-03a685da3346?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/00ea92be-6b2e-4f44-8630-03a685da3346?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/00ea92be-6b2e-4f44-8630-03a685da3346?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/00ea92be-6b2e-4f44-8630-03a685da3346?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/00ea92be-6b2e-4f44-8630-03a685da3346?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/00ea92be-6b2e-4f44-8630-03a685da3346?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35778)
GitHub link: https://github.com/apache/superset/discussions/35778#discussioncomment-14746237
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to configure dynamic watermark with logged-in username? [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: How to configure dynamic watermark with logged-in username?
<!-- Greeting -->
Hi @mqqpyjh1988! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
There isn't a built-in feature, config flag, or plugin in Superset for dynamic watermarks with the logged-in username. To achieve this, you'll need to customize the frontend. The username is available in the frontend via the bootstrap data (`getBootstrapData().user.username`), so you can overlay a semi-transparent watermark in components like `ChartRenderer.jsx` or `Dashboard.jsx` by injecting a styled DOM element. This approach will display the watermark in both the UI and exported reports (PDF/PNG), since Superset's export pipeline captures the rendered UI as seen in the browser. No backend changes are required unless you want to enforce or audit the watermark at the export level. There are no existing plugins or extensions for this—custom frontend code is necessary.
[Reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/components/Chart/ChartRenderer.jsx)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=00ea92be-6b2e-4f44-8630-03a685da3346) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/35778#discussioncomment-14746237
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org