{"id":17489350,"url":"https://github.com/igorbrites/vault-migrator","last_synced_at":"2025-03-28T16:17:25.790Z","repository":{"id":64303063,"uuid":"245232383","full_name":"igorbrites/vault-migrator","owner":"igorbrites","description":"Simply migrate a Vault path from a backend to another!","archived":false,"fork":false,"pushed_at":"2020-03-19T14:54:48.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T16:34:21.981Z","etag":null,"topics":["vault"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igorbrites.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-05T17:56:42.000Z","updated_at":"2021-02-23T17:32:40.000Z","dependencies_parsed_at":"2023-01-15T09:45:22.559Z","dependency_job_id":null,"html_url":"https://github.com/igorbrites/vault-migrator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbrites%2Fvault-migrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbrites%2Fvault-migrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbrites%2Fvault-migrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbrites%2Fvault-migrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igorbrites","download_url":"https://codeload.github.com/igorbrites/vault-migrator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246059336,"owners_count":20717085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vault"],"created_at":"2024-10-19T05:24:37.579Z","updated_at":"2025-03-28T16:17:25.766Z","avatar_url":"https://github.com/igorbrites.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vault Migrator\n\nSimply migrate a [Vault](https://www.vaultproject.io/) path from a backend to another!\n\n## Command line\n\n```\nUsage: vault-migrator [args]\n\nFirst you must define the environment variables bellow:\n  ORIGIN_VAULT_TOKEN\n        The token with permittion to read the path to be migrated\n  DESTINATION_VAULT_TOKEN\n        The token with permittion to write in the migrated path\n\nArgs:\n  -destination-addr string\n        The Vault Address of the backend that will receive the migration\n  -destination-is-kvv2\n        Whether the destination backend is in KV-V2 format\n  -origin-addr string\n        The Vault Address of the backend to be migrated\n  -origin-is-kvv2\n        Whether the origin backend is in KV-V2 format\n  -origin-path string\n        The path to be migrated (no need to pass \"data/\" when using KV-V2) (default \"secret/\")\n  -overwrite\n        Whether to overwrite the path on destination, if it already exists\n```\n\n## Example\n\nTo migrate an generic old backend to a new one using KV-V2:\n\n```\n$ vault-migrator -origin-addr=https://my-old-vault.example.com -origin-path=secret/ -destination-addr=https://my-new-vault.example.com -destination-is-kvv2\nStarting migration of secret/\n\nListing \"secret/\"\nListing \"secret/my-secret-path/\"\nListing \"secret/my-secret-path/the-subpath/\"\nCopying key \"secret/my-secret-path/the-subpath/123\" to \"secret/data/my-secret-path/the-subpath/123\"\nKey \"secret/my-secret-path/the-subpath/123\" copied to \"secret/data/my-secret-path/the-subpath/123\" successfully\nCopying key \"secret/my-secret-path/the-subpath/1234\" to \"secret/data/my-secret-path/the-subpath/1234\"\nKey \"secret/my-secret-path/the-subpath/1234\" copied to \"secret/data/my-secret-path/the-subpath/1234\" successfully\nCopying key \"secret/my-secret-path/the-subpath/12345\" to \"secret/data/my-secret-path/the-subpath/12345\"\nKey \"secret/my-secret-path/the-subpath/12345\" copied to \"secret/data/my-secret-path/the-subpath/12345\" successfully\nCopying key \"secret/my-secret-path/the-subpath/14265\" to \"secret/data/my-secret-path/the-subpath/14265\"\nKey \"secret/my-secret-path/the-subpath/14265\" copied to \"secret/data/my-secret-path/the-subpath/14265\" successfully\nListing \"secret/my-secret-path/another-subpath/\"\nCopying key \"secret/my-secret-path/another-subpath/123\" to \"secret/data/my-secret-path/another-subpath/123\"\nKey \"secret/my-secret-path/another-subpath/123\" copied to \"secret/data/my-secret-path/another-subpath/123\" successfully\nCopying key \"secret/my-secret-path/another-subpath/1234\" to \"secret/data/my-secret-path/another-subpath/1234\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbrites%2Fvault-migrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorbrites%2Fvault-migrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbrites%2Fvault-migrator/lists"}