Why teams serve OpenMetadata under a subpath and how the setup works
Serving OpenMetadata under a subpath such as /openmetadata on an existing internal domain works when your load balancer or reverse proxy strips or forwards that prefix correctly and OpenMetadata is told the same path. The documented setup has two sides that must agree: the BASE_PATH environment variable, which must not end with a slash, and the basePath value in openmetadata.yaml, which does need a trailing slash. Getting either side wrong is the most common reason the UI loads but its static assets return 404.
A subpath changes three things. Routing: the proxy must match the prefix and pass requests to the OpenMetadata server in a way the application expects. Static assets: the browser requests JavaScript and CSS relative to the base path, so a mismatch between the proxy rule and basePath breaks the page even when the API responds. Login redirects: the SSO callback and post-login redirect URLs must include the prefix. Check these against your identity provider's registered redirect URIs before go-live, because a correct page load does not prove a correct login flow.
A subpath is worth the extra configuration when your organization already publishes internal tools under one domain, when a central gateway owns certificates and access policy, or when a dedicated hostname needs a DNS and certificate request your team cannot get quickly. A dedicated hostname is simpler to reason about, avoids path-prefix rules and keeps cookies and redirects on a single origin. Confirm the exact settings for your release with the subpath page in the documentation, and test login, search, ingestion views and asset loading after every proxy or version change.
How a browser request reaches OpenMetadata under a subpath
A browser asks for a page under the subpath, and the load balancer or reverse proxy receives it first. The proxy either strips the prefix or forwards it, and the OpenMetadata server then serves the UI and static assets. The two base path settings have to agree with how the proxy handles that prefix: BASE_PATH must not end with a slash, while basePath in openmetadata.yaml needs one. Check both settings when static assets return 404.
Request path from browser through the proxy to OpenMetadata, with base path settings marked.
Which base path settings must match and how
The BASE_PATH environment variable tells the OpenMetadata server which path it is served under. Set it on the server container or host process, and set it before the first start so the server builds its links with the right prefix. The documented format for this value is a path with no trailing slash, so a value for a subpath such as /openmetadata is written without the closing slash.
- Format: write the path with a leading slash and no trailing slash, for example
/openmetadata. - Scope: the variable belongs to the server environment, so check it in the deployment manifest, the container definition or the service unit file.
- Timing: a change needs a restart of the server before it takes effect.
- Mismatch: if the value carries a trailing slash, the server expects a different prefix from the one the configuration file declares, and static asset requests fail.
- Records: keep the value in version control next to the proxy rule so reviewers can compare the three settings in one place.
Before go-live, confirm the exact value against the subpath configuration documentation for the release you deploy, since the expected format is set by that version.
The basePath key in openmetadata.yaml is the server-side counterpart of the environment variable. The documented format for this key is the opposite of the environment variable: it needs a trailing slash. Writing the same subpath as /openmetadata/ in the file keeps the server's internal routing aligned with the static asset paths it generates.
- Format: use the path with a trailing slash, for example
/openmetadata/, in the configuration file. - Location: edit the file used by your installation, which is the packaged configuration on bare metal and the values supplied to the chart or image on other installs.
- Quoting: wrap the value in quotes if your YAML parser reads the slash in an unexpected way, and check the parsed value after a restart.
- Mismatch: if this key lacks the trailing slash while the environment variable is correct, requests for static assets return 404 and the login page loads without styling or scripts.
- Review: diff the file after each upgrade, because release changes can reset or rename keys.
Verify both values side by side after any change, since the two formats differ by one character and the error appears only in the browser.
The proxy rule maps the external path that users see to the internal address where OpenMetadata listens. The rule must keep the subpath intact when it forwards requests, and it must not rewrite the path in a way that the server does not expect. The exact syntax depends on the load balancer, ingress controller or reverse proxy you use, so the rule must be confirmed against that product's documentation before it is written.
- External path: the public URL prefix, such as
/openmetadata, is the path your users and links use. - Internal target: the upstream address and port of the OpenMetadata server, which must match the port the server is configured to listen on.
- Path handling: confirm whether the proxy strips the prefix before forwarding. If it strips the prefix while the server expects it, routing breaks; if it keeps the prefix while the server does not expect it, the request is not found.
- Headers: forward the host and protocol headers so redirects and generated links use the public address.
- Trailing slash: test both
/openmetadataand/openmetadata/at the proxy, since the proxy may redirect one to the other.
After writing the rule, load the login page, open the browser developer tools and confirm that every static asset returns a success status.
When the three settings disagree, the failure usually shows in the browser rather than in the server logs. The most documented case is the trailing slash mistake: a BASE_PATH value with a trailing slash, or a basePath value without one, causes static assets to return 404. The page may render partially, with the layout missing and scripts not running, which can look like a caching or browser problem.
- Static assets 404: the most common symptom, caused by the trailing slash mismatch described above.
- Redirect loops or wrong hosts: usually a proxy rule that rewrites paths or omits forwarded headers.
- Login redirects to the wrong address: the public address is not reflected in the generated links, which points to missing forwarded headers.
- Partial page load: the HTML loads but scripts and styles do not, which points to the asset prefix.
- Stale behavior after a change: the server was not restarted, or a cached proxy response is still served.
When you investigate, compare the requested asset URLs in the browser with the configured values, and test the asset path directly through the proxy and against the server.
How to configure a subpath deployment step by step
This sequence takes OpenMetadata from a root-path install to a working deployment at a subpath such as /openmetadata, with each setting checked before the next one is changed. The end state is a UI that loads its assets, calls its API and completes sign-in under the chosen path.
Choose the external path and proxy layout
Decide the public path users will type, for example /openmetadata, and whether the reverse proxy or load balancer strips that prefix before forwarding or passes it through unchanged. Write both values down, since the application settings and the proxy rules must match them exactly. Confirm with the team that owns the load balancer which behavior it uses. You are done when the path, the proxy behavior and the internal service address appear together in one agreed note.
Set BASE_PATH without a trailing slash
On the OpenMetadata server host or in the deployment environment, set the BASE_PATH variable to the path, such as /openmetadata, with no slash at the end. The trailing slash is the most common cause of failure in this setup, so treat it as a rule rather than a style choice. Check the value by printing the environment inside the running container or service and confirming there is no trailing character after the path.
Set basePath with a trailing slash in openmetadata.yaml
Open the server configuration file, openmetadata.yaml, and set basePath to the same path with a trailing slash, for example /openmetadata/. This is the opposite convention from BASE_PATH, and the two settings are read separately, so the difference is intentional. Save the file and keep a copy of the previous version so you can roll back. You are done when the file shows the two values side by side and they differ only by that final slash.
Configure the reverse proxy prefix
Add a location rule for the chosen path on the load balancer or proxy and point it at the OpenMetadata server. Forward the prefix in the way the server expects, which is the behavior you recorded in the first step, and make sure requests to the bare path redirect to the path with its trailing slash. Ask the proxy team to confirm the forwarding headers they set, because the application builds links from them. You are done when a request to the path reaches the OpenMetadata server and returns a response rather than a routing error.
Restart the services and load the UI
Restart the OpenMetadata server so it reads the new environment variable and configuration file, then open the UI in a private browser window at the external path. Watch the server logs during startup for errors about base paths or static content. Confirm the login page renders with its styling. You are done when the home or login page loads from the subpath URL without a blank screen.
Verify static assets directly
Take one JavaScript bundle URL from the page source, prefix it with the external path, and open it directly in the browser. A 404 response means the trailing slash or the proxy rule is wrong, and you should return to the earlier step that caused it. Open the browser network tab, reload the page and filter for 404 responses, then confirm none remain for scripts, stylesheets and images. You are done when every static asset request returns a success status.
Confirm API calls and the login redirect
Sign in through the configured identity provider and watch the network tab during the redirect back to OpenMetadata. Check that the callback address uses the external path and that API requests from the UI, such as loading the explore page, return data. Record the registered callback URL in the identity provider so it matches the subpath exactly. You are done when a user can sign in, return to the application under the subpath and load catalog data without errors.
What the trailing slash mistake breaks and how to spot it
When OpenMetadata runs under a subpath, the base path settings have to agree with each other and with the proxy rule in front of them. A single mismatched slash tends to show up in several places at once, so the symptoms below look unrelated until you trace them back to the configuration. Work through the checks in order, starting with the browser's network tab.
Static assets return 404
The page shell loads, but the JavaScript, CSS and image files it references do not. The usual cause is that BASE_PATH has a trailing slash while basePath in openmetadata.yaml does not, or the reverse, so the asset URLs are built against the wrong prefix. Open the browser's network tab, reload, and filter for failed requests. If every failed request sits under the subpath but resolves to a different prefix than you configured, compare the two settings character by character.
Blank or partially loaded UI
The login or home screen renders as an empty frame, or menus and panels appear without their content. This happens when some assets load and others return 404, so the application starts but cannot finish rendering. Because the failure is partial, teams often suspect a browser cache issue first. Clear the cache in a private window to rule that out, then check the same asset list used for the 404 symptom.
API calls succeed while the UI fails
Direct requests to the API path return valid responses from curl or a REST client, yet the UI shows errors or never loads data. This pattern points away from the backend and toward the front end's asset and routing setup, which depends on the subpath being correct. Test the API endpoint directly through the proxy, then test the same path through the browser. A difference between the two results means the problem sits in how the front end was built or served, not in the server's health.
Login redirects land on the wrong path
After signing in through SSO or the login screen, the browser returns to a URL that drops the subpath, adds an extra segment, or points at the host root. Redirect targets are built from the configured base path, so a mismatch shows up here as well. Before you change any setting, record the redirect URI registered with your identity provider and compare it to the address the browser reaches. Both must include the subpath exactly as the proxy exposes it.
Proxy rules hide the mismatch
A proxy that strips or rewrites the prefix can make a correct application configuration look broken, or hide a wrong one behind a working redirect. Check whether the proxy forwards the subpath unchanged or removes it before the request reaches OpenMetadata. Then confirm that the value the application expects matches what it receives. Confirm this behavior with your load balancer's documentation and your own test environment, since proxy products differ in how they handle prefixes.
Questions teams ask before serving OpenMetadata under a subpath
Do we need a subpath, or can OpenMetadata run on its own hostname?
A dedicated hostname is usually simpler, and a subpath is worth the extra work only when your portal, gateway or existing URL scheme already places tools under paths such as /openmetadata. A hostname avoids path rewriting, keeps static assets and API calls at the root, and makes certificates and DNS easier to reason about. A subpath is a routing choice your proxy must carry consistently, so confirm with your platform team whether a shared hostname is a requirement before you commit to one. If you do choose a subpath, the application's base path settings must match the public URL exactly.
How much effort does the proxy change take, and what drives it?
The effort depends on how many components sit between users and OpenMetadata, and on how many places the path is already configured. The main drivers are the number of proxy layers (load balancer, ingress, gateway), whether the proxy strips or keeps the prefix, how many external links and callback URLs embed the old address, and whether the team runs one environment or several. Each environment needs the same settings checked, so the work grows with the number of stages. Ask for a written list of every component that touches the request path before estimating time, and confirm the timing with the team that owns each layer.
Can our own team set up a subpath without outside help?
Yes, if your team already runs your reverse proxy and can edit the OpenMetadata configuration in a test environment. The configuration itself is small: the base path value in the environment and the matching basePath entry in openmetadata.yaml. The harder part is the proxy rule set, including how the prefix is stripped or forwarded and how the headers are passed on. Teams that lack experience with these proxies, or that run several layers of routing, often ask for outside help with the routing design and the test plan. DeployOpen can plan, implement and document this work in your infrastructure under a fixed scope agreed in writing.
What do our network and identity teams need to provide?
Your network team owns the proxy, load balancer, DNS records, certificates and the firewall rules that allow traffic to reach the OpenMetadata server. Your identity team owns the SSO application and its callback settings. Ask the network team to confirm which layer terminates TLS, which header carries the original host and scheme, and whether any path-based rule already exists for the chosen prefix. Ask the identity team for the list of redirect URIs registered with the provider, and for the change window in which they can be updated. Agree on who approves each change before testing starts.
How do we test a subpath deployment before users rely on it?
Test in a non-production environment that matches the public path, and check more than the login page. Load the home page directly at the prefixed URL and confirm that static assets such as scripts and stylesheets return successfully in the browser developer tools. Then check API calls from the user interface, sign-in and sign-out, deep links to a table or glossary term, and any ingestion-related pages your users open. Repeat the checks after each proxy change. Ask your engineers to record the exact base path values used, so the test and production settings can be compared line by line.
Do SSO redirect URIs have to change when we move to a subpath?
Yes, if the public address changes, the redirect URI registered with your identity provider must match the full callback URL that OpenMetadata sends, including the prefix. A mismatch usually shows up as a failed sign-in after the user authenticates, so treat the identity provider change as part of the same release. Keep the old callback registered only while you test, and remove it once the new path is confirmed. Coordinate the change with the identity team, because providers often require the exact string, and a trailing slash difference can fail the match.
Why do static assets return 404 after we add a trailing slash?
The base path setting in the environment must not end with a slash, while the basePath entry in openmetadata.yaml must end with one. If the two values are swapped or both have the same form, the browser requests assets from paths that the server does not map, and the page loads without styles or scripts. Check the values in both places when you see 404 responses for asset files, and compare them against the subpath configuration guidance in the OpenMetadata documentation. Confirm the exact values in your own environment after every upgrade, because a configuration template may change.
Security and operational considerations for a proxied subpath
A subpath deployment adds a proxy to the trust path, and the proxy becomes part of your authentication and TLS design. The cards below cover the decisions that keep the path secure and working after the first successful load.
TLS termination and certificate ownership
Decide whether the proxy or OpenMetadata terminates TLS, and record which team owns the certificate, its renewal and its private key. Most subpath setups terminate TLS at the load balancer or proxy, so certificate expiry becomes a proxy operations task. Check that the public scheme in redirects and cookies is HTTPS, not the internal HTTP hop, and retest after any certificate rotation.
Trust in forwarded client headers
Proxies pass client identity and scheme information in forwarded headers. Configure the proxy to overwrite these headers on every request rather than passing client-supplied values through, and confirm that OpenMetadata accepts them only from the proxy. Ask your platform team which headers the proxy sets and who reviews changes to that configuration.
Blocking direct access to the server
If clients can reach the OpenMetadata server port directly, the proxy's controls can be bypassed. Restrict the server and its database and search ports to the proxy's network segment with firewall rules or security groups, and verify from outside that the server does not respond on its own address. This also keeps requests on the path your access logs and web application firewall cover.
Keeping the OIDC redirect URI aligned
The redirect URI registered with your identity provider must match the external address that includes the subpath, including the scheme and path segment. A mismatch after a proxy change causes sign-in failures that look like authentication errors. Record the registered URI next to the proxy configuration so both change together, and confirm the value with your identity provider's documentation before go-live.
No SSO and basic authentication fallback
OpenMetadata does not support using SSO and basic authentication at the same time, so there is no built-in password fallback if the identity provider fails. Plan an incident access path before go-live, such as a break-glass procedure that uses your platform's own administrative access, and confirm with the vendor what that path involves. Test it in a non-production environment.
OpenMetadata security docsRetesting after upgrades and proxy changes
Static asset paths, base path settings and redirect behavior can change with an OpenMetadata upgrade or a proxy rule edit. Keep a short checklist that loads the UI, static assets, sign-in, a lineage page and an API call through the external path. Run it after every upgrade and proxy change, and record the result in your change ticket.
Keeping the subpath working through upgrades and proxy changes
A working subpath can break after an OpenMetadata version upgrade, a change to the proxy or load balancer rules, or a move from one deployment method to another, so the base path settings should be treated as configuration that is captured in version control and tested before any change reaches production. The two values that must agree, BASE_PATH for the server and basePath in openmetadata.yaml, are easy to lose when a new image, Helm values file or bare metal config is built from an older template. Keep both values, the proxy location rule and the trailing slash convention in one reviewed repository, so a diff shows exactly what changed.
Before any upgrade, stand up a test environment that uses the same proxy product, the same path prefix and the same TLS and redirect behavior as production, then load the login page and the static assets from a browser and from a command line client. Check that the sign-in redirect returns to the subpath and not to the site root. Repeat the check after each proxy rule edit, since a rule that rewrites or strips the prefix can make a correct application config fail in a new way. Confirm that the proxy and the application agree on whether the prefix is stripped before the request reaches OpenMetadata.
Read the OpenMetadata 2.0 release notes before planning any upgrade from a 1.x release, because they list the breaking changes that can affect configuration, ingestion images and connector credentials. Those changes are separate from the subpath settings, so treat them as a second item on the same change record. Ask your platform team to confirm which upgrade path applies to your installed version and to confirm whether the base path settings change between releases in your deployment method, since the subpath documentation is written for a specific release line.
How DeployOpen scopes, delivers and supports this work
DeployOpen treats a subpath deployment of OpenMetadata as a configuration change that touches the proxy, the application base path and the static asset routing together. We agree the written scope with your platform and security teams, build and test the path in an environment you control, then hand over the settings and runbook your team will maintain.
How we scope
- Confirm the public path, such as /openmetadata, and whether the proxy strips or keeps the prefix
- Record the load balancer, ingress or proxy product and the TLS termination point in the written scope
- List the SSO provider and redirect URLs that must match the subpath before go-live
- Agree fixed deliverables and timelines in writing before any configuration work starts
How we build
- Set the application base path and the proxy prefix so both use one agreed value
- Check the trailing slash convention between the base path setting and the proxy rule for static assets
- Test sign-in, the UI, API calls and ingestion-related pages through the proxy path, not only the origin
- Keep proxy and OpenMetadata configuration in version control for repeatable changes
How we hand over
- Deliver the final base path, proxy rules and redirect settings with a short explanation of each
- Provide a verification checklist your team can rerun after upgrades or proxy changes
- Document the known failure signs, such as missing styles or 404 responses on asset requests
- Walk through the runbook with the people who will own the proxy and the OpenMetadata server
How we support
- Retest the subpath after OpenMetadata upgrades, proxy changes and certificate renewals
- Support is available as a retainer for ongoing upgrades, testing and configuration changes
- Ask any support provider to confirm response scope and hours in the written quote
- Coordinate with your identity team when the external hostname or path changes

