Skip to content
Merged
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
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# The image is built from Cargo.toml, Cargo.lock and crates/ only. Keep
# everything else, above all build output and local stores, out of the build
# context.
*
!Cargo.toml
!Cargo.lock
!crates/
crates/**/target/
crates/**/space.db/
crates/**/space.journal
crates/**/*.nvram
crates/**/*.nvram.segments
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# https://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.{yml,yaml,json,cff}]
indent_size = 2

# Two trailing spaces are a line break in Markdown.
[*.md]
trim_trailing_whitespace = false

[*.{bat,cmd,ps1}]
end_of_line = crlf
36 changes: 36 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Text files are stored with LF and checked out with LF on every OS, whatever
# core.autocrlf says, so a Windows checkout, CI on Windows and the release
# archives all see the same bytes.
* text=auto eol=lf

# Windows scripts keep CRLF.
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# Language-aware diff hunk headers.
*.rs diff=rust
*.md diff=markdown

# Generated: collapsed in GitHub diffs (expand it to review a dependency
# change) and left out of the language statistics.
Cargo.lock linguist-generated=true

docs/** linguist-documentation

# Never converted or diffed as text.
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.gz binary
*.tgz binary
*.zip binary
*.zst binary
*.lz4 binary
*.bin binary
*.seg binary
*.nvram binary
*.journal binary
71 changes: 34 additions & 37 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,42 +1,39 @@
# CODEOWNERS — Auto-assign reviewers based on file paths
# CODEOWNERS: who is asked to review a pull request, by path.
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
#
# Map each subsystem to its maintainer(s) so PRs are automatically
# routed for review.
#
# As the team grows, replace individual handles with @org/team slugs.
# The last matching pattern wins. As reviewers join (see GOVERNANCE.md), add
# them to the areas they know.

# ── Global fallback ──────────────────────────────────────────────
# Global fallback
* @saworbit

# ── Core storage pipeline ────────────────────────────────────────
crates/common/ @saworbit
crates/capsule-registry/ @saworbit
crates/pipeline/ @saworbit
crates/storage/ @saworbit
crates/nvram-sim/ @saworbit

# ── Data services (encryption, compression, dedup) ───────────────
crates/encryption/ @saworbit
crates/compression/ @saworbit
crates/dedup/ @saworbit

# ── Protocol views ───────────────────────────────────────────────
crates/protocol-s3/ @saworbit

# ── CLI ──────────────────────────────────────────────────────────
crates/spacectl/ @saworbit

# ── Build, CI, and tooling ───────────────────────────────────────
.github/ @saworbit
Cargo.toml @saworbit
Cargo.lock @saworbit
deny.toml @saworbit
LICENSE @saworbit

# ── Security-sensitive files (require explicit review) ───────────
SECURITY.md @saworbit
crates/encryption/ @saworbit

# ── Documentation ────────────────────────────────────────────────
docs/ @saworbit
# Core storage pipeline
/crates/common/ @saworbit
/crates/capsule-registry/ @saworbit
/crates/pipeline/ @saworbit
/crates/storage/ @saworbit
/crates/nvram-sim/ @saworbit
/crates/compression/ @saworbit
/crates/dedup/ @saworbit

# Protocol views and CLI
/crates/protocol-s3/ @saworbit
/crates/spacectl/ @saworbit

# Security-sensitive: cryptography, the security policy, dependency policy,
# and the workflows that build releases
/crates/encryption/ @saworbit
/SECURITY.md @saworbit
/deny.toml @saworbit
/.cargo/audit.toml @saworbit
/.github/ @saworbit

# Build and licensing
/Cargo.toml @saworbit
/Cargo.lock @saworbit
/Dockerfile @saworbit
/LICENSE @saworbit
/NOTICE @saworbit

# Documentation
/docs/ @saworbit
36 changes: 0 additions & 36 deletions .github/ISSUE_TEMPLATE/backport.yml

This file was deleted.

91 changes: 83 additions & 8 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,96 @@
name: 🐛 Bug Report
description: File a bug report
title: "[BUG] "
name: Bug report
description: SPACE does something wrong, loses or damages data, or crashes
title: "[Bug] "
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for reporting. **Security vulnerabilities don't belong here**: report them privately as described in [SECURITY.md](https://github.com/saworbit/SPACE/blob/main/SECURITY.md).

Please check [open issues](https://github.com/saworbit/SPACE/issues) first.

- type: dropdown
id: area
attributes:
label: Area
options:
- Core (registry, pipeline, journal, index)
- Storage (data log, storage root, compaction)
- Encryption and keys
- Compression or dedup
- Scrub and reclaim
- S3 view (serve-s3)
- spacectl
- Docker image
- Documentation
- Build or CI
- Not sure
validations:
required: true

- type: textarea
id: what-happened
attributes:
label: Description
description: Clear & concise description of the bug.
label: What happened
description: What you saw, including the exact error message or HTTP response.
validations:
required: true

- type: textarea
id: expected
attributes:
label: Reproduction
description: Steps to reproduce.
label: What you expected
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: Steps to reproduce
description: Commands or requests that show the bug, starting from an empty store if you can.
placeholder: |
1. spacectl create notes.txt
2. spacectl read <id>
3. ...
validations:
required: true

- type: input
id: version
attributes:
label: Version
value: "main"
description: The output of `spacectl --version`, or the commit you built.
validations:
required: true

- type: dropdown
id: os
attributes:
label: Operating system
options:
- Linux
- Windows
- macOS
- Docker
- Other
validations:
required: true

- type: textarea
id: logs
attributes:
label: Logs
description: Relevant output, for example with `RUST_LOG=debug`. Remove keys and anything private first.
render: text

- type: dropdown
id: data-at-risk
attributes:
label: Is data lost or damaged?
options:
- "No"
- "Yes, or it can be"
- Not sure
validations:
required: true
10 changes: 8 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Report a vulnerability (private)
url: https://github.com/saworbit/space/security/advisories/new
about: For exploitable vulnerabilities, use GitHub's private vulnerability reporting.
url: https://github.com/saworbit/SPACE/security/advisories/new
about: For exploitable vulnerabilities, use GitHub's private vulnerability reporting, not a public issue.
- name: Getting help
url: https://github.com/saworbit/SPACE/blob/main/SUPPORT.md
about: Where to ask questions, and what to expect from a single-maintainer project.
- name: Commercial license
url: https://github.com/saworbit/SPACE/blob/main/LICENSE
about: Commercial production use needs a commercial license; the LICENSE file says how to ask.
32 changes: 27 additions & 5 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
name: ✨ Feature Request
description: Suggest an idea
title: "[FEATURE] "
name: Feature request
description: Something SPACE should do that it doesn't
title: "[Feature] "
labels: [enhancement]
body:
- type: markdown
attributes:
value: |
SPACE is a single-node capsule store. [MVP_SCOPE.md](https://github.com/saworbit/SPACE/blob/main/MVP_SCOPE.md) and [ROADMAP.md](https://github.com/saworbit/SPACE/blob/main/ROADMAP.md) say what's in and out of scope.

- type: textarea
id: problem
attributes:
label: Problem
description: What problem are you trying to solve?
description: What are you trying to do, and what stops you today?
validations:
required: true

- type: textarea
id: proposal
attributes:
label: Proposed solution
description: How it could work, from the outside (CLI, S3 request, API).

- type: textarea
id: alternatives
attributes:
label: Alternatives
description: Workarounds you use now, or other designs you considered.

- type: checkboxes
id: scope
attributes:
label: Proposed Solution
label: Scope
options:
- label: This fits the single-node core described in MVP_SCOPE.md.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/security.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Security Concern
description: Report a non-critical security hardening issue (for vulnerabilities, use private reporting)
title: "[SECURITY] "
title: "[Security] "
labels: [security]
body:
- type: markdown
attributes:
value: |
**For actual vulnerabilities** (exploitable bugs, key leaks, auth bypass), please use
[GitHub private vulnerability reporting](https://github.com/saworbit/space/security/advisories/new)
[GitHub private vulnerability reporting](https://github.com/saworbit/SPACE/security/advisories/new)
or email security@adaptive-storage.dev instead of this template.

This template is for non-critical security improvements: hardening suggestions,
Expand Down
Loading
Loading