Skip to content

Commit 4706f4b

Browse files
committed
docs(security): reporting, disclosure and response timelines
1 parent 204a1e7 commit 4706f4b

1 file changed

Lines changed: 28 additions & 7 deletions

File tree

‎SECURITY.md‎

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,27 @@ fix ships in the next tag rather than being backported.
77

88
## Reporting a vulnerability
99

10-
Use GitHub's **private vulnerability reporting** on this repository
11-
(Security → Report a vulnerability). It stays private until a fix ships.
10+
Use GitHub's private vulnerability reporting on this repository: <https://github.com/Rethunk-Tech/rethunk-git-cli/security/advisories/new>, or the **Security** tab, then **Report a vulnerability**. The report stays private between you and us until a fix ships.
1211

13-
Please do not open a public issue for a suspected vulnerability first.
12+
If private reporting is unavailable, email [oss@rethunk.tech](mailto:oss@rethunk.tech) with **[SECURITY]** in the subject.
13+
14+
Please do not open a public issue, pull request or discussion for a suspected vulnerability.
15+
16+
A useful report has the affected repository and version (or commit), steps to reproduce, what an attacker gets and under which conditions, and whether anyone else knows.
17+
18+
## What counts as a vulnerability
19+
20+
A vulnerability is a flaw that lets someone cross a boundary they should not: run code, read or change data they have no right to, escape a sandbox or path restriction, or leak a credential. A bug is anything else that misbehaves, such as a crash on your own input, wrong output or a slow path; open an ordinary issue for those. If you are unsure which one you have, report it privately and we will say.
21+
22+
## Coordinated disclosure
23+
24+
We handle the report inside the private advisory, so you see each status change and can comment on the fix. The advisory goes public when the fix ships, or 90 days after your report, whichever comes first. If a fix is close, either of us can ask for more time in the thread. You are credited in the advisory unless you would rather not be.
25+
26+
## Response timelines
27+
28+
- We acknowledge your report within 3 business days.
29+
- We give you an assessment (accepted, needs more information or declined, with reasons) within 10 business days.
30+
- We aim to ship a fix within 90 days of the report.
1431

1532
## What is in scope
1633

@@ -24,13 +41,13 @@ are ones where it writes something the caller did not name:
2441
- Anything that causes `rgit` to run a command the caller did not ask for,
2542
beyond the `git` invocations it documents.
2643

27-
## What is not
44+
## What is out of scope
2845

2946
- **Hooks running arbitrary code.** `rgit` runs git's hooks exactly as
3047
`git commit` does, and deliberately does not police them
3148
([`docs/USAGE.md`](docs/USAGE.md#behaviour-inherited-from-git)). A
3249
malicious hook in a repository you have already checked out is outside
33-
this boundary — as it is for `git` itself.
50+
this boundary, as it is for `git` itself.
3451
- **Language servers and the tree-sitter CLI.** Both are optional external
3552
programs you install; `rgit` shells out to them and trusts them the way
3653
any editor does. That trust does not extend to the path `rgit` reaches
@@ -43,7 +60,11 @@ are ones where it writes something the caller did not name:
4360
`privateSocketDir`). Windows has no UID to scope by (`os.Getuid` returns
4461
`-1`, naming the directory `rgit--1`) and needs no ownership check: its
4562
per-user temp directory is already ACL-restricted by the platform. A
46-
caller-supplied `$RGIT_LSP_SOCKET` is exempt — it is the caller's path to
63+
caller-supplied `$RGIT_LSP_SOCKET` is exempt: it is the caller's path to
4764
manage, not one `rgit` vouches for.
48-
- **A wrong extent that stages too little.** That is a correctness bug —
65+
- **A wrong extent that stages too little.** That is a correctness bug;
4966
please file it as an ordinary issue.
67+
68+
## Safe harbour
69+
70+
We will not pursue legal action against good-faith research that avoids privacy violations, data destruction and disruption of services, stops at a proof of concept, and keeps the details private until the advisory is published. Rethunk.Tech, LLC maintains this repository.

0 commit comments

Comments
 (0)