obfuscidian 1.0.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 (51) hide show
  1. obfuscidian-1.0.0/LICENSE +201 -0
  2. obfuscidian-1.0.0/PKG-INFO +195 -0
  3. obfuscidian-1.0.0/README.md +162 -0
  4. obfuscidian-1.0.0/SECURITY.md +21 -0
  5. obfuscidian-1.0.0/docs/BACKUP.md +178 -0
  6. obfuscidian-1.0.0/docs/CHANGELOG.md +76 -0
  7. obfuscidian-1.0.0/docs/CLI.md +121 -0
  8. obfuscidian-1.0.0/docs/CONFIGURATION.md +161 -0
  9. obfuscidian-1.0.0/docs/FORMAT.md +158 -0
  10. obfuscidian-1.0.0/docs/INVENTORY.md +116 -0
  11. obfuscidian-1.0.0/docs/PLATFORMS.md +102 -0
  12. obfuscidian-1.0.0/docs/RESTORE.md +257 -0
  13. obfuscidian-1.0.0/docs/SECURITY.md +83 -0
  14. obfuscidian-1.0.0/docs/TRANSACTIONS.md +160 -0
  15. obfuscidian-1.0.0/docs/TROUBLESHOOTING.md +66 -0
  16. obfuscidian-1.0.0/docs/VERIFY.md +79 -0
  17. obfuscidian-1.0.0/docs/getting-started/choosing-a-workflow.md +40 -0
  18. obfuscidian-1.0.0/docs/getting-started/creating-a-backup.md +52 -0
  19. obfuscidian-1.0.0/docs/getting-started/fresh-restore.md +51 -0
  20. obfuscidian-1.0.0/docs/getting-started/index.rst +93 -0
  21. obfuscidian-1.0.0/docs/getting-started/installation.md +97 -0
  22. obfuscidian-1.0.0/docs/getting-started/merge-restore.md +60 -0
  23. obfuscidian-1.0.0/docs/getting-started/private-key.md +46 -0
  24. obfuscidian-1.0.0/docs/getting-started/quickstart.md +68 -0
  25. obfuscidian-1.0.0/docs/getting-started/updating.md +217 -0
  26. obfuscidian-1.0.0/docs/getting-started/using-the-cli.md +54 -0
  27. obfuscidian-1.0.0/docs/getting-started/what-is-obfuscidian.md +40 -0
  28. obfuscidian-1.0.0/docs/guides/index.rst +20 -0
  29. obfuscidian-1.0.0/docs/guides/installation.md +278 -0
  30. obfuscidian-1.0.0/docs/guides/restore-rehearsal.md +113 -0
  31. obfuscidian-1.0.0/poetry.lock +1747 -0
  32. obfuscidian-1.0.0/pyproject.toml +124 -0
  33. obfuscidian-1.0.0/src/obfuscidian/__init__.py +8 -0
  34. obfuscidian-1.0.0/src/obfuscidian/__main__.py +15 -0
  35. obfuscidian-1.0.0/src/obfuscidian/_windows.py +106 -0
  36. obfuscidian-1.0.0/src/obfuscidian/backup.py +324 -0
  37. obfuscidian-1.0.0/src/obfuscidian/cli.py +895 -0
  38. obfuscidian-1.0.0/src/obfuscidian/config.py +113 -0
  39. obfuscidian-1.0.0/src/obfuscidian/constants.py +112 -0
  40. obfuscidian-1.0.0/src/obfuscidian/crypto.py +87 -0
  41. obfuscidian-1.0.0/src/obfuscidian/errors.py +22 -0
  42. obfuscidian-1.0.0/src/obfuscidian/git_restore.py +696 -0
  43. obfuscidian-1.0.0/src/obfuscidian/inventory.py +397 -0
  44. obfuscidian-1.0.0/src/obfuscidian/keys.py +273 -0
  45. obfuscidian-1.0.0/src/obfuscidian/manifest.py +522 -0
  46. obfuscidian-1.0.0/src/obfuscidian/output.py +212 -0
  47. obfuscidian-1.0.0/src/obfuscidian/paths.py +385 -0
  48. obfuscidian-1.0.0/src/obfuscidian/restore.py +243 -0
  49. obfuscidian-1.0.0/src/obfuscidian/transactions.py +912 -0
  50. obfuscidian-1.0.0/src/obfuscidian/updates.py +96 -0
  51. obfuscidian-1.0.0/src/obfuscidian/verification.py +64 -0
@@ -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 purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ 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 Jeff Shurtliff
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.
@@ -0,0 +1,195 @@
1
+ Metadata-Version: 2.4
2
+ Name: obfuscidian
3
+ Version: 1.0.0
4
+ Summary: Obfuscate and encrypt your Obsidian vault to create secure and private backups.
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Author: Jeff Shurtliff
8
+ Author-email: jeff@shurt.us
9
+ Maintainer: Jeff Shurtliff
10
+ Maintainer-email: jeff@shurt.us
11
+ Requires-Python: >=3.12
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Intended Audience :: End Users/Desktop
14
+ Classifier: Environment :: Console
15
+ Classifier: Topic :: Security :: Cryptography
16
+ Classifier: Topic :: System :: Archiving :: Backup
17
+ Classifier: Topic :: Utilities
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Requires-Dist: click (>=8.5.0)
24
+ Requires-Dist: cryptography (>=50.0.2)
25
+ Requires-Dist: packaging (>=26,<27)
26
+ Requires-Dist: urllib3 (>=2.8,<3)
27
+ Project-URL: Changelog, https://github.com/jeffshurtliff/obfuscidian/blob/main/docs/CHANGELOG.md
28
+ Project-URL: CI, https://github.com/jeffshurtliff/obfuscidian/actions
29
+ Project-URL: Homepage, https://github.com/jeffshurtliff/obfuscidian
30
+ Project-URL: Issues, https://github.com/jeffshurtliff/obfuscidian/issues
31
+ Description-Content-Type: text/markdown
32
+
33
+
34
+ <img src="https://raw.githubusercontent.com/jeffshurtliff/obfuscidian/1.0.0/docs/_static/obfuscidian-logo-horizontal-web.png"
35
+ style="max-height: 160px;"
36
+ alt="Obfuscidian Logo">
37
+
38
+ # Obfuscidian
39
+
40
+ [![Tests](https://github.com/jeffshurtliff/obfuscidian/actions/workflows/test.yml/badge.svg)](https://github.com/jeffshurtliff/obfuscidian/actions/workflows/test.yml)
41
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/jeffshurtliff/obfuscidian/blob/main/LICENSE)
42
+
43
+ Obfuscidian is a Python CLI for encrypted Obsidian vault backups. It stores
44
+ individual Fernet-encrypted files and an encrypted path manifest in a separate
45
+ mirror, then authenticates and restores the complete snapshot. Notes and binary
46
+ attachments retain their exact bytes. The CLI is the supported public interface.
47
+
48
+ ## Version and supported environments
49
+
50
+ Obfuscidian 1.0.0 is the first stable release and requires Python 3.12 or newer.
51
+ The tested matrix covers Linux, macOS and Windows on Python 3.12–3.14.
52
+ Linux/macOS support backup and restore writes. Native Windows supports key
53
+ creation, verification and read-only planning; vault mutation/recovery and
54
+ existing-log append fail closed. See [supported environments](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/PLATFORMS.md).
55
+
56
+ ## Install
57
+
58
+ Python 3.12+ is required. For use directly from Bash, zsh or PowerShell without
59
+ activating an environment, **pipx is recommended**. With
60
+ [pipx installed](https://pipx.pypa.io/latest/how-to/install-pipx.html), run
61
+ in a POSIX shell:
62
+
63
+ ```sh
64
+ python3.12 --version
65
+ pipx ensurepath
66
+ pipx install --python python3.12 obfuscidian
67
+ ```
68
+
69
+ Reopen your terminal after PATH setup, then run `obfuscidian --version` and
70
+ `obfuscidian --help` from any folder. pipx manages an isolated Python environment
71
+ internally; you do not activate it. See [installation](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/guides/installation.md)
72
+ for pipx prerequisites, PowerShell commands, **pip `--user` installation outside
73
+ a venv**, local wheels and developer setup. For unattended use, follow
74
+ [scheduled jobs and automation](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/guides/installation.md#scheduled-jobs-and-automation).
75
+
76
+ Alternatively, install into a venv:
77
+
78
+ ```sh
79
+ python3 -m venv .venv
80
+ . .venv/bin/activate
81
+ python -m pip install obfuscidian
82
+ obfuscidian --help
83
+ ```
84
+
85
+ `python -m obfuscidian` offers the same behavior when that Python interpreter
86
+ contains the package; your primary Python may not contain a pipx installation.
87
+
88
+ ## Update to a newer stable version
89
+
90
+ Keep the CLI current to receive features, fixes and security patches. Update
91
+ the installation you actually run:
92
+
93
+ | Installation | Update command |
94
+ | --- | --- |
95
+ | pipx, originally installed from PyPI | `pipx upgrade obfuscidian` |
96
+ | pipx, switching a source/wheel install to PyPI | `pipx runpip obfuscidian install --upgrade obfuscidian` |
97
+ | pip user install, outside a venv | `python3 -m pip install --user --upgrade obfuscidian` |
98
+ | Activated venv | `python -m pip install --upgrade obfuscidian` |
99
+
100
+ Use the original installation's Python; in PowerShell a user install may use
101
+ `py -3.12 -m pip install --user --upgrade obfuscidian`. Afterward, run
102
+ `obfuscidian --version` in your usual shell and check the exact executable used
103
+ by scheduled jobs. pipx needs no activation. A source/wheel pipx install normally
104
+ retains its original source for `pipx upgrade`; use `runpip` again for subsequent
105
+ PyPI updates, or follow the local-source instructions in
106
+ [Updating Obfuscidian](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/getting-started/updating.md).
107
+
108
+ The CLI checks PyPI for newer stable versions and displays an advisory on stderr,
109
+ also recording it when an optional private operational log opens. Set
110
+ `OBFUSCIDIAN_SUPPRESS_UPDATE_NOTICE=true` or `1` to disable the request and notice.
111
+ Checks never install updates. Subscribe to repository releases through GitHub
112
+ **Watch → Custom → Releases** and read the [changelog](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/CHANGELOG.md).
113
+ The notice links to [update instructions](https://bit.ly/updating-obfuscidian).
114
+ The [update guide](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/getting-started/updating.md) covers all installation
115
+ methods, failed checks and competing PATH entries.
116
+
117
+ ## First backup and restore
118
+
119
+ New to command-line backups? Start with [What is Obfuscidian?](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/getting-started/what-is-obfuscidian.md)
120
+ and the [Quickstart](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/getting-started/quickstart.md). The beginner pages introduce keys,
121
+ backup choices and restore steps one topic at a time.
122
+
123
+ Follow the [complete synthetic rehearsal](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/guides/restore-rehearsal.md)
124
+ before using a real vault. It creates a private key outside both vaults,
125
+ previews and writes a fresh backup, verifies every object, restores to a new
126
+ location and compares all bytes and directories.
127
+
128
+ For existing synthetic locations and their external key:
129
+
130
+ ```sh
131
+ obfuscidian shroud fresh --origin ./vault --mirror ./mirror \
132
+ --key ./keys/obfuscidian-demo.key --non-interactive --dry-run
133
+ obfuscidian verify --mirror ./mirror --key ./keys/obfuscidian-demo.key --non-interactive
134
+ obfuscidian unshroud fresh --mirror ./mirror --origin ./restored \
135
+ --key ./keys/obfuscidian-demo.key --non-interactive --dry-run
136
+ ```
137
+
138
+ The mirror must exist for verify and restore. Replace `--dry-run` with an intended
139
+ write only after review. `--non-interactive` never supplies replacement consent;
140
+ `--yes` does, without bypassing validation. Pause editing and sync during writes.
141
+
142
+ Keep a separate offline key backup: key loss prevents decryption, with no recovery
143
+ bypass. `shroud merge` retains deleted/renamed/excluded historical entries, so
144
+ those notes can return on restore. Fresh replacement retains previous payloads
145
+ outside the vault and Git; **restore rollback contains sensitive plaintext**.
146
+ Verification and dry runs create no application files or logs. Git merge restore
147
+ creates a separate review branch/worktree with differences left uncommitted;
148
+ Obfuscidian never stages, commits, merges or pushes them.
149
+
150
+ ## Documentation
151
+
152
+ - [Configuration and key custody](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/CONFIGURATION.md)
153
+ - [Fresh/additive backup](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/BACKUP.md), [verification](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/VERIFY.md) and [restore](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/RESTORE.md)
154
+ - [Command reference](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/reference/cli.md) and [output/privacy/logging](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/CLI.md)
155
+ - [Security and limits](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/SECURITY.md), [private reporting policy](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/SECURITY.md) and [troubleshooting](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/TROUBLESHOOTING.md)
156
+ - [Contributor guide](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/CONTRIBUTING.md) and [changelog](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/CHANGELOG.md)
157
+
158
+ Build the local Sphinx/reST/MyST site with the PyData theme (dark by default,
159
+ with a reader-selectable light mode):
160
+
161
+ ```sh
162
+ poetry install --with dev,docs
163
+ poetry run sphinx-build -W --keep-going -E -a -b html docs docs/_build/html
164
+ poetry run python .github/scripts/check_docs.py docs/_build/html
165
+ ```
166
+
167
+ Open `docs/_build/html/index.html`. See [documentation maintenance](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/maintainers/documentation.md)
168
+ for tutorial tests, rendered/accessibility review and optional external link checks.
169
+ This build does not publish or configure hosting.
170
+
171
+ ## Development
172
+
173
+ Use Poetry 2.2 or newer, below 3.0. Runtime dependencies have one authoritative
174
+ list in `pyproject.toml`; `poetry.lock` records developer and optional docs tools.
175
+ The normal pytest suite is offline and uses only synthetic temporary fixtures.
176
+
177
+ ```sh
178
+ poetry install --with dev
179
+ poetry check --lock --strict
180
+ poetry run ruff check .
181
+ poetry run ruff format --check .
182
+ poetry run pytest -q
183
+ poetry run bandit -r src/obfuscidian
184
+ poetry build
185
+ ```
186
+
187
+ Read [AGENTS.md](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/AGENTS.md) and [CONTRIBUTING.md](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/CONTRIBUTING.md) before changing
188
+ code. Keep work within the requested task and leave changes reviewable.
189
+ Git history and publication actions require separate maintainer authorization.
190
+ The project is licensed under [Apache-2.0](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/LICENSE).
191
+
192
+ ---
193
+
194
+ _This utility is considered unofficial and is in no way endorsed or supported by [Obsidian](https://obsidian.md/terms)._
195
+
@@ -0,0 +1,162 @@
1
+
2
+ <img src="https://raw.githubusercontent.com/jeffshurtliff/obfuscidian/1.0.0/docs/_static/obfuscidian-logo-horizontal-web.png"
3
+ style="max-height: 160px;"
4
+ alt="Obfuscidian Logo">
5
+
6
+ # Obfuscidian
7
+
8
+ [![Tests](https://github.com/jeffshurtliff/obfuscidian/actions/workflows/test.yml/badge.svg)](https://github.com/jeffshurtliff/obfuscidian/actions/workflows/test.yml)
9
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/jeffshurtliff/obfuscidian/blob/main/LICENSE)
10
+
11
+ Obfuscidian is a Python CLI for encrypted Obsidian vault backups. It stores
12
+ individual Fernet-encrypted files and an encrypted path manifest in a separate
13
+ mirror, then authenticates and restores the complete snapshot. Notes and binary
14
+ attachments retain their exact bytes. The CLI is the supported public interface.
15
+
16
+ ## Version and supported environments
17
+
18
+ Obfuscidian 1.0.0 is the first stable release and requires Python 3.12 or newer.
19
+ The tested matrix covers Linux, macOS and Windows on Python 3.12–3.14.
20
+ Linux/macOS support backup and restore writes. Native Windows supports key
21
+ creation, verification and read-only planning; vault mutation/recovery and
22
+ existing-log append fail closed. See [supported environments](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/PLATFORMS.md).
23
+
24
+ ## Install
25
+
26
+ Python 3.12+ is required. For use directly from Bash, zsh or PowerShell without
27
+ activating an environment, **pipx is recommended**. With
28
+ [pipx installed](https://pipx.pypa.io/latest/how-to/install-pipx.html), run
29
+ in a POSIX shell:
30
+
31
+ ```sh
32
+ python3.12 --version
33
+ pipx ensurepath
34
+ pipx install --python python3.12 obfuscidian
35
+ ```
36
+
37
+ Reopen your terminal after PATH setup, then run `obfuscidian --version` and
38
+ `obfuscidian --help` from any folder. pipx manages an isolated Python environment
39
+ internally; you do not activate it. See [installation](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/guides/installation.md)
40
+ for pipx prerequisites, PowerShell commands, **pip `--user` installation outside
41
+ a venv**, local wheels and developer setup. For unattended use, follow
42
+ [scheduled jobs and automation](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/guides/installation.md#scheduled-jobs-and-automation).
43
+
44
+ Alternatively, install into a venv:
45
+
46
+ ```sh
47
+ python3 -m venv .venv
48
+ . .venv/bin/activate
49
+ python -m pip install obfuscidian
50
+ obfuscidian --help
51
+ ```
52
+
53
+ `python -m obfuscidian` offers the same behavior when that Python interpreter
54
+ contains the package; your primary Python may not contain a pipx installation.
55
+
56
+ ## Update to a newer stable version
57
+
58
+ Keep the CLI current to receive features, fixes and security patches. Update
59
+ the installation you actually run:
60
+
61
+ | Installation | Update command |
62
+ | --- | --- |
63
+ | pipx, originally installed from PyPI | `pipx upgrade obfuscidian` |
64
+ | pipx, switching a source/wheel install to PyPI | `pipx runpip obfuscidian install --upgrade obfuscidian` |
65
+ | pip user install, outside a venv | `python3 -m pip install --user --upgrade obfuscidian` |
66
+ | Activated venv | `python -m pip install --upgrade obfuscidian` |
67
+
68
+ Use the original installation's Python; in PowerShell a user install may use
69
+ `py -3.12 -m pip install --user --upgrade obfuscidian`. Afterward, run
70
+ `obfuscidian --version` in your usual shell and check the exact executable used
71
+ by scheduled jobs. pipx needs no activation. A source/wheel pipx install normally
72
+ retains its original source for `pipx upgrade`; use `runpip` again for subsequent
73
+ PyPI updates, or follow the local-source instructions in
74
+ [Updating Obfuscidian](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/getting-started/updating.md).
75
+
76
+ The CLI checks PyPI for newer stable versions and displays an advisory on stderr,
77
+ also recording it when an optional private operational log opens. Set
78
+ `OBFUSCIDIAN_SUPPRESS_UPDATE_NOTICE=true` or `1` to disable the request and notice.
79
+ Checks never install updates. Subscribe to repository releases through GitHub
80
+ **Watch → Custom → Releases** and read the [changelog](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/CHANGELOG.md).
81
+ The notice links to [update instructions](https://bit.ly/updating-obfuscidian).
82
+ The [update guide](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/getting-started/updating.md) covers all installation
83
+ methods, failed checks and competing PATH entries.
84
+
85
+ ## First backup and restore
86
+
87
+ New to command-line backups? Start with [What is Obfuscidian?](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/getting-started/what-is-obfuscidian.md)
88
+ and the [Quickstart](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/getting-started/quickstart.md). The beginner pages introduce keys,
89
+ backup choices and restore steps one topic at a time.
90
+
91
+ Follow the [complete synthetic rehearsal](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/guides/restore-rehearsal.md)
92
+ before using a real vault. It creates a private key outside both vaults,
93
+ previews and writes a fresh backup, verifies every object, restores to a new
94
+ location and compares all bytes and directories.
95
+
96
+ For existing synthetic locations and their external key:
97
+
98
+ ```sh
99
+ obfuscidian shroud fresh --origin ./vault --mirror ./mirror \
100
+ --key ./keys/obfuscidian-demo.key --non-interactive --dry-run
101
+ obfuscidian verify --mirror ./mirror --key ./keys/obfuscidian-demo.key --non-interactive
102
+ obfuscidian unshroud fresh --mirror ./mirror --origin ./restored \
103
+ --key ./keys/obfuscidian-demo.key --non-interactive --dry-run
104
+ ```
105
+
106
+ The mirror must exist for verify and restore. Replace `--dry-run` with an intended
107
+ write only after review. `--non-interactive` never supplies replacement consent;
108
+ `--yes` does, without bypassing validation. Pause editing and sync during writes.
109
+
110
+ Keep a separate offline key backup: key loss prevents decryption, with no recovery
111
+ bypass. `shroud merge` retains deleted/renamed/excluded historical entries, so
112
+ those notes can return on restore. Fresh replacement retains previous payloads
113
+ outside the vault and Git; **restore rollback contains sensitive plaintext**.
114
+ Verification and dry runs create no application files or logs. Git merge restore
115
+ creates a separate review branch/worktree with differences left uncommitted;
116
+ Obfuscidian never stages, commits, merges or pushes them.
117
+
118
+ ## Documentation
119
+
120
+ - [Configuration and key custody](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/CONFIGURATION.md)
121
+ - [Fresh/additive backup](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/BACKUP.md), [verification](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/VERIFY.md) and [restore](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/RESTORE.md)
122
+ - [Command reference](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/reference/cli.md) and [output/privacy/logging](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/CLI.md)
123
+ - [Security and limits](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/SECURITY.md), [private reporting policy](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/SECURITY.md) and [troubleshooting](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/TROUBLESHOOTING.md)
124
+ - [Contributor guide](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/CONTRIBUTING.md) and [changelog](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/CHANGELOG.md)
125
+
126
+ Build the local Sphinx/reST/MyST site with the PyData theme (dark by default,
127
+ with a reader-selectable light mode):
128
+
129
+ ```sh
130
+ poetry install --with dev,docs
131
+ poetry run sphinx-build -W --keep-going -E -a -b html docs docs/_build/html
132
+ poetry run python .github/scripts/check_docs.py docs/_build/html
133
+ ```
134
+
135
+ Open `docs/_build/html/index.html`. See [documentation maintenance](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/docs/maintainers/documentation.md)
136
+ for tutorial tests, rendered/accessibility review and optional external link checks.
137
+ This build does not publish or configure hosting.
138
+
139
+ ## Development
140
+
141
+ Use Poetry 2.2 or newer, below 3.0. Runtime dependencies have one authoritative
142
+ list in `pyproject.toml`; `poetry.lock` records developer and optional docs tools.
143
+ The normal pytest suite is offline and uses only synthetic temporary fixtures.
144
+
145
+ ```sh
146
+ poetry install --with dev
147
+ poetry check --lock --strict
148
+ poetry run ruff check .
149
+ poetry run ruff format --check .
150
+ poetry run pytest -q
151
+ poetry run bandit -r src/obfuscidian
152
+ poetry build
153
+ ```
154
+
155
+ Read [AGENTS.md](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/AGENTS.md) and [CONTRIBUTING.md](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/CONTRIBUTING.md) before changing
156
+ code. Keep work within the requested task and leave changes reviewable.
157
+ Git history and publication actions require separate maintainer authorization.
158
+ The project is licensed under [Apache-2.0](https://github.com/jeffshurtliff/obfuscidian/blob/1.0.0/LICENSE).
159
+
160
+ ---
161
+
162
+ _This utility is considered unofficial and is in no way endorsed or supported by [Obsidian](https://obsidian.md/terms)._
@@ -0,0 +1,21 @@
1
+ # Security policy
2
+
3
+ Report suspected vulnerabilities in Obfuscidian 1.0.0 and the current source
4
+ privately. No fixed support window, independent security certification or
5
+ guaranteed recovery is claimed. Include the affected version in your report.
6
+
7
+ Use the repository's GitHub **Security → Report a vulnerability** action if
8
+ private reporting is enabled; its availability is not assumed. If unavailable,
9
+ contact the maintainer privately at **jeff@shurt.us**, the public maintainer
10
+ address in `pyproject.toml`. Start with a sanitized summary and agree on a secure
11
+ channel before sharing sensitive details. No response deadline is promised.
12
+
13
+ Never send real keys, credentials or vault data. Do not publish exploit payloads,
14
+ detailed attack instructions, sensitive environment information or identifying
15
+ local paths in issues. Public security issue templates are for sanitized,
16
+ non-sensitive hardening tracking only. Coordinate sensitive findings privately;
17
+ do not copy private details into public discussion.
18
+
19
+ For the threat model, key custody, resource limits and recovery boundaries, see
20
+ [the security guide](docs/SECURITY.md). Contributor handling is governed by
21
+ [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md).