Repository navigation
Prepare repo for public publishing under the DFINITY org - #67
Conversation
Prepare the repo for publishing as a public open-source project: - LICENSE: Apache-2.0 full text - Cargo.toml: set license, description, readme; publish = false - CONTRIBUTING.md: build/test/PR workflow for the Rust crate + Node dashboard - CODE_OF_CONDUCT.md: Contributor Covenant 2.1 - SECURITY.md: private vulnerability-disclosure policy - .github/CODEOWNERS, PR template, and issue templates - README: add Contributing, Security, and License sections A few DFINITY-specific fields are left as clearly marked placeholders to fill in during review (Code of Conduct contact, security-disclosure contact, CODEOWNERS team). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF
Reconcile the governance files against the DFINITY "Policy for Publishing GitHub Repositories": - LICENSE: copyright holder is "DFINITY Stiftung" (policy mandates this exact name, not "DFINITY Foundation"/"DFINITY LLC") - README: state both the license (Apache-2.0) and the contribution mode, as the policy's preparation checklist requires - Contribution mode set to the policy default: public, no external code contributions (PRs from outside the org are not merged); bug reports and suggestions welcome. Notes the DFINITY CLA requirement if opened later. - CONTRIBUTING.md: reframed for that mode - CODEOWNERS: owner must be a TEAM, not an individual (policy) — placeholder @dfinity/<team> instead of an individual account Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF
The owning team (@dfinity/identity) is now filled in, so drop the stale "replace the placeholder" instruction from the comment. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF
There was a problem hiding this comment.
Pull request overview
Prepares the repository for public publishing under the DFINITY organization by adding standard open-source governance artifacts and updating metadata to align with the stated publishing policy.
Changes:
- Add Apache-2.0 licensing + surface it in repo docs and Rust crate metadata.
- Add governance/security documentation (SECURITY policy, contributing guidelines, code of conduct) and GitHub templates.
- Add CODEOWNERS entry for a DFINITY team.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| SECURITY.md | Adds a vulnerability reporting policy using GitHub private vulnerability reporting. |
| README.md | Adds License + Contribution mode sections. |
| LICENSE | Adds Apache License 2.0 text. |
| CONTRIBUTING.md | Adds contribution-mode statement and maintainer-oriented build/test workflow. |
| CODE_OF_CONDUCT.md | Adds Contributor Covenant 2.1 text (currently with a placeholder contact). |
| Cargo.toml | Adds license/description/readme metadata and sets publish = false. |
| .github/pull_request_template.md | Adds a PR template with testing/checklist items. |
| .github/ISSUE_TEMPLATE/feature_request.md | Adds a feature request issue template. |
| .github/ISSUE_TEMPLATE/bug_report.md | Adds a bug report issue template. |
| .github/ISSUE_TEMPLATE/config.yml | Adds issue chooser config with a security contact link. |
| .github/CODEOWNERS | Adds a CODEOWNERS file pointing to a DFINITY team. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
.github/ISSUE_TEMPLATE/config.yml:5
- The security contact link is hard-coded to the current repo path (aterga/imcp2) and will be incorrect after the repository is moved under the DFINITY org. Add an explicit TODO here (or update to the final org/repo URL before publishing) so it doesn’t get missed.
- name: Security vulnerability
url: https://github.com/aterga/imcp2/security/advisories/new
about: Please report security vulnerabilities privately, not as a public issue. See SECURITY.md.
CODE_OF_CONDUCT.md:63
- The Code of Conduct still contains the placeholder "[INSERT CONTACT METHOD]" for reporting incidents. This should be replaced with a real contact method (e.g., an email alias or intake form) or the file should be removed until that contact is defined, otherwise public readers won’t know how to report violations.
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[INSERT CONTACT METHOD].
…C contact - .github/ISSUE_TEMPLATE/config.yml: drop the hardcoded security-advisory contact link. A contact_link URL must be absolute (repo-relative isn't supported), so it would embed aterga/imcp2 and break after an org move. GitHub auto-surfaces SECURITY.md on the new-issue page and the Security tab's "Report a vulnerability" once private reporting is enabled. - CONTRIBUTING.md: describe the maintainer branch workflow instead of "fork the repository", consistent with the no-external-contributions mode. - CODE_OF_CONDUCT.md: replace the "[INSERT CONTACT METHOD]" placeholder with the owning team (@dfinity/identity) so the enforcement section is actionable. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF
Addresses a review nit about an awkward sentence. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
.github/CODEOWNERS:8
- CODEOWNERS currently assigns ownership to
@dfinity/identity, but the PR description calls this out as a placeholder to be filled with the actual owning team before/after the org move. Hardcoding a potentially-wrong team here risks misrouting reviews once published (or being invalid until the repo is moved).
* @dfinity/identity
Summary
Prepares this repository for publishing under the DFINITY organization, per the Policy for Publishing GitHub Repositories (policy reviewed).
Files added / changed (repo-level policy requirements)
LICENSE— Apache License 2.0. Policy: "we use the Apache license for all cases except when a repository contains DFINITY's patented code" — this PoC has none. Copyright holder is DFINITY Stiftung (the policy mandates this exact name).README.md— states both the license (Apache-2.0) and the contribution mode, as the policy's preparation checklist requires..github/CODEOWNERS— owning team set to@dfinity/identity(per the repo owner's review). Policy: "Only teams may own repositories. Individuals may not own repositories."Cargo.toml—license = "Apache-2.0",description,readme,publish = false(internal binary crate).CONTRIBUTING.md,CODE_OF_CONDUCT.md(Contributor Covenant 2.1),SECURITY.md, PR + issue templates — supporting governance.Contribution mode
Set to the policy default — public, no external code contributions ("locked"): PRs from outside the DFINITY org are not merged. Bug reports and suggestions remain welcome via issues. Opening the repo to external contributions is a separate process (see checklist) and requires the DFINITY CLA.
Pre-publish safety scan (done)
.env,.pem/.key, or credential files.secret/tokengrep hits are OAuth code; internal-IP hits are SSRF-defense allowlists and test vectors.[email protected],mcp.example.com) — nothing hardcoded.Notes on a couple of decisions
.github/CODEOWNERS→@dfinity/identity. This team reference only resolves as a valid code owner once the repo lives under thedfinityorg; until the move, GitHub shows a "team has no access" notice for it (expected, clears on transfer).CODE_OF_CONDUCT.mdenforcement contact routes to the owning team (@dfinity/identity). Swap in a dedicated conduct intake address/form if DFINITY has one, or drop the file (the policy doesn't require it)..github/ISSUE_TEMPLATE/config.yml— no hardcoded security-advisory URL (acontact_linkURL must be absolute, which would break after an org move). GitHub auto-surfacesSECURITY.md; just enable Private vulnerability reporting in repo settings after the move.Process steps the owning team still owns (from the policy — not code)
@dfinity/identity), contribution mode, and license.#eng-prodsec.#opensourceandlicencing.Open decisions (not addressed here)
imcp2/mcp-poc) — rename at the org level if desired.Testing
cargo verify-project→{"success":"true"}(manifest parses; only metadata + docs changed).🤖 Generated with Claude Code
https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF