skeyd 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. skeyd-0.2.0/.gitignore +44 -0
  2. skeyd-0.2.0/CHANGELOG.md +97 -0
  3. skeyd-0.2.0/LICENSE +201 -0
  4. skeyd-0.2.0/PKG-INFO +392 -0
  5. skeyd-0.2.0/README.md +346 -0
  6. skeyd-0.2.0/docs/agent-integration.md +212 -0
  7. skeyd-0.2.0/docs/architecture.md +99 -0
  8. skeyd-0.2.0/docs/migration.md +69 -0
  9. skeyd-0.2.0/docs/policy.md +190 -0
  10. skeyd-0.2.0/docs/threat-model.md +98 -0
  11. skeyd-0.2.0/examples/README.md +14 -0
  12. skeyd-0.2.0/examples/agent_loop.py +146 -0
  13. skeyd-0.2.0/examples/policy.toml +87 -0
  14. skeyd-0.2.0/examples/policy_as_library.py +108 -0
  15. skeyd-0.2.0/examples/quickstart.sh +57 -0
  16. skeyd-0.2.0/pyproject.toml +188 -0
  17. skeyd-0.2.0/src/skeyd/__init__.py +69 -0
  18. skeyd-0.2.0/src/skeyd/__main__.py +10 -0
  19. skeyd-0.2.0/src/skeyd/agent.py +248 -0
  20. skeyd-0.2.0/src/skeyd/audit.py +392 -0
  21. skeyd-0.2.0/src/skeyd/cli/__init__.py +9 -0
  22. skeyd-0.2.0/src/skeyd/cli/commands/__init__.py +16 -0
  23. skeyd-0.2.0/src/skeyd/cli/commands/agent_cmds.py +224 -0
  24. skeyd-0.2.0/src/skeyd/cli/commands/audit_cmds.py +119 -0
  25. skeyd-0.2.0/src/skeyd/cli/commands/policy_cmds.py +211 -0
  26. skeyd-0.2.0/src/skeyd/cli/commands/run_cmds.py +266 -0
  27. skeyd-0.2.0/src/skeyd/cli/commands/secret_cmds.py +353 -0
  28. skeyd-0.2.0/src/skeyd/cli/commands/store_cmds.py +453 -0
  29. skeyd-0.2.0/src/skeyd/cli/context.py +171 -0
  30. skeyd-0.2.0/src/skeyd/cli/main.py +498 -0
  31. skeyd-0.2.0/src/skeyd/cli/output.py +229 -0
  32. skeyd-0.2.0/src/skeyd/cli/tui/__init__.py +16 -0
  33. skeyd-0.2.0/src/skeyd/cli/tui/app.py +157 -0
  34. skeyd-0.2.0/src/skeyd/cli/tui/audit.py +206 -0
  35. skeyd-0.2.0/src/skeyd/cli/tui/bridge.py +155 -0
  36. skeyd-0.2.0/src/skeyd/cli/tui/init.py +205 -0
  37. skeyd-0.2.0/src/skeyd/cli/tui/main.py +53 -0
  38. skeyd-0.2.0/src/skeyd/cli/tui/policy.py +480 -0
  39. skeyd-0.2.0/src/skeyd/cli/tui/store.py +429 -0
  40. skeyd-0.2.0/src/skeyd/cli/tui/toml_write.py +256 -0
  41. skeyd-0.2.0/src/skeyd/cli/tui/widgets.py +230 -0
  42. skeyd-0.2.0/src/skeyd/crypto.py +323 -0
  43. skeyd-0.2.0/src/skeyd/errors.py +132 -0
  44. skeyd-0.2.0/src/skeyd/execution.py +391 -0
  45. skeyd-0.2.0/src/skeyd/fsutil.py +255 -0
  46. skeyd-0.2.0/src/skeyd/keys.py +260 -0
  47. skeyd-0.2.0/src/skeyd/naming.py +365 -0
  48. skeyd-0.2.0/src/skeyd/paths.py +100 -0
  49. skeyd-0.2.0/src/skeyd/policy/__init__.py +40 -0
  50. skeyd-0.2.0/src/skeyd/policy/engine.py +461 -0
  51. skeyd-0.2.0/src/skeyd/policy/loader.py +493 -0
  52. skeyd-0.2.0/src/skeyd/policy/model.py +274 -0
  53. skeyd-0.2.0/src/skeyd/redaction.py +363 -0
  54. skeyd-0.2.0/src/skeyd/secretvalue.py +221 -0
  55. skeyd-0.2.0/src/skeyd/store/__init__.py +23 -0
  56. skeyd-0.2.0/src/skeyd/store/base.py +413 -0
  57. skeyd-0.2.0/src/skeyd/store/encrypted_file.py +242 -0
  58. skeyd-0.2.0/tests/conftest.py +124 -0
  59. skeyd-0.2.0/tests/test_agent.py +338 -0
  60. skeyd-0.2.0/tests/test_audit.py +221 -0
  61. skeyd-0.2.0/tests/test_cli.py +623 -0
  62. skeyd-0.2.0/tests/test_crypto.py +254 -0
  63. skeyd-0.2.0/tests/test_execution.py +359 -0
  64. skeyd-0.2.0/tests/test_fsutil.py +233 -0
  65. skeyd-0.2.0/tests/test_integration.py +378 -0
  66. skeyd-0.2.0/tests/test_keys.py +255 -0
  67. skeyd-0.2.0/tests/test_naming.py +156 -0
  68. skeyd-0.2.0/tests/test_policy.py +501 -0
  69. skeyd-0.2.0/tests/test_redaction.py +270 -0
  70. skeyd-0.2.0/tests/test_secretvalue.py +189 -0
  71. skeyd-0.2.0/tests/test_store.py +342 -0
  72. skeyd-0.2.0/tests/test_tui_app.py +634 -0
  73. skeyd-0.2.0/tests/test_tui_bridge.py +124 -0
  74. skeyd-0.2.0/tests/test_tui_toml_write.py +194 -0
skeyd-0.2.0/.gitignore ADDED
@@ -0,0 +1,44 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ .eggs/
6
+ build/
7
+ dist/
8
+ *.egg
9
+
10
+ # Virtual environments
11
+ .venv/
12
+ venv/
13
+ env/
14
+
15
+ # Testing / coverage
16
+ .pytest_cache/
17
+ .coverage
18
+ .coverage.*
19
+ htmlcov/
20
+ coverage.xml
21
+
22
+ # Type checking / linting
23
+ .mypy_cache/
24
+ .ruff_cache/
25
+ .dmypy.json
26
+
27
+ # Editors
28
+ .vscode/
29
+ .idea/
30
+ *.swp
31
+ *~
32
+
33
+ # OS
34
+ .DS_Store
35
+ Thumbs.db
36
+
37
+ # skeyd's own runtime state — never commit a real store, key, or audit log
38
+ .skeyd/
39
+ *.skeyd-store
40
+ store.json
41
+ store.key
42
+ policy.toml
43
+ audit.jsonl
44
+ !examples/**/policy.toml
@@ -0,0 +1,97 @@
1
+ # Changelog
2
+
3
+ All notable changes to skeyd are documented here. Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versioning follows [Semantic Versioning](https://semver.org/).
4
+
5
+ ## [0.2.0] — 2026-09-20
6
+
7
+ ### Changed
8
+ - **Renamed the package** from `skeyd-cli` to `skeyd`, so the install command and the
9
+ run command are the same name (`pip install skeyd`, then `skeyd ...`). The package
10
+ directory (`src/skeyd/`), the console-script entry point (`skeyd`), and the importable
11
+ module (`import skeyd`) were already named `skeyd`; only the PyPI project name and the
12
+ documented install commands were `skeyd-cli`. The old `skeyd-cli` PyPI project is left
13
+ published for anyone who already installed it.
14
+
15
+ ### Added
16
+ - **Text User Interface (TUI).** `skeyd tui` — an interactive terminal dashboard built on
17
+ Textual, available as an optional extra (`pip install 'skeyd[tui]'`). It is a view and a
18
+ transmitter only: every action is driven by the existing CLI command functions through a
19
+ bridge that keeps Textual's raw-mode terminal isolated from any `getpass()`/prompt, so the
20
+ CLI, its `--json` agent envelope, its exit codes, and its error types are all unchanged.
21
+ Screens: a launcher/home menu; a store browser (list, detail, add, remove); a TOML policy
22
+ editor with save/revert/`$EDITOR`; an audit-log browser (tail, summary, verify); and a
23
+ guided `skeyd init` wizard (store directory, passphrase source, policy drive). Launched
24
+ with `skeyd tui` (or `skeyd tui --screen=...`). The Textual dependency is optional and
25
+ imported lazily — the base `skeyd` CLI works without it, and running `skeyd tui` without
26
+ Textual installed fails with a clear, actionable error (exit 65, hint: install the `[tui]`
27
+ extra).
28
+
29
+ ## [0.1.1] — 2026-09-19
30
+
31
+ ### Fixed
32
+ - README tables now render as tables on GitHub (`||` → `|` GFM syntax); the
33
+ command reference, exit-code, configuration, and problem/quickstart tables
34
+ were all affected.
35
+ - `shlex.split` in the passphrase-command runner now takes an explicit `posix`
36
+ flag (`posix=(os.name == "posix")`). On Windows, `shlex` treats backslash as
37
+ an escape character, which mangled paths like `C:\Users\gebzerly\...` in
38
+ `SKEYD_PASSPHRASE_COMMAND` — causing 6 CI test failures on Windows + py3.13.
39
+ - `resolve_executable` on Windows now checks for executable extensions
40
+ (`.exe`, `.bat`, `.cmd`, `.com`, `.ps1`, `.vbs`, `.wsf`) instead of relying
41
+ on `os.X_OK`, which is always `True` on Windows and made the non-executable
42
+ path rejection test fail.
43
+ - `build_child_env` now sets `PYTHONIOENCODING=utf-8` so child Python processes
44
+ use UTF-8 on Windows where the default console/pipe encoding is not, fixing
45
+ the multi-byte UTF-8 subprocess output test.
46
+ - `fsutil._write_payload` now applies `os.fchmod(fd, SECRET_FILE_MODE)` on
47
+ POSIX as a belt-and-suspenders safeguard alongside the existing `os.open`
48
+ mode parameter.
49
+ - Test compatibility with Windows CI:
50
+ - `test_creates_the_file_privately` and `test_file_has_owner_only_permissions`
51
+ skipped on Windows (POSIX `st_mode` permission bits have no meaning there).
52
+ - `test_no_shell_is_involved` skipped on Windows (requires `/bin/sh`).
53
+ - `test_reports_no_change` skipped on Windows (requires `vi`/`nano` editor).
54
+ - Three policy TOML tests use `Path.as_posix()` when embedding paths in TOML
55
+ strings so Windows backslashes don't break TOML parsing.
56
+
57
+ ## [0.1.0] — 2026-09-19
58
+
59
+ Initial public release. Ground-up rewrite of the single-file prototype into a packaged, tested, documented project. See [`docs/migration.md`](docs/migration.md) for moving an existing prototype store across, and [`docs/architecture.md`](docs/architecture.md) for what changed structurally and why.
60
+
61
+ ### Added
62
+
63
+ - **Encryption at rest.** AES-256-GCM envelope; scrypt (passphrase) or HKDF-SHA256 (key file) key derivation, with KDF parameters and format version bound into the ciphertext as associated data.
64
+ - **Zero-Trust policy engine.** Deny-by-default TOML rules matching principal, label, command and arguments, with rate limiting, working-directory scoping, tag requirements, expiry, and a `sandbox` command-prefix hook. Unknown policy keys are hard errors with "did you mean" suggestions.
65
+ - **Leak-resistant output.** `SecretValue` renders as `«secret:redacted»` through every ordinary Python path (`str`, `repr`, f-strings, `%`, `json`, pickling refused entirely). Child process output is scrubbed of the credential across its common encodings (base64 at all phase alignments, hex, percent-encoding, JSON/shell escaping), safe across arbitrary chunk boundaries, plus structural detection of well-known credential shapes as defence in depth.
66
+ - **Environment scrubbing.** A child receives an allowlist-built environment, never the parent's full `os.environ`; skeyd's own `SKEYD_*` configuration is always stripped.
67
+ - **Tamper-evident audit log.** Hash-chained JSONL; `skeyd audit verify` detects edits and reports the first break.
68
+ - **Machine-readable agent interface.** `skeyd agent manifest` (native, Anthropic, OpenAI, and MCP tool-schema dialects) and `skeyd agent call`. No tool returns plaintext — an agent can use a credential, never hold one.
69
+ - **CLI surface:** `init`, `status`, `doctor` (security self-check), `set`, `list`, `show`, `rm`, `rename`, `suggest`, `run`, `check` (policy dry-run, decrypts nothing), `policy {init,check,show,test,edit}`, `audit {tail,verify,summary}`, `rekey`, `migrate`.
70
+ - **Stable exit codes** in the 64–79 range so they never collide with a propagated child exit code (`run` returns the child's own code on success).
71
+ - **Multiple key-material sources**, resolved in a documented, precedence order: explicit key file → `SKEYD_PASSPHRASE_COMMAND` → `SKEYD_PASSPHRASE` → OS keyring (optional extra) → default key file → interactive prompt — supporting both unattended agent hosts and human-operated machines.
72
+ - **Metadata-bearing store entries**: stable ids (not list positions), creation/expiry/last-used timestamps, use counts, tags, notes. Rotation is "add a new value, let the old one expire" rather than editing every reference to it.
73
+ - Full test suite (`pytest`) covering adversarial cases: redaction across encodings and chunk boundaries, ciphertext and header tamper detection, KDF downgrade/exhaustion guardrails, audit chain edit/reorder/truncation detection, subprocess timeout with process-group reaping, and end-to-end assertions that no command surfaces plaintext under any output mode.
74
+
75
+ ### Changed from the v0 prototype
76
+
77
+ All of the following were identified as weaknesses in the original single-file prototype and addressed in this rewrite — see [`docs/threat-model.md`](docs/threat-model.md) for the full before/after reasoning:
78
+
79
+ - Store moved from plaintext JSON to an encrypted envelope.
80
+ - Child stdout/stderr redaction, previously defined (`check_no_leak()`) but never actually called, is now wired into every output path and covers encoded forms, not just the literal string.
81
+ - The full parent environment is no longer passed to child processes.
82
+ - An authorization layer (previously absent entirely) now gates every injection.
83
+ - Store file permissions are enforced at creation time (`os.open` with an explicit mode) rather than reported after an insecure write; the prototype's write-then-chmod left a race window where the file existed world-readable.
84
+ - Atomic writes use `mkstemp` in the destination directory plus `os.replace`, fixing a `.with_suffix(".tmp")` collision bug and adding `fsync` before rename.
85
+ - Label and environment-variable name validation are now separate concerns (the prototype's shared regex accepted invalid POSIX names like `MY-KEY` and `9LIVES`).
86
+ - Secret values are wrapped in a non-`str` container rather than held as plain `str`, closing the accidental-repr/traceback/f-string disclosure path.
87
+ - `--value` on the command line is still supported (some workflows need it) but now emits an explicit warning about shell-history and `/proc` exposure.
88
+ - The prototype's `suggest_label` dead code, assertions, and substring-blacklist (which could mangle a legitimate name like `mytokenservice`) are replaced with whole-token matching and ranked suggestions.
89
+ - No audit trail existed previously; every grant, denial, and store mutation is now recorded.
90
+ - No machine-readable agent contract or stable exit codes existed previously.
91
+ - A duplicate `--store` flag definition on both the main parser and a subparser is resolved.
92
+ - Process timeout previously did not kill a spawned process's own children; execution now runs in its own process group with SIGTERM→SIGKILL escalation across the whole group.
93
+
94
+ [0.1.0]: https://github.com/gebzerly/skeyd/releases/tag/v0.1.0
95
+ [0.1.1]: https://github.com/gebzerly/skeyd/releases/tag/v0.1.1
96
+ [0.1.2]: https://github.com/gebzerly/skeyd/releases/tag/v0.1.2
97
+ [0.2.0]: https://github.com/gebzerly/skeyd/releases/tag/v0.2.0
skeyd-0.2.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the
44
+ purposes of this License, Derivative Works shall not include works
45
+ that remain separable from, or merely link (or bind by name) to the
46
+ interfaces of, the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 skeyd contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.