Area: Product
Sub-Area: Customization
Applies to: OSS + Cloud
Issue
You want to change how DataHub looks (logo, favicon, title, theme or brand color) or add your own search filters. What you can change depends on whether you use DataHub Cloud or self-hosted DataHub.
You Might Be Asking
- Can I change the logo and name in DataHub?
- Which environment variables control branding, and where do I set them?
- Can I add a footer, custom navigation links or a theme color with environment variables?
- Can I add custom search filters?
- How do I change the logo for a data platform such as Snowflake?
Cause
Branding works differently on each deployment type:
- On DataHub Cloud, you set branding in the UI. You can't set GMS or frontend environment variables or Helm values.
- On self-hosted DataHub, GMS reads the branding environment variables, so you set them on the GMS deployment.
Solution
DataHub Cloud
- Make sure you have the Manage Organization Display Preferences privilege.
- Go to the Appearance settings page. In DataHub Cloud v2.4.4 you see a Branding card there when the redesigned nav bar is on.
- In the Branding card, set:
- Organization name (up to 25 characters).
- Logo (upload a file or give a URL; PNG, JPG, GIF, WebP or SVG, max 2 MB). The card also has a "Logo includes organization name" option.
- Favicon (square PNG, SVG or ICO work best, max 2 MB).
- Brand color.
If you don't see the Branding card, check your privileges and that the redesigned nav bar is on.
Self-hosted DataHub
The branding environment variables are REACT_APP_LOGO_URL, REACT_APP_FAVICON_URL, REACT_APP_TITLE and REACT_APP_CUSTOM_THEME_ID. REACT_APP_CUSTOM_THEME_ID picks a theme file that is already built into the frontend. GMS reads all four, so set them on the GMS deployment. The environment variables page lists them under "Frontend", but GMS reads them.
These four are the branding variables. There are no variables named REACT_APP_THEME_COLOR, REACT_APP_FOOTER_TEXT or REACT_APP_CUSTOM_LINKS, so you can't add a theme color, footer text or custom navigation links this way.
With the Helm chart, the datahub-gms subchart sets the logo and favicon from the logoUrl and faviconUrl values:
datahub-gms:
logoUrl: "https://company.com/logo.png"
faviconUrl: "https://company.com/favicon.ico"
The datahub-frontend subchart (top-level key datahub-frontend) appends extra environment variables from extraEnvs. Because GMS reads the branding variables, set them on GMS, not on the frontend.
Custom search filters
Use structured properties. A structured property has a "Show in Search Filters" display setting. See Structured Properties.
Data platform logos
A platform logo is a URL stored in the logoUrl field of the platform's dataPlatformInfo aspect. It is not an uploaded file. Set it with the CLI:
datahub put platform --name <name> --display_name "<Display Name>" --logo "<url reachable from the UI>"
This command writes the whole dataPlatformInfo aspect, with type OTHERS and datasetNameDelimiter set to .. The logo URL must be reachable from the DataHub UI. See Add a custom data platform.