Skip to content

Commit 6a43590

Browse files
Initial upload
Signed-off-by: James Pond <james@cipher.host>
0 parents  commit 6a43590

File tree

157 files changed

+15460
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+15460
-0
lines changed

.editorconfig

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
max_line_length = 80
9+
indent_style = space
10+
indent_size = 2
11+
tab_width = 4
12+
13+
[.git/config]
14+
indent_style = tab
15+
16+
[.git/COMMIT_EDITMSG]
17+
max_line_length = 72
18+
19+
[*.go]
20+
indent_style = tab
21+
indent_size = 4
22+
23+
[*.md]
24+
max_line_length = 72
25+
trim_trailing_whitespace = false
26+
27+
[*.scd]
28+
indent_style = tab
29+
indent_size = 4
30+
31+
[*.scss]
32+
indent_size = 4
33+
indent_style = tab
34+
35+
[go.mod]
36+
indent_style = tab
37+
38+
[Makefile]
39+
indent_style = tab
40+
indent_size = 4

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2025 The Cipher Host Team <team@cipher.host>
3+
4+
SPDX-License-Identifier: CC0-1.0
5+
-->
6+
7+
---
8+
name: 'Bug report'
9+
about: 'Create a report to help us improve.'
10+
title: ''
11+
labels: 'bug, needs triage'
12+
assignees: ''
13+
---
14+
15+
### Describe the bug
16+
<!-- A clear and concise description of what the bug is. Include
17+
screenshots or videos to help explain your problem. -->
18+
19+
### To reproduce
20+
Steps to reproduce the behavior:
21+
1. Go to '...'
22+
2. Click on '....'
23+
3. Scroll down to '....'
24+
4. See the error.
25+
26+
### Expected behavior
27+
<!-- A clear and concise description of what you expected to happen. -->
28+
29+
### Actual behavior
30+
<!-- A clear and concise description of what actually happened. -->
31+
32+
### Environment
33+
<!-- Please complete the following information: -->
34+
- OS: [e.g. openSUSE Tumbleweed]
35+
- Browser: [e.g. Firefox 134]
36+
- Version: [e.g. v1.0.0]
37+
38+
### Config
39+
<!-- Your /etc/pkgdex/config.json file. If applicable, include other
40+
configuration files as well, like the NGINX vhost, systemd unit file,
41+
AppArmor profile, etc. -->
42+
43+
### Additional context
44+
<!-- Add any other context about the problem here, like log messages or
45+
other relevant information. -->
46+
47+
### Checklist
48+
- [ ] I have searched for similar issues before creating this one.
49+
- [ ] I have provided all the requested information.
50+
- [ ] I have included relevant screenshots or error messages.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-FileCopyrightText: 2025 The Cipher Host Team <team@cipher.host>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
blank_issues_enabled: false
6+
contact_links:
7+
- name: 'Security issue'
8+
url: 'https://github.com/cipherdothost/.github/blob/trunk/SECURITY.md'
9+
about: 'Please report security vulnerabilities directly to our team via email.'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2025 The Cipher Host Team <team@cipher.host>
3+
4+
SPDX-License-Identifier: CC0-1.0
5+
-->
6+
7+
---
8+
name: 'Documentation'
9+
about: 'Suggest improvements or report issues in documentation.'
10+
title: ''
11+
labels: 'documentation, enhancement, needs triage'
12+
assignees: ''
13+
---
14+
15+
### What part of the documentation needs improvement?
16+
<!-- Specify which documentation needs to be updated, created, or fixed.
17+
-->
18+
19+
### What is the current documentation issue?
20+
<!-- Describe what's wrong or missing in the current documentation. -->
21+
22+
### Suggested changes
23+
<!-- Describe your suggested improvements or additions. -->
24+
25+
### Additional context
26+
<!-- Add any other context about the documentation issue here. -->
27+
28+
### Checklist
29+
- [ ] I have searched for similar documentation issues.
30+
- [ ] I have checked that this isn't already documented elsewhere.
31+
- [ ] I have provided specific examples or references where applicable.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2025 The Cipher Host Team <team@cipher.host>
3+
4+
SPDX-License-Identifier: CC0-1.0
5+
-->
6+
7+
---
8+
name: 'Feature request'
9+
about: 'Suggest an idea for this project.'
10+
title: ''
11+
labels: 'enhancement, needs triage'
12+
assignees: ''
13+
---
14+
15+
### Is your feature request related to a problem?
16+
<!-- A clear and concise description of what the problem is. E.g., I'm
17+
always frustrated when [...] -->
18+
19+
### Describe the solution you'd like
20+
<!-- A clear and concise description of what you want to happen. -->
21+
22+
### Describe alternatives you've considered
23+
<!-- A clear and concise description of any alternative solutions or
24+
features you've considered. -->
25+
26+
### Additional context
27+
<!-- Add any other context, screenshots, or examples about the feature
28+
request here. -->
29+
30+
### Impact
31+
<!-- Describe the potential impact of this feature on existing
32+
functionality. -->
33+
34+
### Checklist
35+
- [ ] I have searched for similar feature requests before creating this
36+
one.
37+
- [ ] I understand that feature requests need discussion before
38+
implementation.
39+
- [ ] I have provided clear justification for this feature.

.github/ISSUE_TEMPLATE/improvement.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2025 The Cipher Host Team <team@cipher.host>
3+
4+
SPDX-License-Identifier: CC0-1.0
5+
-->
6+
7+
---
8+
name: 'General improvement'
9+
about: "Suggest an improvement that isn't a bug fix or new feature."
10+
title: ''
11+
labels: 'enhancement, needs triage'
12+
assignees: ''
13+
---
14+
15+
### Describe the improvement
16+
<!-- A clear and concise description of what you want to improve. -->
17+
18+
### Why is this improvement needed?
19+
<!-- Explain the benefits of implementing this improvement. -->
20+
21+
### Proposed implementation
22+
<!-- If you have specific ideas about how to implement this, describe
23+
them here. -->
24+
25+
### Potential impacts
26+
<!-- Describe any potential impacts on existing functionality. -->
27+
28+
### Additional context
29+
<!-- Add any other context or screenshots about the improvement here. -->
30+
31+
### Checklist
32+
- [ ] I have searched for similar improvement suggestions.
33+
- [ ] I have considered the impact on existing functionality.
34+
- [ ] I have provided clear justification for this improvement.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2025 The Cipher Host Team <team@cipher.host>
3+
4+
SPDX-License-Identifier: CC0-1.0
5+
-->
6+
7+
<!--
8+
**Requirements for contributing to this repository:**
9+
10+
Fill out the template below. Any pull request that does not include
11+
enough information to be reviewed in a timely manner may be closed at
12+
the maintainers' discretion.
13+
14+
For more details, please see the CONTRIBUTING.md file at the root of the
15+
repository.
16+
-->
17+
18+
### What does this PR do?
19+
20+
<!--
21+
Provide a clear and concise description of your changes.
22+
23+
Please link to any related issues. If there isn't one yet:
24+
- For bug fixes: Open a new issue describing the bug.
25+
- For features: Ensure there's a prior discussion issue.
26+
- For other changes: Create an issue for tracking if needed.
27+
28+
We must be able to understand the design of your change from this
29+
description. Please walk us through the concepts, including:
30+
- What problem this solves or what feature this adds.
31+
- Why this approach was chosen.
32+
- Any important technical details we should know about.
33+
- Any potential impacts on existing functionality.
34+
35+
Keep in mind that the maintainer reviewing this PR may not be familiar
36+
with or have worked with the code here recently, so please be thorough
37+
in your explanation.
38+
39+
Remember:
40+
- Features should have prior discussion (create an issue first).
41+
- Bug fixes should reference the bug being fixed.
42+
- Documentation changes should explain what's being clarified or
43+
improved.
44+
- Test additions/changes should describe what's being tested. -->
45+
46+
### Additional Notes
47+
48+
<!-- Anything else we should know when reviewing? -->
49+
50+
### Review checklist
51+
52+
Before submitting your PR, please review the following:
53+
54+
- [ ] I have read the [CONTRIBUTING.md](CONTRIBUTING.md) file.
55+
- [ ] My changes are focused and address a single concern.
56+
- [ ] I have added/updated tests that prove my fix is effective or that
57+
my feature works.
58+
- [ ] New and existing tests pass locally with my changes.
59+
- [ ] I have added necessary documentation or made changes to
60+
documentation (if appropriate).
61+
- [ ] My changes generate no new warnings or errors.
62+
- [ ] My code follows the code style of this project.
63+
64+
## Developer's certificate of origin
65+
By submitting this pull request, I certify that:
66+
67+
- [ ] The contribution is my own original work.
68+
- [ ] I have the right to submit it under the project's license.
69+
- [ ] I understand and agree to the project's contributing guidelines.
357 KB
Loading

.github/license-3rdparty.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Origin,License,"License URL",Copyright{{ range . }}
2+
{{ .Name }},{{ .LicenseName }},{{ .LicenseURL }}{{ end }}

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# SPDX-FileCopyrightText: 2025 The Cipher Host Team <team@cipher.host>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
---
6+
name: 'CI'
7+
8+
on:
9+
push:
10+
branches: ['trunk']
11+
paths-ignore:
12+
- '.editorconfig'
13+
- '.gitignore'
14+
- '.golangci.yml'
15+
- '*.csv'
16+
- '*.md'
17+
- 'license-3rdparty.tpl'
18+
- 'package*'
19+
pull_request:
20+
branches: ['trunk']
21+
paths-ignore:
22+
- '.editorconfig'
23+
- '.gitignore'
24+
- '.golangci.yml'
25+
- '*.csv'
26+
- '*.md'
27+
- 'license-3rdparty.tpl'
28+
- 'package*'
29+
30+
permissions:
31+
contents: 'read'
32+
33+
jobs:
34+
test:
35+
runs-on: 'ubuntu-latest'
36+
name: 'Tests'
37+
steps:
38+
- uses: 'step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e' # v2.10.4
39+
with:
40+
egress-policy: 'audit'
41+
42+
- uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # v4.2.2
43+
with:
44+
persist-credentials: 'false'
45+
46+
- name: 'Setup Go environment'
47+
uses: 'actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34' # v5.3.0
48+
with:
49+
go-version: '>=1.24'
50+
51+
- name: 'Setup Node.js environment'
52+
uses: 'actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # v4.2.0
53+
with:
54+
node-version: 'latest'
55+
56+
- name: 'Install dependencies'
57+
run: 'sudo apt-get install scdoc && npm install'
58+
59+
- name: 'Run tests'
60+
run: 'make test'
61+
62+
- name: 'Run build'
63+
run: 'make'

.github/workflows/lint-licenses.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# SPDX-FileCopyrightText: 2025 The Cipher Host Team <team@cipher.host>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
---
6+
name: 'Check licenses'
7+
on:
8+
push:
9+
pull_request:
10+
11+
permissions:
12+
contents: 'read'
13+
14+
jobs:
15+
go:
16+
name: 'Check all files'
17+
runs-on: 'ubuntu-latest'
18+
steps:
19+
- uses: 'step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e' # v2.10.4
20+
with:
21+
egress-policy: 'audit'
22+
23+
- uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # v4.2.2
24+
with:
25+
persist-credentials: false
26+
27+
- name: 'Setup Python environment'
28+
uses: 'actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38' # v5.4.0
29+
with:
30+
python-version: '3.13'
31+
32+
- name: 'Install dependencies'
33+
run: 'pipx install reuse'
34+
35+
- name: 'Run REUSE'
36+
run: 'make lint-licenses'

0 commit comments

Comments
 (0)