Repository navigation
Description
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 withlicense.workspace = true(apps/smart-ssh-community/Cargo.tomland everycrates/*/Cargo.toml), so there is one place to change.publish = falseis set at the same place.apps/smart-ssh-community/frontend/package.json:5:"license": "Apache-2.0". The root entry ofapps/smart-ssh-community/frontend/package-lock.json(line 10) repeats it.deny.toml:[licenses.private] ignore = true(around line 83) skips the crates markedpublish = false. So cargo-deny never checks the project's own license against the allow list, andGPL-3.0-onlymust not be added toallow. The comment there still sayslicense = "Apache-2.0"and "alle 8 Workspace-Crates" (there are 13).scripts/generate-third-party-notices.mjswrites the sameprivate = { ignore = true }into the generatedabout.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 exceptionsqlcipher-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: thebundlesection has nolicense,licenseFileorcopyright. 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 keysabout.*) 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:27and:77-82assert Apache third-party texts (tauri, Whisper), and those stay.thirdPartyNoticesWorkspace.test.tsusesGPL-3.0-onlyas an example of a disallowed third-party license, and that also stays. README.md:4badge "License: Apache 2.0" andREADME.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.mdA12 (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 runscargo deny check licenses sources bans(.github/workflows/community.yml:277) andnpm run lint(apps/smart-ssh-community/frontend/package.json:14, chain ofcheck-*scripts inscripts/). Neither has to change in.github/. - Android:
apps/smart-ssh-community/gen/android/app/src/main/AndroidManifest.xmldeclares no license. The Apache headers ingen/android/gradlew,gradlew.batand theorg.apache.tools.antimport inBuildTask.ktbelong to third-party code and stay. vendor/russhis 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
LICENSEcontains the GPL-3.0 text, byte for byte the same ashttps://www.gnu.org/licenses/gpl-3.0.txt(674 lines, SHA-2563972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986), with nothing added or removed.NOTICEkeeps 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 keeplicense.workspace = true, and no crate declares its own license.vendor/russh/Cargo.tomlis unchanged.apps/smart-ssh-community/frontend/package.json"license": "GPL-3.0-only", and the root entry of itspackage-lock.jsonmatches (npm install --package-lock-onlyor the same one-line edit; no other lockfile changes).deny.toml:allowstays as it is (GPL-3.0-only is not added). The comment at[licenses.private]namesGPL-3.0-onlyand the correct number of crates (or "all workspace crates"). The comment aboveallowstates 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 asscripts/check-workspace-deps.mjs), run ascheck-license-compatin thelintchain ofapps/smart-ssh-community/frontend/package.json. It reads[licenses] allowandexceptionsfromdeny.toml, with the same parsing asparseAllowList/parseExceptionsingenerate-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 anyLicenseRef-*. - Each MPL-2.0 crate in
Cargo.lock(todaycssparser,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.jsonbundle.license = "GPL-3.0-only"(deb/rpm/AppImage metadata). Nobundle.licenseFile, so there is no installer click-through page: GPL-3.0 needs no acceptance.README.md: the badge becomes[](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 undervendor/keeps its license), consequences (denyprivate.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.mdis updated. docs/specs/0099-third-party-licenses.md: purpose line and §1 L1–L3 say GPL-3.0-only (L1: GPL text unchanged asLICENSE; L2: Rust manifest, frontend manifest, Tauri bundle and README declareGPL-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:95says GPL-3.0-only.docs/specs/0090-ci-gates-blocking.mdA12 gets one sentence: every allowed license must be compatible with GPL-3.0, enforced bycheck-license-compat. Existing rule unchanged: GPL/AGPL/LGPL dependencies still need a deliberate decision.docs/specs/0070-license-apache-2-0.mdkeeps 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 LICENSEprints3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 -
NOTICEhas product name, the unchanged copyright line and the three sentences above, and nothing else -
cargo metadata --format-version 1 --no-depslists"license": "GPL-3.0-only"for every workspace package exceptrussh(vendored,Apache-2.0) -
package.jsonand the root entry ofpackage-lock.jsoninapps/smart-ssh-community/frontendsayGPL-3.0-only; no other lockfile line changes -
cargo deny check licenses sources banspasses withoutGPL-3.0-onlyinallow -
npm run generate-noticesstill succeeds; the generated list does not contain the project's own crates or frontend package -
npm run lintrunscheck-license-compatand passes - Tests for
check-license-compat(new test file next toworkspaceDepsCheck.test.ts): passes on the currentdeny.toml; fails and names the entry for a fixturedeny.tomlwithGPL-2.0-onlyinallow; fails forOpenSSLin anexceptionsentry; fails for aLicenseRef-*entry - The ADR lists every MPL-2.0 crate and npm package checked for Exhibit B, with the result
-
tauri.conf.jsonhasbundle.license = "GPL-3.0-only"and nobundle.licenseFile -
git grep -n -i "apache"outsidevendor/,gen/android/, lockfiles,CHANGELOG.md, third-party attributions (notices script and its tests, Whisper/ONNX references,deny.tomlallow 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-adrandnpm run check-spec-indexpass - Changelog fragment exists with exactly the text above, and
npm run check-changelogpasses - 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 denykeeps checking only third-party crates because ofprivate.ignore+publish = false. Do not removepublish = false.- Keep
CHANGELOG.mdand the release notes inrelease-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 inscripts/. Choose (a) unlesscheck-conventionsrequires data files.
Related Work
- ADR 0060, Spec 0070, Spec 0099, Spec 0090 A12
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
chore(license): relicense to GPL-3.0-only from 0.8.0 (#1583)
smart-ssh-coder commentedon Nov 25, 2026
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.
smart-ssh-reviewer commentedon Nov 25, 2026
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.
smart-ssh-coordinator commentedon Nov 25, 2026
Merge not possible, back to coding: PR #1584 has conflicts with develop – please resolve them.
smart-ssh-coder commentedon Nov 25, 2026
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.
smart-ssh-reviewer commentedon Nov 25, 2026
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.
chore(license): relicense to GPL-3.0-only from 0.8.0 (#1583) (#1584)
smart-ssh-coordinator commentedon Nov 25, 2026
Merged and branch deleted: PR #1584 (squash) in develop
smart-ssh-planner commentedon Nov 25, 2026
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.