{"id":51177001,"url":"https://github.com/samuelmarks/cdd-publisher","last_synced_at":"2026-06-27T05:00:13.714Z","repository":{"id":365161756,"uuid":"1269701728","full_name":"SamuelMarks/cdd-publisher","owner":"SamuelMarks","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-27T00:42:50.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-27T02:11:27.536Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamuelMarks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-15T02:41:17.000Z","updated_at":"2026-06-27T00:41:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/SamuelMarks/cdd-publisher","commit_stats":null,"previous_names":["samuelmarks/cdd-publisher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SamuelMarks/cdd-publisher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fcdd-publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fcdd-publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fcdd-publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fcdd-publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamuelMarks","download_url":"https://codeload.github.com/SamuelMarks/cdd-publisher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fcdd-publisher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34841990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"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":"2026-06-27T05:00:12.874Z","updated_at":"2026-06-27T05:00:13.658Z","avatar_url":"https://github.com/SamuelMarks.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdd-publisher\n\n\u003e Background worker and publisher service for the `cdd` ecosystem.\n\n[![CI](https://github.com/SamuelMarks/cdd-publisher/actions/workflows/ci.yml/badge.svg)](https://github.com/SamuelMarks/cdd-publisher/actions/workflows/ci.yml)\n![Test Coverage](https://img.shields.io/badge/coverage-100%25-success.svg)\n![Doc Coverage](https://img.shields.io/badge/docs-100%25-success.svg)\n[![License](https://img.shields.io/badge/license-Apache--2.0%20OR%20MIT-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n`cdd-publisher` is an asynchronous worker node responsible for pushing generated software development kits (SDKs) to external package registries (npm, PyPI, Cargo, etc.).\n\n## Ecosystem Integration\nWhile users interact primarily with the [CDD Web UI](../cdd-web-ui)—the central graphical interface for configuring, generating, and reviewing SDKs—`cdd-publisher` operates entirely in the background. When a user triggers a release from the Web UI, the request flows through the control plane to the publisher queue. This architecture ensures that slow, network-dependent registry uploads do not bottleneck the frontend experience or the core generation engine.\n\n## Features\n- **Asynchronous Execution:** Listens to event queues for publish requests.\n- **Registry Integration:** Orchestrates package manager commands safely and consistently.\n- **Secure Handling:** Receives decrypted secrets in-memory just-in-time to perform registry authentication.\n- **Audit Logging:** Reports the success or failure of release events back to the control plane.\n\n## Prerequisites\n\n- **Rust** (Edition 2024 via the `cargo` toolchain)\n- **Redis** server for the event queue broker\n- **Python 3** (for local development doc checks)\n- **Pre-commit** (for Git hooks)\n\n## Getting Started\n\n### 1. Start the Event Broker (Redis)\nYou can start a local development Redis server on port 63799:\n```bash\nredis-server --port 63799\n```\n\n### 2. Run the Publisher\nExecute the worker node using Cargo:\n```bash\ncargo run\n```\n\n## Development and Contributing\n\nOur codebase enforces 100% documentation coverage and strict linting. \n\n- **Testing:** Run the comprehensive test suite with `cargo test`.\n- **Linting:** We enforce strict Clippy rules. Run `cargo clippy --all-targets --all-features`.\n- **Pre-commit:** Install pre-commit hooks to ensure code quality before pushing:\n  ```bash\n  pre-commit install\n  ```\n- **Documentation Coverage:** Ensure all public and internal items are documented. You can check for missing docs using the provided utility:\n  ```bash\n  python check_docs.py\n  ```\n\n## Deployment\n\nThe project includes Dockerfiles for containerized deployment:\n- `alpine.Dockerfile`: For a minimal, musl-based deployment.\n- `debian.Dockerfile`: For glibc-based deployment.\n\n## Architecture\n\nFor more deep-dive technical details on constraints, security, and internal workflows, refer to the [ARCHITECTURE.md](ARCHITECTURE.md).\n\n---\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttps://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fcdd-publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelmarks%2Fcdd-publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fcdd-publisher/lists"}