Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# CLA check for pull requests (see CLA.md and CONTRIBUTING.md).
#
# pull_request_target runs with the base repository's permissions so the bot can
# comment and set a status on pull requests from forks. This workflow never
# checks out or runs code from the pull request.
#
# Permissions:
# contents: write store signatures/cla.json on the cla-signatures branch
# pull-requests: write comment on the pull request asking for a signature
# actions: write re-run the check after a signature comment
# statuses: write set the commit status of the CLA check
name: CLA

on:
pull_request_target:
types: [opened, synchronize, closed]
issue_comment:
types: [created]

permissions:
contents: write
pull-requests: write
actions: write
statuses: write

jobs:
cla:
name: CLA signature
runs-on: ubuntu-latest
if: >-
github.event_name == 'pull_request_target' ||
github.event.issue.pull_request
steps:
- name: CLA Assistant
if: >-
github.event_name == 'pull_request_target' ||
github.event.comment.body == 'recheck' ||
github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA'
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path-to-signatures: signatures/cla.json
path-to-document: https://github.com/smart-ssh/smart_ssh/blob/develop/CLA.md
branch: cla-signatures
allowlist: brokoskokoli,*[bot]
32 changes: 32 additions & 0 deletions CLA.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Smart SSH Individual Contributor License Agreement

Version 1.0

This agreement is based on the Apache Software Foundation Individual Contributor License Agreement (Apache License 2.0 terms apply to that template).

Thank you for your interest in Smart SSH. "Project Owner" means the copyright holder named in the [NOTICE](NOTICE) file. "You" means the individual who submits a Contribution. "Contribution" means any work of authorship, including code, documentation and translations, that You intentionally submit to the Project Owner for inclusion in Smart SSH (for example as a pull request). You keep the copyright in Your Contributions; this agreement only grants the rights below.

## 1. Copyright license

You grant the Project Owner and recipients of software distributed by the Project Owner a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works. This includes the right to sublicense and to relicense Your Contributions under other terms, including proprietary terms.

## 2. Patent license

You grant the Project Owner and recipients of software distributed by the Project Owner a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated here) patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Contribution, where such license applies only to those patent claims You can license that are necessarily infringed by Your Contribution alone or by combination of Your Contribution with the work to which it was submitted. If any entity brings patent litigation alleging that Your Contribution or the work it was submitted to constitutes patent infringement, the patent licenses granted to that entity under this agreement for that work end on the date the litigation is filed.

## 3. Your representations

You represent that:

1. You are legally entitled to grant the above licenses. If Your employer has rights to intellectual property You create, You have received permission to make the Contribution on behalf of that employer, or Your employer has waived those rights for the Contribution.
2. Each Contribution is Your original work, or, if it includes third-party material, You identify it and its license terms when You submit it, and those terms allow its use in Smart SSH.
3. You are not expected to provide support for Your Contributions. They are provided "AS IS", without warranties of any kind, unless You state otherwise.
4. You will tell the Project Owner if any statement here becomes inaccurate.

## 4. Scope

This agreement covers all Contributions You submit in the pull request in which You sign, including those made before You post the signature comment, and all Contributions You submit afterwards, until You withdraw in writing for future Contributions. Licenses already granted for earlier Contributions remain in force.

## 5. How to sign

Post the comment requested by the CLA bot in Your first pull request. The bot records Your GitHub account name and the date of the comment. One signature covers the Contributions in that pull request and all later Contributions.
56 changes: 56 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Contributing to Smart SSH

Thanks for helping. This page is the short version; it links to the files that hold the details.

## Before you start

- Open an issue first, or find an existing one, and say you want to work on it. Use the forms in [`.github/ISSUE_TEMPLATE/`](.github/ISSUE_TEMPLATE/) (bug, feature, task).
- **Never report a security problem as an issue.** Follow [SECURITY.md](SECURITY.md).
- Product principles and architecture rules are in [AGENTS.md](AGENTS.md); [docs/codemap.md](docs/codemap.md) helps you find the right file.

## How a change is made

Spec first: a spec describes behaviour, and it ships in the **same pull request** as the code. Every change has a spec impact:

- `new` — behaviour in an area no spec covers yet.
- `update NNNN` — behaviour of an existing spec changes or is added (preferred over a new spec).
- `none` — a bug fix of already specified behaviour, refactoring, tests, CI.

Architecture decisions that cut across a single spec, or non-obvious implementation choices, get an ADR in the same pull request. Details: [docs/specs/README.md](docs/specs/README.md) and [docs/adr/README.md](docs/adr/README.md). After adding a spec or ADR, regenerate the indexes with `node scripts/check-spec-index.mjs --write-index`. Recurring change checklists (new command, new UI text, new migration): [docs/recipes/README.md](docs/recipes/README.md). UI rules: [docs/ui-guidelines.md](docs/ui-guidelines.md).

## Local checks

Run the gate before you push; it mirrors CI ([`community.yml`](.github/workflows/community.yml)):

```bash
scripts/gate.sh # everything, in CI order
scripts/gate.sh rust # cargo fmt --check, clippy -D warnings, tests, build
scripts/gate.sh frontend # tsc, npm run lint, vitest, npm run build
```

The individual commands (`cargo fmt --all`, `cargo clippy --workspace --all-targets --locked -- -D warnings`, `cargo test --workspace --locked`, `npm run lint`, `npm test`) and the setup are in [README_DEV.md](README_DEV.md) and [docs/dev-environment.md](docs/dev-environment.md). CI also runs `cargo deny` and `cargo audit` and the browser tests (`npm run test:e2e` in `apps/smart-ssh-community/frontend`). A regression test must fail against the un-fixed code.

## Changelog

A user-visible change (new or changed behaviour, fix, security) adds one fragment in `changelog.d/`, written in English. Do not edit `CHANGELOG.md` directly. Naming and format: [changelog.d/README.md](changelog.d/README.md).

## Pull requests

- Base branch is `develop`.
- One issue per pull request; reference it (`Closes #<n>`).
- Use [Conventional Commits](https://www.conventionalcommits.org/), scoped to the area, e.g. `fix(app-shell): … (#<n>)`.
- CI must be green.
- Changes under `.github/` need a review by a code owner ([`.github/CODEOWNERS`](.github/CODEOWNERS)).
- A change that touches security-critical code updates [THREAT-MODEL.md](THREAT-MODEL.md), or says `Threat model: no change – <reason>` in the description.

## Translations

German and English are maintained by hand; all other languages are machine-translated. Corrections are welcome as an issue or pull request. Terminology: [docs/i18n-glossary.md](docs/i18n-glossary.md).

## Contribution terms

Smart SSH is licensed under GPL-3.0-only ([LICENSE](LICENSE)). Every contributor signs the [Contributor License Agreement](CLA.md) once, in their first pull request, by posting the comment the CLA bot asks for; the signature covers all later contributions. The CLA exists so that the copyright holder can keep relicensing the whole code base.

## Code of conduct

Be respectful: to contributors, maintainers and users.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ MCP is off by default, and only servers on the allow list are reachable. Every c
- [SECURITY.md](SECURITY.md) — how to report a vulnerability.
- [KNOWN-ISSUES.md](KNOWN-ISSUES.md) — current limitations and deliberate design decisions.

## Contributing

Contributions are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) for the spec-first workflow, the local checks and how pull requests are reviewed. Contributions need a one-time signature of the [CLA](CLA.md) in your first pull request.

## Build from source

### Prerequisites
Expand Down
Loading