Why OpenMetadata JWT errors stop ingestion and API clients
Authentication errors that suddenly stop ingestion or API scripts usually come from one of two causes: a JWT that no longer matches the signing key the OpenMetadata server validates against, or a bot identity whose token has been revoked, replaced or never copied into the client. Both look similar from the client side, since the request is rejected before any metadata is read or written. The first check is therefore to identify which identity the failing client authenticates as and when its token was last changed, before touching the server configuration.
The clients that depend on bot tokens are usually the ones nobody watches closely. Ingestion workflows configured in the UI or deployed through Airflow or Kubernetes carry a bot token in their service connection or pipeline configuration. The Python SDK, the REST API scripts that tag assets or push lineage, and any custom job built on the TypeScript packages or Java libraries do the same. Each of these holds its own copy of the token, so a single signing key change or bot token rotation can break many pipelines at once, and the failures may appear hours apart as schedules fire. Confirm which ingestion workflows, scripts and external tools use bot identities in your deployment, and where each copy of the token is stored.
Plan the rotation as an inventory exercise before it becomes an outage. List every consumer of each bot token, record the secret store or configuration location it reads from, and decide the order in which consumers will receive the new token. Confirm with your platform team how your deployment stores the JWT signing key and whether a key change invalidates existing bot tokens, since the supplied sources do not describe that behavior in detail. Check the version you run against the OpenMetadata security docs and the OpenMetadata 2.0 release notes before you change anything, because release-specific authentication changes affect how these steps apply.
How a bot token reaches the OpenMetadata API
The flow starts with an ingestion job or API client that reads its bot token from the secret store, not from its own config. The client presents that token to the OpenMetadata server, which checks the signature against the signing key it was configured with. The operator path is separate: someone issues or rotates the token and updates the secret store, and the pipeline runtime must pick up the new value. When a call fails, check the token source, the key the server holds, and whether the pipeline still carries an older token.
General illustration of token flow and trust boundaries; exact component names depend on your deployment type.
Which token and key setting fits each client
This table compares the three credential types a team chooses between when OpenMetadata authentication breaks: bot tokens for ingestion, personal tokens for SDK scripts, and the server-side JWT signing key that every token depends on. Read each row for what the credential is used for, who should own its lifecycle, and how far a leak or rotation reaches. Confirm exact setting names and token lifetime options in the security documentation for your version before you write rotation runbooks.
| Credential | Used for | Lifecycle owner | Rotation effort and blast radius |
|---|---|---|---|
| Bot user token | Ingestion pipelines and automated connectors that call the OpenMetadata API without a person signing in | Platform or data engineering team that owns the bot account and the pipeline secrets | Moderate effort: every pipeline, Airflow connection or Kubernetes secret that holds the token must be updated together, so a missed copy breaks scheduled runs |
| Personal access token | Python, TypeScript or Java SDK scripts and ad hoc API calls run by an individual user | The individual user, with an administrator able to revoke it | Low effort per token, but tokens tied to departing staff or shared notebooks are easy to forget; blast radius follows that user's permissions |
| Server-side JWT signing key | Signing and validating every token the server issues, including bot and personal tokens | Platform administrator responsible for the server configuration and secret store | High effort and wide blast radius: changing the key invalidates existing tokens, so plan a window and reissue bot tokens before or immediately after the change |
| Token lifetime setting | Controls how long issued tokens remain valid before they must be replaced | Platform administrator, aligned with the security team's credential policy | Shorter lifetimes reduce exposure but increase rotation frequency for pipelines; confirm which lifetime options the version in use supports |
| SSO-issued user session | Interactive browser and UI access for people, separate from API tokens used by machines | Identity provider administrator and the platform team | Changes to the identity provider do not automatically reissue bot tokens; keep machine credentials on a separate rotation path |
Diagnosing OpenMetadata JWT errors step by step
This sequence narrows a JWT or bot authentication failure to one client, one error and one cause, so the team knows whether to fix a stored token, a configuration mismatch or a server-side signing key problem.
Identify the failing client and identity
Start by naming the caller: the ingestion workflow, the Python SDK script, a REST client or a browser session, and the bot or user identity it authenticates as. Check which pipeline run, job or application first reported the problem and whether other clients still succeed against the same server. If only one bot fails, the cause is almost always in that bot's token or configuration. If every client fails at once, the problem is more likely on the server side. Done when you can state, in one sentence, which identity fails and which clients are affected.
Capture the exact error and HTTP status
Copy the full error message and HTTP status code from the client log and, if available, the matching entry in the OpenMetadata server log for the same timestamp. Record the request path and the time in UTC so you can line up client and server entries. Distinguish between an authentication failure (the server could not establish who the caller is) and an authorization failure (the caller is known but lacks permission), because they point to different fixes. Done when you have a verbatim error with its status code and timestamp saved in your incident notes.
Check whether the failure follows a change
Compare the first failure time with your change records. Look for a signing key rotation, a server upgrade, a Helm or configuration change, a secret store update or a change to the bot's token. Check the release notes for the OpenMetadata version you run before and after the change. If the first failing run lines up with a change, treat that change as the leading suspect. If nothing changed, look at token expiry dates and clock drift on the hosts. Done when you have either a matching change or a documented statement that none occurred.
Verify the token exists and has not expired
Open the secret store that the pipeline reads from, such as the orchestrator's secret backend or your Kubernetes secret, and confirm the bot token is present under the expected key name, with no truncation, extra whitespace or a value from an older environment. Decode the token payload without sending it anywhere outside your control and check the expiry claim against the current time. Confirm that the pipeline actually reads the secret you are inspecting. Done when you know the token is present, correctly named and unexpired, or you have found the specific defect.
Compare the server signing key with the issuer
Confirm which public key the OpenMetadata server is configured to validate tokens against and which key the token's header identifies, using the key identifier if your token carries one. A token issued under a previous key will fail after rotation unless the server still trusts that key. Check that the configuration on every server replica matches, since a rolling restart can leave old and new settings running side by side. Done when the issuing key and the validating key are the same, or you have identified the mismatch and which side holds the stale value.
Escalate when server logs show key or validation errors
Stop the client-side investigation and escalate to the platform owner if server logs report signature validation failures, unknown key identifiers, JWKS or key loading errors, or startup messages about authentication configuration. These point to the server's trust configuration, which should be changed under a controlled rotation procedure, not by editing tokens in clients. Also escalate if several bots fail at once after a server change. Bring the captured error, timestamps, the change record and the key identifiers you compared. Confirm the rotation and rollback steps with the vendor documentation for your OpenMetadata version before making changes.
Error patterns and the causes that usually sit behind them
Most JWT and bot authentication failures in OpenMetadata come from a mismatch: a token, key or client configuration that no longer agrees with the server. The cards below group the patterns we see most often, with the first check for each. Treat every cause as a hypothesis to confirm in your own logs and configuration, not as a documented behavior.
Rejected after a signing key change
Ingestion or API calls that worked yesterday now return authentication errors, and the timing lines up with a change to the JWT signing key or the auth configuration on the server. The likely cause is that tokens issued under the old key still exist in pipeline secrets, while the server now validates against the new key. First check: compare the timestamp of the key change with the first failing run, then confirm which key the server is configured to validate against.
Security docsBot token copied from another environment
A bot token generated in a test or staging instance is pasted into a production ingestion workflow, or the reverse. The token is well formed, so the failure looks like a generic rejection rather than a missing secret. This is a common cause when the same pipeline template is promoted across environments. First check: decode the token's issuer and subject claims and confirm they match the target server and the intended bot.
Expired or revoked bot token
The ingestion job fails at the first API call, and the bot account still exists and has the right roles. The likely cause is a token past its lifetime or one that was regenerated or revoked in the UI, leaving the pipeline secret stale. Confirm the expiry setting used when the token was created and whether anyone regenerated it. First check: look up the token's expiry in the bot settings and compare it with the date of the first failure.
Client still pointing at the old value
Some clients, such as a scheduled ingestion workflow, a custom script or a secret mounted into a container, keep a token or server URL from before the rotation. Only some jobs fail, which makes the problem look intermittent. First check: list every job and service account that calls the server, then confirm each one reads the rotated secret rather than a cached copy.
Image or SDK expecting another format
An ingestion image or client library built for one release sends authentication in a format the server no longer accepts, or the reverse. This often follows an upgrade of the server or the ingestion image. The release notes for the version you run are the place to confirm any change in authentication handling. First check: compare the ingestion image and client package versions with the server version, and read the upgrade notes for the release in use.
- Release to check
- 2.0.0
Rotating OpenMetadata JWT signing keys without breaking pipelines
Rotating an OpenMetadata JWT signing key is a dependency problem before it is a configuration change. Every bot token issued from the server, and every ingestion workflow, Python SDK script, or other API client that holds one, must move to a token the server will accept, in an order that never leaves a running pipeline with an invalid credential. Start by inventorying every consumer: ingestion workflows scheduled from Airflow or Kubernetes, custom SDK jobs, CI pipelines, and any internal tool that calls the REST API as a bot. For each one, record which bot user it authenticates as, where the token is stored, who owns the schedule, and how a failure would surface. Consumers you miss will fail silently until their next run.
Plan the window around that inventory. Choose a period with no active or queued ingestion runs, and confirm the schedule with each pipeline owner before you start. Prepare the new bot token in your secret store first, and confirm that every consumer can read the new value without yet using it. Only then change the server-side signing configuration. Keep the previous signing material and the previous bot tokens available until every consumer has been verified against the new state, so that a rollback means restoring known values rather than generating new ones under pressure. Test the rollback path in a non-production environment before the window, because the rollback itself changes the same credentials.
Confirm from the OpenMetadata security documentation, at the OpenMetadata security docs, whether your target version supports overlapping valid keys during a transition or requires a server restart to load a new key. The answer decides whether your sequence needs a short gap or can run with both values accepted. Check the release notes for the exact version you run and any version you plan to move to in the same window, because a combined key change and upgrade makes failures harder to attribute. Record the outcome of this check in the change ticket so the on-call engineer knows which behavior to expect.
Rotation plan by deployment environment
In a Kubernetes deployment, the JWT signing key and bot tokens usually live in cluster secrets, and the OpenMetadata server and ingestion workloads read them from there. Rotation has two parts: updating the secret object in the cluster and making sure running pods and scheduled jobs pick up the new value. Confirm with the chart or manifests for your version which keys the server expects and whether a rollout is required. See the OpenMetadata deployment docs for the supported install paths.
- Secret source: Keep the signing key and bot token in a Kubernetes Secret or in an external secret manager that syncs into the cluster, and record which object each workload references.
- Propagation: Values injected as environment variables are normally read when a container starts, so running pods usually need a rolling restart. Confirm this for your chart version.
- Scheduled jobs: Ingestion jobs created after the change may use the new value, while jobs already running keep the old one. Check the job templates for hard-coded references.
- Ordering: Update the bot token in every ingestion configuration before the old token is revoked, so no pipeline holds a token the server has already rejected.
- Rollback path: Keep the previous Secret version available until the first full scheduled run has succeeded.
Verify with a test API call using the new token, a manual ingestion run that completes, and server logs with no new 401 responses across the next scheduled run.
On bare metal, configuration usually sits in files on the server host and is loaded by the service at startup, so the operator controls both the file and the restart. The signing key and bot credentials are only as safe as the file permissions around them, so treat those as part of the rotation, not an afterthought. Confirm the exact configuration keys, file locations and restart behavior in the OpenMetadata bare metal deployment docs for your version.
- Configuration file: Identify the file or environment file that holds the signing key and bot credentials, and limit read access to the service account that runs OpenMetadata.
- Restart requirement: Changes to startup configuration generally need a service restart. Confirm whether any setting is read without one.
- Saved copy: Save the current configuration with a timestamp so you can restore it quickly if the new key breaks sessions or API access.
- Ingestion hosts: Ingestion run from cron jobs or separate hosts needs the same bot token updated in its own configuration or secret store, and those hosts are easy to forget.
- Session impact: Confirm what happens to existing user sessions and issued tokens when the signing key changes. That determines whether users must sign in again and whether bot tokens must be reissued.
Verify with the health check, an authenticated API call, a manual ingestion run from each host, and a review of service logs for authentication failures after the restart.
Airflow-driven ingestion often stores the OpenMetadata connection in Airflow itself, as a connection, variable or secret backend entry, and DAGs read it at run time. The main risk is that several places hold copies of the same bot token: the metadata server, the Airflow configuration and any DAG that builds its own client. Map every copy before changing anything. The exact mechanism depends on your Airflow and OpenMetadata versions, so confirm both against their documentation and the OpenMetadata security docs for authentication settings.
- Copy inventory: List every Airflow connection, variable, secret backend path and DAG parameter that holds the bot token.
- Secret backend: If Airflow reads secrets from an external backend, update the secret there and confirm how long workers cache the old value.
- Scheduler and workers: Confirm whether running schedulers and workers pick up new values without a restart, or whether they must be restarted.
- Active runs: Pause the affected DAGs or wait for active runs to finish, so a run does not fail partway through a source.
- Overlap window: Where your setup allows it, keep the old token valid briefly while DAGs move to the new one, then revoke it.
Verify by triggering one manual run per pipeline, checking task logs for authentication errors, and confirming the metadata server shows the expected ingestion results.
Handling bot tokens and signing keys safely
Bot tokens and the JWT signing key are the credentials that let pipelines and API clients act inside OpenMetadata without a person signing in. The six controls below connect how the token is stored, who can reach it, how far it reaches and how failures and rotations are recorded. Confirm each one against the trust model in the OpenMetadata security documentation and your own deployment before relying on it.
Keep tokens out of code and shared files
A bot token pasted into a DAG, a YAML ingestion config or a shared drive is readable by everyone who can open that file, and it survives in git history after it is removed. Store each bot token in a secret manager your platform team already operates, and let the pipeline runner fetch it at run time. Check that logs, workflow definitions and CI variables do not echo the token. Search your repositories for the token prefix before you call the migration finished.
Security docsScope each bot to one ingestion role
Create a separate bot for each pipeline or source rather than one shared ingestion identity, so a leaked token exposes one connector and not the whole catalog. Assign the narrowest role that lets that connector write its metadata, and avoid admin rights for routine ingestion. Confirm in your version which permissions the bot needs for profiling, lineage and tests, because those steps may require more access than basic metadata sync.
Limit who can view or regenerate tokens
Token visibility and regeneration are administrative actions, and they should sit with a small named group rather than with every data steward. Review which roles can open a bot's token, generate a new one or change the bot's settings. Confirm how your OpenMetadata version records those actions, since you will need that record during an incident review. Keep the group small enough that its membership can be reviewed in one sitting.
Log and review authentication failures
Repeated 401 or invalid-token responses from a pipeline often mean an expired, revoked or misconfigured token, but they can also signal someone probing the API with a stolen credential. Forward the server logs and the ingestion runner logs to your central log store and alert on bursts of failures per bot. Confirm which authentication events the server logs by default in your version and which need extra configuration.
Restrict network paths to the server
Pipeline runners should reach the OpenMetadata server only on the ports and routes it needs, from known subnets or service accounts, rather than from any host with a route to the internal network. Place the server behind your ingress or load balancer with your own TLS termination, and block direct access to the admin port from user networks. Confirm which admin and metrics endpoints your deployment exposes, since the security documentation describes the trust boundaries you must map to your firewall rules.
Record rotation dates and owners
Every bot token and the signing key should have a named owner, an issue date, a planned rotation date and the list of pipelines that depend on it. Without this register, a rotation becomes guesswork and a forgotten token keeps working long after its pipeline is retired. Review the register on a fixed schedule and remove bots whose pipelines no longer exist. Rotation steps for the signing key and bot tokens are covered in the sibling procedures on this page.
What to confirm before you rotate or change authentication
This table lists the questions to answer for your own OpenMetadata version before changing signing keys, token lifetimes or auth mode. Each row names where the answer should come from, so you can close it in release notes, the security docs or a non-production test before anything changes in production.
| Question to answer | Why it matters for rotation | Where to get the answer |
|---|---|---|
| Does the installed version accept more than one valid signing key at once? | Without overlap, every running ingestion job and API client fails at the moment the key changes. | Release notes for your exact version, then a test in a non-production environment with two keys configured |
| How long do issued bot and user tokens last, and can you set the lifetime? | Short lifetimes force more frequent token replacement in pipeline secrets and scheduled jobs. | Security docs for your version, plus the token settings visible in your admin configuration |
| Can SSO sign-in and bot tokens coexist on the same server? | OpenMetadata does not support multiple authentication mechanisms at once, so the bot path may need a different design. | Security docs, confirmed against your configured authentication mode in a test deployment |
| How do the Python SDK and your ingestion images read a changed token? | Pipelines often keep the token in a secret or image config, so a changed value may need a rebuild or redeploy. | SDK and ingestion image documentation for your version, plus a test run of one pipeline after a token change |
| Where is each bot token stored, and who can read it? | Tokens in orchestrator variables, Kubernetes secrets or CI settings each need their own update step. | Your own secrets inventory and the deployment documentation for your chosen install method |
| What does a rollback look like if the new key or token fails? | A rollback may require restoring the previous key, reissuing tokens or rerunning a stopped pipeline. | Your written rollback procedure, rehearsed in a non-production environment before the change window |
| Does the upgrade or migration path change the key or token format? | Version changes can alter authentication behavior, so a key change mixed with an upgrade is harder to diagnose. | The release notes for the target version, including any breaking change list, read before scheduling |
How much effort do JWT and bot token fixes take?
How much more effort is a planned key rotation than a one-off diagnosis?
A one-off diagnosis is usually a bounded investigation: read the server logs, identify which token or signing key a failing client is presenting, and confirm whether the fault is an expired bot token, a key mismatch or a configuration change. A planned rotation covers more ground because it touches every pipeline and API client that holds a bot token, changes the secret store entries, and needs a test run before production. The rotation carries more effort, mainly from coordinating pipeline owners and testing each client. Ask a partner to split the quote into the diagnosis and the rotation so you can see which part recurs.
What drives the cost of fixing OpenMetadata bot authentication?
The main drivers are the number of ingestion pipelines and API clients that use bot tokens, how mature your secret store is, how many environments you run, and how strict your change windows and testing rules are. Each pipeline that stores its token in a different place adds investigation and update work. A secret store with a clear owner and versioned secrets makes rotation faster. Each extra environment, such as development, staging and production, usually means another round of verification. Ask for the effort per pipeline and per environment in the written quote.
Can our internal team fix JWT and bot token errors without a partner?
Often yes, provided the team can read OpenMetadata server logs, knows where each pipeline stores its bot token, and has a test instance that matches production closely enough to prove a change works. The harder cases involve a signing key change that affects every client at once, or a version upgrade that changes how tokens are validated. Those are where a second pair of hands helps most. Decide early which tasks your team owns, such as updating secrets and checking pipeline runs, and which you want a partner to plan and verify.
What access does a partner need to diagnose or rotate OpenMetadata tokens?
A partner needs read access to the OpenMetadata server logs and the relevant configuration, access to the secret store entries that hold bot tokens and signing key references, and a named contact for each pipeline or client owner who can confirm what runs when. A test instance at the same OpenMetadata version is needed to verify changes before production. Grant the smallest set of permissions that covers these items, and confirm in writing how access is recorded and removed at the end of the engagement.
How long should we plan the rotation window for?
The window depends on how many pipelines and clients hold bot tokens, whether each one can be updated without a restart, and how many environments must be verified in order. Start by listing every consumer of each token, then schedule a window for each environment and a fallback period in case a client fails. Duration is not a fixed number. Ask the partner to show the planned steps, the dependencies between them and the rollback point, and confirm those timings in the written plan before you commit to a date.
Do the OpenMetadata version and deployment type change the effort?
Yes. The version determines how signing keys and token validation behave and whether an upgrade is needed alongside the fix, so confirm the exact release and any breaking changes listed in its release notes before planning. The deployment type matters too: a Kubernetes cluster, a bare metal server and a Docker trial each store configuration and secrets differently and change how restarts are performed. Ask the partner to confirm in writing which version and deployment type the estimate assumes and what changes if either differs.
What does a fixed-scope quote for token work include?
A fixed-scope quote should name the systems in scope, the list of pipelines and clients covered, the environments, the deliverables such as a diagnosis note or a rotation runbook, and the testing steps. It should also state what is excluded, such as upgrades, changes to source system credentials or work on unrelated connectors, and what the client must provide. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and ongoing support is available as a separate retainer. Ask for the exclusions and the change process in the same document.
How DeployOpen scopes and delivers OpenMetadata authentication fixes
DeployOpen starts with a written scope that names the failing clients, the token types in use and the systems that depend on them. We then diagnose, fix and rotate keys in your own infrastructure, so ingestion and API clients resume without surprises.
How we scope
- Inventory every ingestion pipeline, script and API client that presents a bot or user JWT to OpenMetadata.
- Record where each token is stored, which scheduler or secret store reads it, and who owns each consumer.
- Agree in writing which errors are in scope, the environments covered and the retest criteria before work starts.
How we build
- Reproduce the failing authentication path in a non-production environment that matches your deployment.
- Check the JWT signing key configuration, token expiry and bot configuration against your documented setup.
- Stage the key rotation order so pipelines receive new bot tokens before the old signing material is retired.
How we hand over
- Deliver a runbook covering diagnosis steps, rotation sequence, rollback steps and the owner of each token.
- Document every changed configuration key, secret location and dependent pipeline in a short change record.
- Walk your platform and data teams through a successful ingestion run and a failed-token test.
How we support
- Offer ongoing support and upgrades as a retainer for teams that rotate keys on a recurring schedule.
- Re-check authentication after each OpenMetadata upgrade, since release changes can affect bot and token behavior.
- Confirm retainer scope, response expectations and included retests in the written agreement before work starts.

