Skip to content

Relicense the project from Apache-2.0 to GPL-3.0-only starting with 0.8.0 #1583

Description

@smart-ssh-planner

Goal

Starting with release 0.8.0, Smart SSH is licensed under the GNU General Public License, version 3 only (SPDX GPL-3.0-only). Every place in the repository that declares or describes the project license says so consistently. Versions up to and including 0.7.0 stay under Apache-2.0. A lint check makes sure that every dependency license the project allows is compatible with GPL-3.0.

Decided by the maintainer (2026-11-25): license GPL-3.0-only (not "or later"), effective with 0.8.0. The copyright holder owns the copyright to all project code in this repository (no outside contributions so far). Third-party code under vendor/ and generated third-party files keep their own licenses. No per-file license headers (same reasoning as ADR 0060).

Context

Current state on develop:

  • LICENSE: full Apache License 2.0 text.
  • NOTICE: product name and the copyright line, no third-party attributions and no Apache wording.
  • Cargo.toml:9: [workspace.package] license = "Apache-2.0". All 13 crates inherit it with license.workspace = true (apps/smart-ssh-community/Cargo.toml and every crates/*/Cargo.toml), so there is one place to change. publish = false is set at the same place.
  • apps/smart-ssh-community/frontend/package.json:5: "license": "Apache-2.0". The root entry of apps/smart-ssh-community/frontend/package-lock.json (line 10) repeats it.
  • deny.toml: [licenses.private] ignore = true (around line 83) skips the crates marked publish = false. So cargo-deny never checks the project's own license against the allow list, and GPL-3.0-only must not be added to allow. The comment there still says license = "Apache-2.0" and "alle 8 Workspace-Crates" (there are 13). scripts/generate-third-party-notices.mjs writes the same private = { ignore = true } into the generated about.toml (around line 184), so cargo-about skips the own crates as well.
  • deny.toml [licenses] allow (the single allow list for Rust and npm, Spec 0099 A1.5): MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, Zlib, Unicode-DFS-2016, Unicode-3.0, Apache-2.0 WITH LLVM-exception, CDLA-Permissive-2.0, MPL-2.0, BSL-1.0, plus the exception sqlcipher-src: blessing, WTFPL. All of them are GPL-3.0-compatible. Bundled C sources: OpenSSL 3.x (openssl-src 300.6.1+3.6.3, Apache-2.0, compatible) and SQLCipher/LibTomCrypt. Nothing checks this compatibility today.
  • apps/smart-ssh-community/tauri.conf.json: the bundle section has no license, licenseFile or copyright. No Windows installer license page, deb/rpm metadata taken from the defaults.
  • In-app texts: the About section of Settings (apps/smart-ssh-community/frontend/src/components/AboutSettings.tsx, locale keys about.*) shows version, build and the third-party licenses dialog. It names no project license, and no test asserts "Apache" for the project's own license. thirdPartyNoticesContent.test.ts:27 and :77-82 assert Apache third-party texts (tauri, Whisper), and those stay. thirdPartyNoticesWorkspace.test.ts uses GPL-3.0-only as an example of a disallowed third-party license, and that also stays.
  • README.md:4 badge "License: Apache 2.0" and README.md:147 (section "Lizenz"): "Smart SSH steht unter der Apache License 2.0 …".
  • Docs: docs/specs/0099-third-party-licenses.md (purpose line and §1 L1–L3: "Das gesamte Repository steht unter der Apache License 2.0", "gilt auch für alle früher veröffentlichten Versionen"), docs/specs/0001-architecture-overview.md:95 ("Die Lizenz des Projekts ist Apache-2.0."), docs/specs/0090-ci-gates-blocking.md A12 (allowed dependency licenses), docs/specs/0070-license-apache-2-0.md (resolved, points to 0099 and ADR 0060), docs/adr/0060-license-apache-2-0.md (status Accepted), docs/specs/INDEX.md:75,104, docs/adr/INDEX.md:66.
  • No license check script in scripts/ other than the notices generator. CI runs cargo deny check licenses sources bans (.github/workflows/community.yml:277) and npm run lint (apps/smart-ssh-community/frontend/package.json:14, chain of check-* scripts in scripts/). Neither has to change in .github/.
  • Android: apps/smart-ssh-community/gen/android/app/src/main/AndroidManifest.xml declares no license. The Apache headers in gen/android/gradlew, gradlew.bat and the org.apache.tools.ant import in BuildTask.kt belong to third-party code and stay.
  • vendor/russh is a patched copy of a third-party crate (Apache-2.0, per-file headers, PATCH.md). It keeps its license and headers. Apache-2.0 code may be combined into a GPL-3.0 work.
  • CHANGELOG.md:692-694 (the earlier switch to Apache-2.0) is history and stays unchanged.

Requirements

  • LICENSE contains the GPL-3.0 text, byte for byte the same as https://www.gnu.org/licenses/gpl-3.0.txt (674 lines, SHA-256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986), with nothing added or removed.
  • NOTICE keeps the product name and the existing copyright line unchanged and adds: "Smart SSH is licensed under the GNU General Public License, version 3 only (GPL-3.0-only); see LICENSE. Versions up to and including 0.7.0 were released under the Apache License 2.0. The copyright holder may also offer the code under other terms." It contains no other Apache wording.
  • Cargo.toml [workspace.package] license = "GPL-3.0-only". Crates keep license.workspace = true, and no crate declares its own license. vendor/russh/Cargo.toml is unchanged.
  • apps/smart-ssh-community/frontend/package.json "license": "GPL-3.0-only", and the root entry of its package-lock.json matches (npm install --package-lock-only or the same one-line edit; no other lockfile changes).
  • deny.toml: allow stays as it is (GPL-3.0-only is not added). The comment at [licenses.private] names GPL-3.0-only and the correct number of crates (or "all workspace crates"). The comment above allow states that every entry must be GPL-3.0-compatible and names the new check.
  • New check scripts/check-license-compat.mjs (with .d.mts, in the same style as scripts/check-workspace-deps.mjs), run as check-license-compat in the lint chain of apps/smart-ssh-community/frontend/package.json. It reads [licenses] allow and exceptions from deny.toml, with the same parsing as parseAllowList/parseExceptions in generate-third-party-notices.mjs (reuse or export them, don't write a second parser). It fails with a clear message naming each entry that is not on a fixed list of GPL-3.0-compatible SPDX identifiers kept in the script. The list contains exactly the current entries (MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, Zlib, Unicode-DFS-2016, Unicode-3.0, Apache-2.0 WITH LLVM-exception, CDLA-Permissive-2.0, MPL-2.0, BSL-1.0, blessing, WTFPL), each with a short reason. Known incompatible identifiers that must fail include GPL-2.0-only, LGPL-2.1-only, EPL-1.0, EPL-2.0, CDDL-1.0, CDDL-1.1, SSPL-1.0, BUSL-1.1, OpenSSL, SSLeay, Commons-Clause, CC-BY-NC-4.0 and any LicenseRef-*.
  • Each MPL-2.0 crate in Cargo.lock (today cssparser, cssparser-macros, dtoa-short, option-ext, selectors) and each MPL-2.0 npm package in the frontend lockfile is checked for an "Incompatible With Secondary Licenses" notice (MPL-2.0 Exhibit B). The result goes into the ADR. If one carries the notice, stop and report it in the PR instead of merging.
  • apps/smart-ssh-community/tauri.conf.json bundle.license = "GPL-3.0-only" (deb/rpm/AppImage metadata). No bundle.licenseFile, so there is no installer click-through page: GPL-3.0 needs no acceptance.
  • README.md: the badge becomes [![License: GPL-3.0-only](https://img.shields.io/badge/License-GPL--3.0--only-blue.svg)](LICENSE). The license section says (German, like the rest of the file): "Smart SSH steht ab Version 0.8.0 unter der GNU General Public License v3.0 (GPL-3.0-only) – siehe LICENSE. Versionen bis einschließlich 0.7.0 stehen unter der Apache License 2.0. Urheberrechtsvermerk: NOTICE."
  • New ADR (next free number in docs/adr/, title "License change Apache-2.0 → GPL-3.0-only"): context (decided by the maintainer, effective 0.8.0, ≤ 0.7.0 stays Apache-2.0 because a granted Apache license cannot be withdrawn, sole copyright holder), decision (GPL-3.0-only, no "or later"; no per-file headers, same reasoning as ADR 0060; third-party code under vendor/ keeps its license), consequences (deny private.ignore, the allow list must stay GPL-3.0-compatible and the new check enforces that; MPL Exhibit B result; the NOTICE sentence). ADR 0060 gets status "Superseded by ADR NNNN", and its text otherwise stays as it is. docs/adr/INDEX.md is updated.
  • docs/specs/0099-third-party-licenses.md: purpose line and §1 L1–L3 say GPL-3.0-only (L1: GPL text unchanged as LICENSE; L2: Rust manifest, frontend manifest, Tauri bundle and README declare GPL-3.0-only; L3: NOTICE holds name, copyright and the license statement). The sentence about earlier versions becomes "Versions up to and including 0.7.0 are Apache-2.0" (keep the spec's language, German). References point to the new ADR next to ADR 0060.
  • docs/specs/0001-architecture-overview.md:95 says GPL-3.0-only. docs/specs/0090-ci-gates-blocking.md A12 gets one sentence: every allowed license must be compatible with GPL-3.0, enforced by check-license-compat. Existing rule unchanged: GPL/AGPL/LGPL dependencies still need a deliberate decision.
  • docs/specs/0070-license-apache-2-0.md keeps its history and gets one line saying that the project license changed to GPL-3.0-only with 0.8.0 (new ADR). The spec index is regenerated (node scripts/check-spec-index.mjs --write-index).
  • Changelog fragment changelog.d/issue-1583-gpl-3-0-license.md:
    ### Changed
    - Smart SSH is now licensed under GPL-3.0-only; versions up to 0.7.0 remain Apache-2.0.

Acceptance Criteria

  • shasum -a 256 LICENSE prints 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986
  • NOTICE has product name, the unchanged copyright line and the three sentences above, and nothing else
  • cargo metadata --format-version 1 --no-deps lists "license": "GPL-3.0-only" for every workspace package except russh (vendored, Apache-2.0)
  • package.json and the root entry of package-lock.json in apps/smart-ssh-community/frontend say GPL-3.0-only; no other lockfile line changes
  • cargo deny check licenses sources bans passes without GPL-3.0-only in allow
  • npm run generate-notices still succeeds; the generated list does not contain the project's own crates or frontend package
  • npm run lint runs check-license-compat and passes
  • Tests for check-license-compat (new test file next to workspaceDepsCheck.test.ts): passes on the current deny.toml; fails and names the entry for a fixture deny.toml with GPL-2.0-only in allow; fails for OpenSSL in an exceptions entry; fails for a LicenseRef-* entry
  • The ADR lists every MPL-2.0 crate and npm package checked for Exhibit B, with the result
  • tauri.conf.json has bundle.license = "GPL-3.0-only" and no bundle.licenseFile
  • git grep -n -i "apache" outside vendor/, gen/android/, lockfiles, CHANGELOG.md, third-party attributions (notices script and its tests, Whisper/ONNX references, deny.toml allow list) and the history docs (ADR 0060, Spec 0070, the new ADR, the "up to 0.7.0" sentences) finds nothing that describes the project's own license
  • README badge and license section as in Requirements; the badge link resolves to LICENSE
  • New ADR exists, ADR 0060 is marked superseded with its text otherwise unchanged, Spec 0099/0001/0090/0070 updated, npm run check-adr and npm run check-spec-index pass
  • Changelog fragment exists with exactly the text above, and npm run check-changelog passes
  • No source file gets a license header
  • Relevant automated tests pass

Technical Notes

  • Declaration and docs change plus one lint script. No runtime code, data model or security-critical path is touched.
  • LICENSE: fetch the text from the URL above and compare the hash. Do not retype it or let a formatter touch it (.gitattributes: no line-ending conversion).
  • cargo deny keeps checking only third-party crates because of private.ignore + publish = false. Do not remove publish = false.
  • Keep CHANGELOG.md and the release notes in release-notes/ unchanged; the fragment is enough.
  • No in-app text names the project license today, and this issue adds none (no new locale keys).

Files: LICENSE, NOTICE, Cargo.toml, deny.toml, apps/smart-ssh-community/tauri.conf.json, apps/smart-ssh-community/frontend/package.json, apps/smart-ssh-community/frontend/package-lock.json, apps/smart-ssh-community/frontend/src/, scripts/, README.md, docs/adr/, docs/specs/0001-architecture-overview.md, docs/specs/0070-license-apache-2-0.md, docs/specs/0090-ci-gates-blocking.md, docs/specs/0099-third-party-licenses.md, docs/specs/INDEX.md, docs/codemap.md, changelog.d/

Spec impact: update 0099

Open questions

  • Where the GPL-compatible list lives: (a) a constant in check-license-compat.mjs (recommended, one reviewer-visible place next to the reasons); (b) a JSON file in scripts/. Choose (a) unless check-conventions requires data files.

Related Work

  • ADR 0060, Spec 0070, Spec 0099, Spec 0090 A12

Activity

  1. added this to the 0.8.0 milestone on Nov 25, 2026
  2. added
    documentation
    on Nov 25, 2026
  3. added
    urgent
    on Nov 25, 2026
  4. smart-ssh-coder commented on Nov 25, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1584. Relicensed to GPL-3.0-only (LICENSE, NOTICE, manifests, Tauri bundle, README, ADR 0163, specs, changelog fragment) and added the check-license-compat lint with tests; MPL-2.0 Exhibit B check found no incompatibility notices. CI green on PR #1584.

  5. added
    follow-up-pending
    on Nov 25, 2026
  6. smart-ssh-reviewer commented on Nov 25, 2026

    @smart-ssh-reviewer

    Review passed – moving on to merge. Approved. Every acceptance criterion was verified: the LICENSE hash matches, cargo metadata reports GPL-3.0-only for all 13 workspace packages, cargo deny passes without GPL-3.0-only in allow, npm run lint (including check-license-compat) passes, and the new tests pass. The counter-proof holds: with GPL-2.0-only added to deny.toml the check fails. The MPL-2.0 Exhibit B result was re-checked and matches the ADR, and CI is green. Note: the branch has a one-line conflict in docs/adr/INDEX.md with develop (ADR 0162 was merged); the base update must keep both rows. Follow-up: parseExceptions silently skips exception entries in an unexpected shape.

  7. smart-ssh-coordinator commented on Nov 25, 2026

    @smart-ssh-coordinator
    Contributor

    Merge not possible, back to coding: PR #1584 has conflicts with develop – please resolve them.

  8. smart-ssh-coder commented on Nov 25, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1584. Resolved the docs/adr/INDEX.md conflict with develop (kept both ADR 0162 and 0163 rows), merged and pushed; CI is green on the new head.

  9. smart-ssh-reviewer commented on Nov 25, 2026

    @smart-ssh-reviewer

    Review passed – moving on to merge. Approval renewed. The only new commit is the merge of develop, which resolves the docs/adr/INDEX.md conflict and keeps both the ADR 0162 and 0163 rows. The diff against develop is otherwise unchanged. Re-run locally: licenseCompatCheck tests (14 passed), check-license-compat, check-adr, check-spec-index, check-changelog, cargo deny check licenses sources bans, and the LICENSE hash. CI is green. Follow-up still pending: parseExceptions silently skips exception entries that have an unexpected shape.

  10. smart-ssh-coordinator commented on Nov 25, 2026

    @smart-ssh-coordinator
    Contributor

    Merged and branch deleted: PR #1584 (squash) in develop

  11. smart-ssh-planner commented on Nov 25, 2026

    @smart-ssh-planner
    Author

    Follow-ups filed: #1588 Fail on unparseable deny.toml exceptions instead of skipping them (parseExceptions follow-up from the review). Nothing else to file: the PR body listed no follow-ups, and the other non-blocking notes (ADR index conflict, ADR 0060 status wording) were resolved or match the existing style.

  12. removed
    follow-up-pending
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationurgent

    Type

    Fields

    Priority

    P1 - High

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions