When teams need to move OpenBao mounts between namespaces
Teams usually need to move an OpenBao mount when an organization is reorganized, when a tenant is split out into its own namespace, or when a secrets engine or auth method was created in the wrong namespace in the first place. OpenBao handles this with the sys/remount endpoint, which moves a mount within a namespace tree and runs asynchronously, returning a migration ID you poll at sys/remount/status. A mount is the unit being moved: it is either a secrets engine holding secrets, such as a key/value store or a database engine, or an auth method holding the login configuration and identities that users and machines authenticate against. Because the mount's data and configuration move with it, the operation is a relocation, not a copy. The old path stops serving requests once the move completes, so any client, policy or pipeline that references the previous path must be planned for before you start.
Before you schedule a move, confirm the namespace boundaries with the official mount migration documentation, which is the authoritative source for how the operation behaves. The source and destination namespaces must be the namespace in which sys/remount is called or a child of it, so a move between sibling tenants usually has to be run from a common parent. Plan the cutover around the lease behavior: a remount revokes existing leases on the mount. For a secrets engine, that means dynamic credentials issued from it are revoked, and for an auth method, the tokens issued through it are revoked. Ask your team to inventory active leases and tokens on the mount, identify the consumers that will need to log in again or request new credentials, and confirm how long revocation takes on a mount with many leases in your environment. Read the mount migration documentation before you test the procedure in a non-production cluster.
Which move fits which situation
This table compares four ways to handle a mount that needs to change location, from a simple rename to building a new mount beside the old one. Read each row for when it fits and what it costs in lease revocation, token churn and client changes. Source and destination must both be the calling namespace or its children, so check that before choosing a move.
| Option | When it fits | Main trade-off | Confirm before choosing |
|---|---|---|---|
| Rename within the same namespace | The mount path is wrong but the data should stay in the same namespace and team boundary | Existing leases and tokens on the mount are revoked, and clients must use the new path | Which policies, roles and automation reference the old path |
| Move a secrets mount to a child namespace | A team or tenant should own the secrets and administer them locally | Dynamic credentials are revoked, and policies in the parent may stop applying to the moved data | Who will hold admin rights in the child and how existing applications will reach the new path |
| Move an auth mount to a parent or sibling reachable from the caller | Login methods such as AppRole or OIDC should be shared more broadly or reorganized under a new hierarchy | All tokens issued by that auth mount are revoked, so logins must run again | That the calling namespace has rights over both source and destination, and when logins can be scheduled |
| Leave the mount in place and build a new one | Consumers need a controlled cutover, or the move involves many leases or tokens that cannot be revoked at once | Two mounts run side by side, so secrets must be written to both or copied, and governance doubles for a period | How the copy will be verified and when the old mount will be removed |
What happens to leases and tokens during a remount
A remount is not a simple rename. The documented behavior revokes the leases and tokens tied to the mount being moved, so the effects land on running applications and automation. The cards below cover what is revoked, why the timing matters, and what to verify in a test cluster before any production move.
Leases on a secrets mount
A remount revokes existing leases on the secrets mount. For a database or other dynamic secrets engine, that means the credentials issued through it are revoked, not just their paths changed. Before a move, list which applications hold leases on that mount and confirm which of them depend on credentials that will be revoked. Test this in a non-production cluster with a representative mount, since the exact revocation behavior should be confirmed against your OpenBao version.
Mount migration docsTokens on an auth mount
When an auth mount is moved, tokens issued through that mount are revoked, so every client logged in through it must authenticate again. For AppRole, Kubernetes or OIDC login paths, this means services and operators lose their session at the moment of the move. Map each auth mount to the workloads that authenticate through it, and plan the re-login path for each one before the remount starts.
Time driven by lease count
Revocation is not instantaneous on mounts with many leases. The documentation notes that it can take time when a mount holds a large number of leases, and the remount is asynchronous, so you poll its status with the migration ID rather than assuming completion. Ask your team to count active leases per mount ahead of the window, and schedule the move with room to watch progress rather than assuming the operation is quick.
What applications see
Once a credential is revoked, the application holding it receives authentication or permission errors on its next request. Connection pools may keep failing until they fetch new credentials, and long-running jobs can fail mid-task. Illustrative example: a batch job that reads a database password from a dynamic role may stop partway through its run. Confirm how your applications refresh credentials, whether through OpenBao Agent or a custom client, and test the refresh path under revocation.
Verifying the effects in a test cluster
Because the exact effects depend on mount type, version and configuration, the documented behavior should be reproduced before production use. Build a test cluster with the same engines, auth methods and lease volume you expect, run the remount, and record which leases and tokens disappear, how long revocation takes, and how each client recovers. Use the results to set the production change window and the rollback steps, and keep the migration status output as evidence for your change record.
Running a namespace move with a migration ID
This sequence moves a secrets or auth mount to a new path inside the same namespace tree, using sys/remount and its status endpoint, while keeping track of what the move revokes and confirming that applications still work afterward. Each step ends with a check that tells the operator whether to continue.
Confirm namespace paths and policies
The operator confirms the source and destination namespace paths and checks that both sit in the namespace where sys/remount will be called or in its child namespaces, which is a documented requirement. Next, they review the policies that reference the current mount path, since those paths will no longer match after the move. The step is complete when every source and destination path is written down and each policy that names the old path has an owner and a planned update.
Inventory leases and dependent applications
Because a remount revokes existing leases on the mount, the operator lists the dynamic secrets on a secrets mount or the tokens issued by an auth mount, and identifies the applications, pipelines and operators that depend on them. Ask the application owners to confirm how each consumer will reacquire credentials after revocation and how long a restart or re-login takes in their environment. The step is complete when each dependent consumer has a named owner and a documented re-authentication path.
Verify permission in the calling namespace
The operator confirms that the token used to call sys/remount holds the capability it needs in the namespace from which the call is made, and that the destination namespace accepts the move. They test this with a non-production mount first where possible, so a permissions gap surfaces before any live path changes. The step is complete when a dry run on a test mount returns the expected result and the production token's policy has been reviewed by a second person.
Call sys/remount and record the migration ID
The operator submits the remount request from the calling namespace with the source and destination paths. Because the endpoint is asynchronous, the response returns a migration ID rather than a final result, and that ID is the only handle for checking progress. The operator writes the ID, the time of the request and the change ticket into the change record. The step is complete when the ID is stored in a location the rest of the change team can read.
Poll sys/remount/status until complete
The operator queries sys/remount/status with the recorded migration ID and repeats the check until the status shows the move has finished. Lease revocation on large mounts can take time, so the operator should watch for progress rather than assume the move has stalled. If the status shows an error or does not change, they stop, capture the status output and escalate before making another change. The step is complete when the status reports completion with no error.
Verify mount paths, policies and application access
The operator lists mounts in the destination namespace to confirm the new path exists and the old path is gone, then checks that the policies updated in the earlier step now match the new path. They run a read or login from each dependent application in a controlled test, using the re-authentication path documented earlier. The step is complete when the mount path, policy references and a sample of application access all work, and the results are signed off by the application owners.
Document the outcome and plan for rollback
The operator records the final mount paths, the migration ID, any revoked leases and the consumers that needed re-authentication in the change record. A remount should not be assumed reversible. Rolling back means a second remount with its own revocation effects, so the team should agree in advance on a tested rollback plan, or accept that recovery is a forward fix, before the change begins. The step is complete when the record is filed and the rollback decision is written down.
Planning the cutover around revoked credentials
The cutover plan for a remount has to start from one fact: moving a mount revokes the leases that depend on it. Every dynamic secret issued from a secrets mount and every token issued from an auth mount stops working when the move runs, so the change window is also a credential outage window for every consumer that relies on that mount. Before you pick a date, build an inventory of which applications, pipelines and operators read from or authenticate against the source path, and which of those hold leases with long remaining TTLs. A lease inventory taken from the source mount is the input that tells you whether the move is a quiet change or a coordinated outage.
Ask the platform team to provide the inventory, a named owner for each consuming application, and a change window that the owners have agreed to in writing. Owners need to know which secrets will be reissued, whether their agents or sidecars will reacquire them automatically, and what they must do if a workload does not. For dynamic credential consumers such as database roles, confirm that the client library or OpenBao Agent renews or requests a new lease once the old one is gone, and test that path in a non-production namespace first. Static secrets read from a key/value mount are not revoked by the remount, so they belong in the plan as a separate, lower-risk group. Confirm the exact revocation behavior against the OpenBao mount migration documentation for your OpenBao version before you write the runbook.
In a fixed-scope engagement, DeployOpen can build the lease and consumer inventory from the source mount, draft the notification plan and the per-owner reacquisition checklist, rehearse the move in a lower environment, and write the rollback and verification steps around the status endpoint. The client's team still decides the window, approves the owner list and runs the production change, since those decisions depend on business obligations DeployOpen does not hold. Ask any partner to state in the quote which of these items is included, what evidence of rehearsal you will receive, and whether post-move retesting of each consumer is part of the fixed scope or a separate task.
Security considerations when moving mounts
A mount move changes where secrets and auth methods live and revokes what depends on them. The cards below cover the controls that decide whether a move stays planned, attributable and contained to the namespaces you intend to change.
Restrict who can call sys/remount
A remount is a privileged administrative operation, so the policy that allows sys/remount should be granted only to named operators and never to general application or namespace-user tokens. Check which policies in each namespace match sys/remount or broader sys/* paths, and confirm that the source and destination namespaces are reachable only by the administrators who own them. Write the allowed paths down before the change window opens.
Separate the move from its approval
The namespace admin who requests a move should not be the only person who executes it or confirms the result, particularly when the source and destination belong to different teams or customers. Agree on who approves the move, who runs sys/remount, and who polls sys/remount/status and signs off. Where the organization already has change management, record the move as a change with those three roles named.
Confirm audit coverage of the move
Each step of the move, including the initial sys/remount request and every status check, should appear in audit logs with the requesting identity and the mount paths involved. Confirm that at least one audit device is enabled and reachable before the move starts, and that the logs are forwarded to the place your security team reviews. Test that a status check produces a log entry, since the move is only useful as evidence if it is attributable.
Update policies that reference the old path
Policies, identity group mappings, AppRole bindings and CI pipelines often refer to a mount by its path, and those references do not follow the mount automatically. Before the move, list every policy and automation that names the old path and prepare the matching updates for the new path. Plan the cutover so that clients are not left with a path that no longer exists, and confirm the updated policies with a test login before the old references are removed.
Plan for revocation in production
A remount revokes existing leases on the mount, so running applications that hold dynamic database credentials or auth tokens lose access when the move runs. Identify which production workloads depend on the mount, estimate how many leases exist, and schedule the move in a window where applications can renew or reacquire credentials. Ask your team to test the reacquisition path in a non-production namespace first, because the time to revoke many leases can be significant.
Keep moves inside the right boundaries
Source and destination must be the namespace where sys/remount is called or one of its children, so a move cannot reach into unrelated tenants. Confirm the namespace hierarchy before the move and check that no sibling tenant can call the endpoint on your mount. Treat any move that crosses a tenant boundary as a security decision that needs its own review, not as a routine rename.
Questions teams ask before moving OpenBao mounts
Can our own team move an OpenBao mount without a partner?
Yes, a team with OpenBao operators can run sys/remount themselves, because the endpoint is documented and the call itself is short. The harder part is everything around the call: confirming which applications hold leases or tokens on the mount, agreeing a window with their owners, and checking that policies and paths still resolve afterward. Teams that have run the operation before, or that have a small, well-documented estate, often keep it in-house. Teams with many namespaces, shared mounts or no current inventory usually find the preparation takes longer than the command. A partner can take the planning and testing off your team's plate, but your namespace owners still have to approve the change.
What makes an OpenBao mount move take longer?
The main drivers are the number of leases on the mount, the number of applications that depend on those leases or tokens, the policy changes needed afterward, and how many namespaces the move crosses. A remount revokes existing leases on the mount, so a secrets mount with many dynamic credentials takes longer to clear than one with few, and the migration status endpoint is how you watch that progress. Each dependent application needs a plan for re-authenticating or re-reading secrets from the new path. Policies that reference the old path must be rewritten and tested. Moves between child namespaces are usually simpler to scope than moves that touch several branches of a namespace tree.
What does our team need to provide for a mount move?
You need to supply three things before work starts. First, the namespace owners for every source and destination namespace, because they approve the path change and any policy edits. Second, a change window that fits the applications that will lose their leases or tokens. Third, a lease and token inventory for each mount, listing which systems authenticate through it and what dynamic secrets they hold. Also provide read access to the current policies, the auth method configuration and the list of consumers, so the plan reflects what is actually running rather than what the documentation says.
How long will a mount move take in our environment?
The duration depends on your environment, and no general figure applies. It depends on lease counts, how quickly consumers re-authenticate, how many policies need edits, and whether the change runs in one namespace or several. The reliable answer comes from a test run against a copy of your configuration, where you measure how long revocation takes on a representative mount and how long each application needs to recover. Ask any partner to base the schedule on that test and to state which assumptions the estimate depends on. Be cautious of any timeline quoted before the lease inventory exists.
What should a partner quote for an OpenBao mount move include?
A written quote should follow from a written scope and list the work in named parts. Expect the following items:
- Discovery of namespaces, mounts, leases, tokens and dependent applications
- A test move against a non-production copy, with recorded revocation timings
- Policy and path changes, with review by your namespace owners
- The change plan, rollback steps and the window it needs
- Monitoring during the move and checks of the migration status endpoint
- Post-move verification and handover notes for your operators
Ask which items are one-time and which recur, such as a later audit of mount structure, and what is excluded, such as application code changes on the consumer side.
What cost components should we expect when moving mounts?
The cost comes mainly from labor, split between the people who plan and test the move, the people who change policies and consumers, and the people who approve and monitor the window. Your own staff time also counts, including namespace owners and application teams whose services are interrupted. Costs rise with the number of mounts, leases, dependent applications and namespaces, and with the need for a rehearsal. They fall when the inventory is current, when consumers already read secrets through templated paths, and when the move stays inside one namespace branch. Ongoing costs are usually small and tied to follow-up reviews. Ask any quote to separate one-time migration work from recurring support.
What breaks if we move a mount without preparing consumers?
Applications that hold leases or tokens on the moved mount lose them when the remount revokes them, and they may fail until they re-authenticate or read from the new path. Dynamic database credentials that were issued from the old mount stop working, which can cause connection errors across services that share a database. Policies that still name the old path will deny requests, so people may see access errors that look like permission problems. Scheduled jobs that run during the move can fail silently if nobody checks their logs. Preparing consumers, testing recovery and keeping a rollback plan reduce these failures, but they do not remove the need for a change window.
Does DeployOpen issue compliance certificates for an OpenBao mount move?
No. DeployOpen plans, implements and documents the move, and prepares the evidence your compliance team may need, such as the change plan, inventory, test results and verification records. Independent auditors and certification bodies issue any audit reports or attestations, and they decide what evidence they accept. Before the move, ask your auditor which records they expect for access and key-handling changes, and include those requirements in the written scope so the handover package matches what they will review.
How a namespace move flows from request to verification
The move starts with an administrator calling sys/remount from a namespace that contains both the source and destination paths, or from a parent of them. OpenBao returns a migration ID immediately, and the move runs asynchronously while the operator polls sys/remount/status with that ID. Leases on the moved mount are revoked as part of the process, so applications must reacquire credentials at the new path. Check the status until it completes, then confirm that workloads authenticate against the new location.
The sequence of a cross-namespace mount move, from the API call to credential reacquisition.
How DeployOpen scopes and delivers namespace moves
DeployOpen plans OpenBao namespace and mount changes inside your own infrastructure, so the move runs against your clusters, your storage and your network paths rather than a copy of them. Scoping starts with an inventory: which mounts are moving, which namespaces they start and end in, which applications read them through paths that will change, and which leases and tokens will be revoked when the remount runs. The scope, deliverables and timeline are agreed in writing before any work starts, and the written scope states who approves the cutover window and who signs off the post-move verification.
Delivery follows the scoped plan. DeployOpen prepares the source and destination namespace layout, the policies and identity bindings that must exist before the move, and a rollback position for each mount. During the move, the team tracks the asynchronous sys/remount operation through its migration ID and the status endpoint, and records the result for each mount. Afterward, the verification record shows that reads and writes succeed at the new paths, that dependent workloads have re-authenticated, and that the audit trail captures the move. Each step is documented so your own team can repeat or audit it later.
Because a remount revokes existing leases and tokens, the handover includes a plan for the workloads that depend on them, and the exact revocation effect depends on your mount inventory and lease counts, which should be confirmed in your environment before scheduling. Ongoing support after the move, including future namespace changes, upgrades and periodic checks, can be arranged as a retainer. Ask any provider to show you the written scope, the rollback plan and the verification record format before you commit to a date.

