{"id":22462541,"url":"https://github.com/commonjava/indy-metadata-maintainer","last_synced_at":"2025-08-15T14:07:54.210Z","repository":{"id":138550237,"uuid":"233141942","full_name":"Commonjava/indy-metadata-maintainer","owner":"Commonjava","description":"Maintain (aggregated) metadata files in Indy repository manager - initially targeting integration with the PNC build system","archived":false,"fork":false,"pushed_at":"2020-01-10T22:42:11.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T14:21:08.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Commonjava.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-10T22:38:20.000Z","updated_at":"2020-01-10T22:42:12.000Z","dependencies_parsed_at":"2023-05-24T17:30:22.299Z","dependency_job_id":null,"html_url":"https://github.com/Commonjava/indy-metadata-maintainer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Commonjava/indy-metadata-maintainer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commonjava%2Findy-metadata-maintainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commonjava%2Findy-metadata-maintainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commonjava%2Findy-metadata-maintainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commonjava%2Findy-metadata-maintainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Commonjava","download_url":"https://codeload.github.com/Commonjava/indy-metadata-maintainer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commonjava%2Findy-metadata-maintainer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270579613,"owners_count":24610044,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-06T09:10:09.178Z","updated_at":"2025-08-15T14:07:54.168Z","avatar_url":"https://github.com/Commonjava.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PNC / Indy Metadata Cleanup Utility\n\nThis utility will lookup the output artifacts for one or more builds from the PNC build system, convert them into Maven metadata paths, and issue a series of DELETE requests to a selected set of repositories or groups in the Indy repository manager.\n\nThis is sometimes necessary after a major upgrade or data migration (or when deploying new features) to cope with stale metadata. Also, at times, metadata may become stale as a result of network failures with one or more service integration points. This should help remediate the problem.\n\n## Installation - Localhost\n\nYou can setup a virtualenv, install / upgrade `pip`, and then install the cleanup utility using the following shell script:\n\n```bash\n$ ./setup.sh\n```\n\n## Configuration\n\nConfiguration happens using an environment YAML file, which is supplied as argument #1 in the command-line execution:\n\n```bash\n$ pnc-clear-metadata /path/to/env.yml BUILD_ID1 BUILD_ID2 ...\n```\n\nAt a minimum, you'll need to provide URLs for PNC and Indy:\n\n```yaml\nindy-url: http://indy.psi.redhat.com\npnc-url: http://orch.psi.redhat.com\t\n```\n\nThis utility can authenticate DELETE requests using an OAuth system that PNC and Indy share. To enable this, you'll need to add a `sso` section to your environment configuration:\n\n```yaml\nindy-url: http://indy.pnc.somedomain.corp\npnc-url: http://orch.pnc.somedomain.corp\n\nsso:\n  enabled: true\n  url: https://keycloak.somedomain.corp\n  realm: keycloak-realm-name\n  grant-type: password\n  client-id: my-keycloak-client-id\n  client-secret: aaaabbbb-eeee-9999-0000-asdfadfadsfad\n```\n\nBy default, this utility will clear metadata paths from a group called `builds-untested` (`maven:group:builds-untested`). If you want to override this, maybe so you can add more targets, you can do that with the following YAML snippet:\n\n```yaml\nindy-url: ...\npnc-url: ...\n\nclear-stores:\n  - maven:group:builds-untested\n  - maven:group:static-builds\n  - maven:group:my-special-builds\n\n...\n```\n\n## Execution\n\nExecution is pretty simple, as noted in the beginning of the Configuration section above:\n\n```bash\n$ pnc-clear-metadata /path/to/env.yml BUILD_ID1 BUILD_ID2 ...\n```\n\nYou can also print the help screen using:\n\n```bash\n$ pnc-clear-metadata --help\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommonjava%2Findy-metadata-maintainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommonjava%2Findy-metadata-maintainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommonjava%2Findy-metadata-maintainer/lists"}