{"id":19209520,"url":"https://github.com/redsoftwaresystems/vault-search-replace","last_synced_at":"2025-11-14T11:01:18.196Z","repository":{"id":259045396,"uuid":"873740625","full_name":"RedSoftwareSystems/vault-search-replace","owner":"RedSoftwareSystems","description":"Simple Python Script to Search (and replace) values in vaults","archived":false,"fork":false,"pushed_at":"2024-11-18T21:22:37.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T18:38:42.261Z","etag":null,"topics":["python","utility","vault"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedSoftwareSystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-16T16:30:53.000Z","updated_at":"2024-10-21T14:37:55.000Z","dependencies_parsed_at":"2024-10-22T20:17:57.113Z","dependency_job_id":null,"html_url":"https://github.com/RedSoftwareSystems/vault-search-replace","commit_stats":null,"previous_names":["redsoftwaresystems/vault-search-replace"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedSoftwareSystems%2Fvault-search-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedSoftwareSystems%2Fvault-search-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedSoftwareSystems%2Fvault-search-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedSoftwareSystems%2Fvault-search-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedSoftwareSystems","download_url":"https://codeload.github.com/RedSoftwareSystems/vault-search-replace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240281388,"owners_count":19776499,"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":["python","utility","vault"],"created_at":"2024-11-09T13:31:34.111Z","updated_at":"2025-11-14T11:01:18.191Z","avatar_url":"https://github.com/RedSoftwareSystems.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vault-search-replace\nSimple Python Script to Search (and replace) secrets content in hashicorp vault.\n\n## Rationale\nRecently, I have come across the fact that no API allows to simply search for **_values within secrets_**.\nThe specific use case I am working on is to change database connection strings for java based microservices.\n\n## Running the script\nBest option is to install [uv](https://docs.astral.sh/uv/). After that you can run the script with \n\n`uv tool vault_search_replace.py`\n\nThe script has [inline metadata](https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies) and will run without installation.\n\n## Usage\n\n```shell\nvault_search_replace.py [OPTIONS] \n                      STRING_TO_SEARCH \n                      VAULT_NAMESPACE\n                      VAULT_BASE_URL \n                      VAULT_ACCESS_TOKEN\n                      [REPLACEMENT_STRING]\n```\n### Command Line Parameters:\n\n#### Required:\nstring_to_search\nvault_namespace\nvault_base_url\nvault_access_token\n\n#### Optional\nstring_to_replace\n\n#### Options\n--no-dry-run - confirm the execution\n\nWithout the (optional) replace_string argument, the command will execute a (string) search for _search_string_.\nWith the replace argument, the command always creates a new secret version. By default, it performs a dry-run—showing the changes without applying them. To actually apply the changes to the secrets, the **--no-dry-run** option must be passed.\n\nAs of this release, the search is very simple (python **str.find** function). ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsoftwaresystems%2Fvault-search-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredsoftwaresystems%2Fvault-search-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsoftwaresystems%2Fvault-search-replace/lists"}