rtk icon indicating copy to clipboard operation
rtk copied to clipboard

License metadata mismatch: README + Cargo.toml claim MIT, but LICENSE file is Apache-2.0

Open nbruzzi opened this issue 7 months ago • 3 comments

Summary

The repository's metadata claims MIT in three places, but the actual LICENSE file at v0.38.0 (and on master) is the Apache License 2.0 verbatim text. As a downstream user adopting rtk into a supply-chain durability process, I caught this during routine SHA256-vs-canonical license verification.

Evidence

Files claiming MIT:

  • README.md:12 — License badge License-MIT-yellow.svg linking to https://opensource.org/licenses/MIT
  • README.md:484 — License section: "MIT License - see LICENSE for details."
  • Cargo.toml:7 — license = "MIT"

Actual LICENSE file (Apache-2.0):

  • File content is the verbatim Apache License 2.0 text
  • Footer reads: "Copyright 2024 rtk-ai and rtk-ai Labs"
  • SHA256 of LICENSE at v0.38.0 (commit 4338f029ec43b69eb959748ec02cd7885200c264): 4044ade9c21d8b084d3d16a03375cf3b7e166b946a327bb37a3fbbdb53287cfd
  • For comparison, canonical SPDX MIT text SHA256: b05785f9f18e6716bab63424b11454513b9943a222595b70411009202fc592b5 — byte-different from rtk's LICENSE file

GitHub's own auto-detect agrees with the file content:

$ gh api repos/rtk-ai/rtk --jq '.license'
{
  "key": "apache-2.0",
  "name": "Apache License 2.0",
  "spdx_id": "Apache-2.0",
  ...
}

Possible explanations

  1. The license was changed mid-project (perhaps when rtk-ai Labs was attributed in the LICENSE footer), but the README.md badge + License section + Cargo.toml metadata were never updated to match.
  2. The project was originally forked from an MIT-licensed source and the README/Cargo.toml claims were carried over without being reconciled when the LICENSE was replaced.
  3. A deliberate dual-license intent (least likely — no documentation supports it).

Why this matters for downstream users

The legally operative license is whatever the LICENSE file says (Apache-2.0). Downstream tools auto-detect from the LICENSE file (GitHub does, Cargo's index does, package scanners do), so consumers like Cargo crates.io readers will see Apache-2.0; meanwhile a casual reader of the README or Cargo.toml sees MIT and may make compliance decisions on that incorrect basis. The metadata discrepancy could create estoppel ambiguity in unusual circumstances.

Suggested action

Reconcile the metadata to match the LICENSE file:

  • If Apache-2.0 is the intended license (which the file content + GitHub auto-detect both indicate):
    • Update the README.md badge link + alt-text to Apache-2.0
    • Update the README.md License section text
    • Update Cargo.toml license = "Apache-2.0"
  • If MIT is the intended license: replace the LICENSE file content with the canonical MIT text and update the copyright footer accordingly.

Either path resolves the discrepancy; the file-vs-metadata mismatch is what creates the ambiguity. Happy to open a PR for the README + Cargo.toml metadata change once you confirm which license is intended.

Thanks for rtk — useful tool. The supply-chain due diligence we ran on it (LICENSE SHA256 verification, source-level network/telemetry recon, mirror + binary archive + version pin per a 4-layer durability pattern we've codified) caught this discrepancy on first application — pleased to report the rest of the project metadata + behavior matches the README's claims faithfully.

nbruzzi avatar May 03 '26 16:05 nbruzzi

wshm · Automated triage by AI

🔍 Automated Triage

📋 Category docs
🟠 Priority high
🎯 Confidence 97%

Summary

License metadata mismatch: README and Cargo.toml claim MIT but LICENSE file is Apache-2.0 — reconcile metadata to match actual license file

This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

📁 Relevant files
  • LICENSE
  • README.md
  • Cargo.toml

Triaged automatically by wshm · This is an automated analysis, not a human review.

pszymkowiak avatar May 27 '26 12:05 pszymkowiak

This issue has been automatically marked as stale due to 90 days of inactivity. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet.

rtk-release-bot[bot] avatar Sep 03 '26 15:09 rtk-release-bot[bot]

Closing as a duplicate of #1064, which tracks the same problem and is now fixed (PR #1333). Please comment on #1064 or open a new issue with a fresh reproduction if you still see this on the latest version.

KuSh avatar Sep 05 '26 12:09 KuSh