Skip to content

Prepare repo for public publishing under the DFINITY org - #67

Merged
aterga merged 6 commits into
mainfrom
claude/dfinity-repo-publishing-4bv23x
Jul 20, 2026
Merged

aterga merged 6 commits into
mainfrom
claude/dfinity-repo-publishing-4bv23x

Conversation

@aterga

@aterga aterga commented Jul 20, 2026 •

Copy link
Copy Markdown
Collaborator

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)

  • No secrets, .env, .pem/.key, or credential files. secret/token grep hits are OAuth code; internal-IP hits are SSRF-defense allowlists and test vectors.
  • Deploy config uses GitHub Actions secrets + placeholders ([email protected], mcp.example.com) — nothing hardcoded.
  • All external URLs are public IC infra, well-known apps, the project's own public beta endpoint, or test/example domains.

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 the dfinity org; until the move, GitHub shows a "team has no access" notice for it (expected, clears on transfer).
  • CODE_OF_CONDUCT.md enforcement 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 (a contact_link URL must be absolute, which would break after an org move). GitHub auto-surfaces SECURITY.md; just enable Private vulnerability reporting in repo settings after the move.

Process steps the owning team still owns (from the policy — not code)

  • Confirm the owning team (@dfinity/identity), contribution mode, and license.
  • Assess and record the risk level (LOW / MEDIUM / HIGH) in the Jira ticket. LOW → self-approve via the ProdSec scan guide; MEDIUM/HIGH → request review in #eng-prodsec.
  • Create an Opensource issue on the Jira Opensource board + a thread in #opensourceandlicencing.
  • Collect approvals: EM of the owning team, Product Security, Senior Director of Engineering (Björn Tackmann).
  • Enable branch protection + four-eyes reviews; restrict admin/write/release ACLs to the owning team.
  • If accepting external contributions: PR to go/open-repos and set up the CLA bot (IDX merges at the end of the process).
  • Ask IDX to finalize the repo settings for the approved mode.

Open decisions (not addressed here)

  • Repo/crate naming (imcp2 / mcp-poc) — rename at the org level if desired.
  • Per-file SPDX/copyright headers — not added; add if the team wants them.

Testing

  • cargo verify-project → {"success":"true"} (manifest parses; only metadata + docs changed).

🤖 Generated with Claude Code

https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF

claude added 2 commits July 20, 2026 13:57
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
Comment thread .github/CODEOWNERS Resolved
@aterga
aterga marked this pull request as ready for review July 20, 2026 14:08
Copilot AI review requested due to automatic review settings July 20, 2026 14:08
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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/ISSUE_TEMPLATE/config.yml Resolved
Comment thread CODE_OF_CONDUCT.md Resolved
Comment thread .github/CODEOWNERS Resolved
Comment thread CONTRIBUTING.md Resolved
Copilot AI review requested due to automatic review settings July 20, 2026 14:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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].

Comment thread CONTRIBUTING.md Resolved
…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
Copilot AI review requested due to automatic review settings July 20, 2026 14:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread CODE_OF_CONDUCT.md Resolved
@aterga
aterga merged commit f835ab5 into main Jul 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants