Docs: update move commands (#28900)

- Add a namespace example for secrets move
- Add a namespace example for auth method move
- Add post-move considerations for both
This commit is contained in:
Brian Shumate
2024-11-14 10:51:35 -05:00
committed by GitHub
parent d211f47d9e
commit bb5ce48eac
2 changed files with 29 additions and 0 deletions

View File

@@ -28,7 +28,21 @@ Move the existing auth method at ns1/approle/ to ns2/new-approle/:
$ vault auth move ns1/auth/approle/ ns2/auth/new-approle/
```
Move the existing auth method `auth/userpass` to the `education/certification/approle` namespace.
```shell-session
$ vault auth move auth/userpass education/certification/auth/userpass
```
## Usage
There are no flags beyond the [standard set of flags](/vault/docs/commands)
included on all commands.
## Post-move considerations
Each namespace has its own policies, auth methods, secrets engines, tokens,
identity entities and groups. You must consider the following after moving a mount across namespaces:
- Necessary policies exist in the target namespace
- Entities and groups might need updates after an auth method move

View File

@@ -28,7 +28,22 @@ Move the existing secrets engine at ns1/secret/ to ns2/kv/:
$ vault secrets move ns1/secret/ ns2/kv/
```
Move the existing secrets in `team-vault` to the `vault-edu/` namespace.
```shell-session
$ vault secrets move team-vault \
vault-edu/team-vault
```
## Usage
There are no flags beyond the [standard set of flags](/vault/docs/commands)
included on all commands.
## Post-move considerations
Each namespace has its own policies, auth methods, secrets engines, tokens,
identity entities and groups. You must consider the following after moving a mount across namespaces:
- Necessary policies exist in the target namespace
- Entities and groups might need updating after an auth mount migration