{"id":23376217,"url":"https://github.com/trustedshops-public/python-ansible-vault-rotate","last_synced_at":"2025-04-10T18:42:30.358Z","repository":{"id":65530852,"uuid":"586791292","full_name":"trustedshops-public/python-ansible-vault-rotate","owner":"trustedshops-public","description":"Advanced Python CLI to rotate the secret used for ansible vault inline secrets and files in a project","archived":false,"fork":false,"pushed_at":"2025-03-11T22:57:13.000Z","size":159,"stargazers_count":23,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-24T16:23:35.978Z","etag":null,"topics":["ansible","ansible-vault","cli","python","rotation","tppython-ansible","tsansible"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ansible-vault-rotate/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trustedshops-public.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-09T08:37:36.000Z","updated_at":"2024-12-19T16:36:28.000Z","dependencies_parsed_at":"2023-10-14T17:22:40.750Z","dependency_job_id":"56837a48-0c37-490b-99b7-4f5057b7eb19","html_url":"https://github.com/trustedshops-public/python-ansible-vault-rotate","commit_stats":{"total_commits":52,"total_committers":4,"mean_commits":13.0,"dds":"0.15384615384615385","last_synced_commit":"5c82e3bc35037dc1fde80705cdb9a0dd3301ab6f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustedshops-public%2Fpython-ansible-vault-rotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustedshops-public%2Fpython-ansible-vault-rotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustedshops-public%2Fpython-ansible-vault-rotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustedshops-public%2Fpython-ansible-vault-rotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trustedshops-public","download_url":"https://codeload.github.com/trustedshops-public/python-ansible-vault-rotate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248271910,"owners_count":21075800,"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":["ansible","ansible-vault","cli","python","rotation","tppython-ansible","tsansible"],"created_at":"2024-12-21T17:34:33.568Z","updated_at":"2025-04-10T18:42:30.322Z","avatar_url":"https://github.com/trustedshops-public.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"python-ansible-vault-rotate\n===\n[![GitHub License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/trustedshops-public/spring-boot-starter-keycloak-path-based-resolver/blob/main/LICENSE)\n[![pre-commit](https://img.shields.io/badge/%E2%9A%93%20%20pre--commit-enabled-success)](https://pre-commit.com/)\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/trustedshops-public/python-ansible-vault-rotate/tree/main.svg?style=shield\u0026circle-token=9c1ea1cc46c804b46f457772637c8481717b511a)](https://dl.circleci.com/status-badge/redirect/gh/trustedshops-public/python-ansible-vault-rotate/tree/main)\n[![PyPI version](https://badge.fury.io/py/ansible-vault-rotate.svg)](https://pypi.org/project/ansible-vault-rotate)\n[![codecov](https://codecov.io/gh/trustedshops-public/python-ansible-vault-rotate/branch/main/graph/badge.svg?token=6PJ1GJzIcB)](https://codecov.io/gh/trustedshops-public/python-ansible-vault-rotate)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=trustedshops-public_python-ansible-vault-rotate\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=trustedshops-public_python-ansible-vault-rotate)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=trustedshops-public_python-ansible-vault-rotate\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=trustedshops-public_python-ansible-vault-rotate)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=trustedshops-public_python-ansible-vault-rotate\u0026metric=security_rating)](https://sonarcloud.io/summary/new_code?id=trustedshops-public_python-ansible-vault-rotate)\n\nAdvanced Python CLI to rotate the secret used for ansible vault inline secrets and files in a project\n\n## Features\n\n- Reencrypt vault files\n- Reencrypt inline vaulted secrets\n\n## Installation\n\nIt is strongly recommended to use pipx instead of pip if possible:\n\n```sh\npipx install ansible-vault-rotate\n```\n\nOtherwise you can also use plain pip, but be warned that this might\ncollide with your ansible installation globally!\n\n```sh\npip install ansible-vault-rotate\n```\n\n## Usage\n\n### Rekey given vault secret with new secret specified on CLI\n\n```sh\nansible-vault-rotate --old-vault-secret-source file://my-vault-password \\\n                     --new-vault-secret-source my-new-secret \\\n                     --update-source-secret\n```\n\n## Rekey only specific files (e.g. when using multiple keys per stage)\n\n```sh\nansible-vault-rotate --old-vault-secret-source file://my-vault-password-\u003cstage\u003e \\\n                     --new-vault-secret-source my-new-secret \\\n                     --file-glob-pattern group_vars/\u003cstage\u003e/*.yml \\\n                     --update-source-secret\n```\n\n## Getting help about all args\n\n```sh\nansible-vault-rotate --help\n```\n\n## Development\n\nFor development, you will need:\n\n- Python 3.9 or greater\n- Poetry\n\n### Install\n\n```\npoetry install\n```\n\n### Run tests\n\n```\npoetry run pytest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrustedshops-public%2Fpython-ansible-vault-rotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrustedshops-public%2Fpython-ansible-vault-rotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrustedshops-public%2Fpython-ansible-vault-rotate/lists"}