pulumi-journaling 3.274.1.post1__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.
@@ -0,0 +1,5 @@
1
+ # Authors
2
+
3
+ 1. **E Brake** <ebrake123@icloud.com> — maintainer of pulumi-journaling; durable DIY journaling, recovery hardening, storage support and distribution
4
+ 2. **Jason Rowsell** — initial DIY journaling prototype in [Pulumi PR #22074](https://github.com/pulumi/pulumi/pull/22074)
5
+ 3. **Pulumi Corporation and contributors** — upstream CLI, deployment engine, language hosts and SDKs; see the [upstream history](https://github.com/pulumi/pulumi/graphs/contributors)
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,2 @@
1
+ include LICENSE NOTICE AUTHORS.md README.md
2
+ recursive-include python/pulumi_journaling *.py *.json
@@ -0,0 +1,18 @@
1
+ pulumi-journaling
2
+ Independent fork maintained by E Brake <ebrake123@icloud.com>.
3
+
4
+ Based on Pulumi, Copyright Pulumi Corporation and contributors,
5
+ licensed under the Apache License, Version 2.0. The original license and
6
+ copyright notices are retained in the source distribution.
7
+
8
+ DIY journaling is based on Jason Rowsell's prototype:
9
+ https://github.com/pulumi/pulumi/pull/22074
10
+ E Brake hardened and extended that basis with encrypted durable writes,
11
+ contiguous-prefix acknowledgement and replay, guarded checkpoints, epoch
12
+ identity and hash validation, native stack locking, crash-safe recovery and
13
+ consolidation, read-only isolation, evidence-preserving discard, backup and
14
+ retention support, compression handling, and multi-backend conditional writes.
15
+
16
+ This project is independently maintained and is not affiliated with,
17
+ sponsored by, or endorsed by Pulumi Corporation. Pulumi is a trademark of
18
+ Pulumi Corporation.
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.4
2
+ Name: pulumi-journaling
3
+ Version: 3.274.1.post1
4
+ Summary: Independent Pulumi CLI fork with hardened, recoverable journaling for every DIY storage backend
5
+ Author: Pulumi Corporation and contributors
6
+ Author-email: E Brake <ebrake123@icloud.com>
7
+ Maintainer-email: E Brake <ebrake123@icloud.com>
8
+ License-Expression: Apache-2.0
9
+ Project-URL: Homepage, https://github.com/ebrake/pulumi-journaling
10
+ Project-URL: Documentation, https://github.com/ebrake/pulumi-journaling/blob/journaling/docs/diy-journaling.md
11
+ Project-URL: Source, https://github.com/ebrake/pulumi-journaling
12
+ Project-URL: Issues, https://github.com/ebrake/pulumi-journaling/issues
13
+ Project-URL: Upstream, https://github.com/pulumi/pulumi
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Topic :: System :: Systems Administration
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ License-File: NOTICE
22
+ License-File: AUTHORS.md
23
+ Requires-Dist: pulumi==3.274.1
24
+ Dynamic: license-file
25
+
26
+ # pulumi-journaling
27
+
28
+ An independent fork of [Pulumi](https://github.com/pulumi/pulumi), maintained by **E Brake** <ebrake123@icloud.com>, with hardened, recoverable journaling for every DIY state storage backend: local files, Amazon S3 and compatible stores, Google Cloud Storage, Azure Blob Storage, and PostgreSQL. Based on upstream **v3.274.1** at commit [`8f735e662d805b7a5bda70931bd627c69fbf38b8`](https://github.com/pulumi/pulumi/commit/8f735e662d805b7a5bda70931bd627c69fbf38b8), the latest stable release when this fork was prepared.
29
+
30
+ This project is independently maintained and is not affiliated with, sponsored by, or endorsed by Pulumi Corporation. Pulumi is a trademark of Pulumi Corporation.
31
+
32
+ ## Install
33
+
34
+ ```sh
35
+ python -m pip install pulumi-journaling==3.274.1.post1
36
+ pulumi-journaling version
37
+ ```
38
+
39
+ The Python distribution provides both `pulumi-journaling` and `pulumi` commands, plus the matching upstream Python SDK, so existing `import pulumi` programs continue to work. On first invocation, the launcher downloads the matching CLI and language hosts from this fork's [GitHub releases](https://github.com/ebrake/pulumi-journaling/releases), verifies the SHA-256 checksum embedded in the Python package, and caches the bundle. That first invocation requires network access. Set `PULUMI_JOURNALING_CACHE` to choose the cache directory. Linux and macOS on x86-64 and ARM64 are supported; Windows packages are not currently published.
40
+
41
+ The Python launcher enables DIY journaling by default. Existing Pulumi commands and backend URLs continue to work:
42
+
43
+ ```sh
44
+ pulumi login 's3://my-state-bucket'
45
+ pulumi up
46
+ ```
47
+
48
+ Set `PULUMI_DIY_BACKEND_JOURNALING=false` to stop creating new journal epochs. Recovery of an unfinished epoch still runs before a mutating operation. Standalone GitHub bundles require `PULUMI_DIY_BACKEND_JOURNALING=true` to opt in. Pulumi Cloud retains its upstream service-managed persistence and journaling behavior.
49
+
50
+ ## Basis and hardening
51
+
52
+ DIY journaling is based on **Jason Rowsell's prototype in [Pulumi PR #22074](https://github.com/pulumi/pulumi/pull/22074)**. E Brake hardened and extended that basis with:
53
+
54
+ - Encrypted immutable entries, bounded asynchronous writes, and acknowledgements that wait for the entire submitted prefix to become durable
55
+ - Epoch identity, checkpoint hashes and required-feature guards that prevent stock clients from consuming an unfinished journal
56
+ - Native stack locking, crash-safe consolidation, idempotent recovery, and preservation of unexpected or corrupt state
57
+ - Consistent read-only access to the last clean checkpoint, provider-free recovery, and explicit evidence-preserving discard
58
+ - Checkpoint backups, retention and compression support, integrity reporting, and protection against completing a replaced epoch
59
+ - Conditional checkpoint replacement for GCS generations, S3 ETags Azure ETags, and exact PostgreSQL row versions, plus atomic replacement and fsync for local files
60
+ - Fault-injection, cancellation, durability-ordering, concurrent-reader, recovery and storage-driver tests; version-pinned CLI bundles and a checksummed Python launcher
61
+
62
+ See the [journaling and recovery guide](https://github.com/ebrake/pulumi-journaling/blob/journaling/docs/diy-journaling.md) for operational details and tradeoffs. S3-compatible services must implement conditional writes and strongly consistent reads and listings. An endpoint that rejects required preconditions fails the operation; the CLI does not fall back to unconditional checkpoint replacement.
63
+
64
+ ## Recovery
65
+
66
+ ```sh
67
+ pulumi state journal recover --stack organization/project/stack
68
+ ```
69
+
70
+ Recovery invokes no resource providers. If the previous process crashed, first verify it has stopped, then remove its stale native lock with `pulumi cancel`. If recovery refuses corrupt or unexplained state, preserve the evidence and consult the [recovery guide](https://github.com/ebrake/pulumi-journaling/blob/journaling/docs/diy-journaling.md) before using `pulumi state journal discard --yes`.
71
+
72
+ Complete recovery before changing to an upstream CLI or another fork. Clean snapshots and provider packages retain upstream contracts.
73
+
74
+ ## Development and releases
75
+
76
+ The [release configuration](https://github.com/ebrake/pulumi-journaling/blob/journaling/journaling-release.json) pins the upstream commit and archive checksums. The [validation workflow](https://github.com/ebrake/pulumi-journaling/blob/journaling/.github/workflows/journaling-test.yml) runs regression tests, linters, lifecycle tests and the actual file, GCS, S3, Azure and PostgreSQL storage drivers against isolated local emulators. The [release workflow](https://github.com/ebrake/pulumi-journaling/blob/journaling/.github/workflows/journaling-release.yml) builds all four platform bundles, exercises the CLI, packages the launcher with the resulting checksums, and can publish to GitHub and PyPI.
77
+
78
+ The upstream [contributing guide](https://github.com/ebrake/pulumi-journaling/blob/journaling/CONTRIBUTING.md) covers the Go monorepo. Report fork issues in [this repository](https://github.com/ebrake/pulumi-journaling/issues). See [authors](https://github.com/ebrake/pulumi-journaling/blob/journaling/AUTHORS.md), [notices](https://github.com/ebrake/pulumi-journaling/blob/journaling/NOTICE) and the [Apache 2.0 license](https://github.com/ebrake/pulumi-journaling/blob/journaling/LICENSE).
@@ -0,0 +1,53 @@
1
+ # pulumi-journaling
2
+
3
+ An independent fork of [Pulumi](https://github.com/pulumi/pulumi), maintained by **E Brake** <ebrake123@icloud.com>, with hardened, recoverable journaling for every DIY state storage backend: local files, Amazon S3 and compatible stores, Google Cloud Storage, Azure Blob Storage, and PostgreSQL. Based on upstream **v3.274.1** at commit [`8f735e662d805b7a5bda70931bd627c69fbf38b8`](https://github.com/pulumi/pulumi/commit/8f735e662d805b7a5bda70931bd627c69fbf38b8), the latest stable release when this fork was prepared.
4
+
5
+ This project is independently maintained and is not affiliated with, sponsored by, or endorsed by Pulumi Corporation. Pulumi is a trademark of Pulumi Corporation.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ python -m pip install pulumi-journaling==3.274.1.post1
11
+ pulumi-journaling version
12
+ ```
13
+
14
+ The Python distribution provides both `pulumi-journaling` and `pulumi` commands, plus the matching upstream Python SDK, so existing `import pulumi` programs continue to work. On first invocation, the launcher downloads the matching CLI and language hosts from this fork's [GitHub releases](https://github.com/ebrake/pulumi-journaling/releases), verifies the SHA-256 checksum embedded in the Python package, and caches the bundle. That first invocation requires network access. Set `PULUMI_JOURNALING_CACHE` to choose the cache directory. Linux and macOS on x86-64 and ARM64 are supported; Windows packages are not currently published.
15
+
16
+ The Python launcher enables DIY journaling by default. Existing Pulumi commands and backend URLs continue to work:
17
+
18
+ ```sh
19
+ pulumi login 's3://my-state-bucket'
20
+ pulumi up
21
+ ```
22
+
23
+ Set `PULUMI_DIY_BACKEND_JOURNALING=false` to stop creating new journal epochs. Recovery of an unfinished epoch still runs before a mutating operation. Standalone GitHub bundles require `PULUMI_DIY_BACKEND_JOURNALING=true` to opt in. Pulumi Cloud retains its upstream service-managed persistence and journaling behavior.
24
+
25
+ ## Basis and hardening
26
+
27
+ DIY journaling is based on **Jason Rowsell's prototype in [Pulumi PR #22074](https://github.com/pulumi/pulumi/pull/22074)**. E Brake hardened and extended that basis with:
28
+
29
+ - Encrypted immutable entries, bounded asynchronous writes, and acknowledgements that wait for the entire submitted prefix to become durable
30
+ - Epoch identity, checkpoint hashes and required-feature guards that prevent stock clients from consuming an unfinished journal
31
+ - Native stack locking, crash-safe consolidation, idempotent recovery, and preservation of unexpected or corrupt state
32
+ - Consistent read-only access to the last clean checkpoint, provider-free recovery, and explicit evidence-preserving discard
33
+ - Checkpoint backups, retention and compression support, integrity reporting, and protection against completing a replaced epoch
34
+ - Conditional checkpoint replacement for GCS generations, S3 ETags Azure ETags, and exact PostgreSQL row versions, plus atomic replacement and fsync for local files
35
+ - Fault-injection, cancellation, durability-ordering, concurrent-reader, recovery and storage-driver tests; version-pinned CLI bundles and a checksummed Python launcher
36
+
37
+ See the [journaling and recovery guide](https://github.com/ebrake/pulumi-journaling/blob/journaling/docs/diy-journaling.md) for operational details and tradeoffs. S3-compatible services must implement conditional writes and strongly consistent reads and listings. An endpoint that rejects required preconditions fails the operation; the CLI does not fall back to unconditional checkpoint replacement.
38
+
39
+ ## Recovery
40
+
41
+ ```sh
42
+ pulumi state journal recover --stack organization/project/stack
43
+ ```
44
+
45
+ Recovery invokes no resource providers. If the previous process crashed, first verify it has stopped, then remove its stale native lock with `pulumi cancel`. If recovery refuses corrupt or unexplained state, preserve the evidence and consult the [recovery guide](https://github.com/ebrake/pulumi-journaling/blob/journaling/docs/diy-journaling.md) before using `pulumi state journal discard --yes`.
46
+
47
+ Complete recovery before changing to an upstream CLI or another fork. Clean snapshots and provider packages retain upstream contracts.
48
+
49
+ ## Development and releases
50
+
51
+ The [release configuration](https://github.com/ebrake/pulumi-journaling/blob/journaling/journaling-release.json) pins the upstream commit and archive checksums. The [validation workflow](https://github.com/ebrake/pulumi-journaling/blob/journaling/.github/workflows/journaling-test.yml) runs regression tests, linters, lifecycle tests and the actual file, GCS, S3, Azure and PostgreSQL storage drivers against isolated local emulators. The [release workflow](https://github.com/ebrake/pulumi-journaling/blob/journaling/.github/workflows/journaling-release.yml) builds all four platform bundles, exercises the CLI, packages the launcher with the resulting checksums, and can publish to GitHub and PyPI.
52
+
53
+ The upstream [contributing guide](https://github.com/ebrake/pulumi-journaling/blob/journaling/CONTRIBUTING.md) covers the Go monorepo. Report fork issues in [this repository](https://github.com/ebrake/pulumi-journaling/issues). See [authors](https://github.com/ebrake/pulumi-journaling/blob/journaling/AUTHORS.md), [notices](https://github.com/ebrake/pulumi-journaling/blob/journaling/NOTICE) and the [Apache 2.0 license](https://github.com/ebrake/pulumi-journaling/blob/journaling/LICENSE).
@@ -0,0 +1,43 @@
1
+ # Modified by E Brake for the independent pulumi-journaling distribution.
2
+ [build-system]
3
+ requires = ["setuptools>=77"]
4
+ build-backend = "setuptools.build_meta"
5
+
6
+ [project]
7
+ name = "pulumi-journaling"
8
+ version = "3.274.1.post1"
9
+ description = "Independent Pulumi CLI fork with hardened, recoverable journaling for every DIY storage backend"
10
+ readme = "README.md"
11
+ requires-python = ">=3.10"
12
+ license = "Apache-2.0"
13
+ license-files = ["LICENSE", "NOTICE", "AUTHORS.md"]
14
+ authors = [
15
+ {name = "E Brake", email = "ebrake123@icloud.com"},
16
+ {name = "Pulumi Corporation and contributors"},
17
+ ]
18
+ maintainers = [{name = "E Brake", email = "ebrake123@icloud.com"}]
19
+ dependencies = ["pulumi==3.274.1"]
20
+ classifiers = [
21
+ "Programming Language :: Python :: 3",
22
+ "Operating System :: POSIX :: Linux",
23
+ "Operating System :: MacOS",
24
+ "Topic :: System :: Systems Administration",
25
+ ]
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/ebrake/pulumi-journaling"
29
+ Documentation = "https://github.com/ebrake/pulumi-journaling/blob/journaling/docs/diy-journaling.md"
30
+ Source = "https://github.com/ebrake/pulumi-journaling"
31
+ Issues = "https://github.com/ebrake/pulumi-journaling/issues"
32
+ Upstream = "https://github.com/pulumi/pulumi"
33
+
34
+ [project.scripts]
35
+ pulumi = "pulumi_journaling:main"
36
+ pulumi-journaling = "pulumi_journaling:main"
37
+
38
+ [tool.setuptools.packages.find]
39
+ where = ["python"]
40
+ include = ["pulumi_journaling*"]
41
+
42
+ [tool.setuptools.package-data]
43
+ pulumi_journaling = ["release.json"]
@@ -0,0 +1,126 @@
1
+ # Copyright 2026, E Brake. Licensed under the Apache License, Version 2.0.
2
+ """Launch the verified, version-pinned pulumi-journaling CLI bundle."""
3
+
4
+ import hashlib
5
+ import json
6
+ import os
7
+ import platform
8
+ import re
9
+ import shutil
10
+ import sys
11
+ import tarfile
12
+ import tempfile
13
+ import urllib.parse
14
+ import urllib.request
15
+ from pathlib import Path, PurePosixPath
16
+
17
+
18
+ def platform_name():
19
+ system = {"Linux": "linux", "Darwin": "darwin"}.get(platform.system())
20
+ arch = {
21
+ "x86_64": "amd64",
22
+ "amd64": "amd64",
23
+ "aarch64": "arm64",
24
+ "arm64": "arm64",
25
+ }.get(platform.machine().lower())
26
+ if not system or not arch:
27
+ raise RuntimeError(
28
+ "pulumi-journaling supports Linux and macOS on x86-64 and ARM64"
29
+ )
30
+ return f"{system}-{arch}"
31
+
32
+
33
+ def extract_bundle(archive, destination):
34
+ """Extract regular bundle files without accepting links or unsafe names."""
35
+ seen = set()
36
+ with tarfile.open(archive, "r:gz") as bundle:
37
+ for entry in bundle:
38
+ name = PurePosixPath(entry.name)
39
+ if (
40
+ not entry.isfile()
41
+ or name.is_absolute()
42
+ or ".." in name.parts
43
+ or "\\" in entry.name
44
+ or len(name.parts) < 2
45
+ or name.parts[0] != "pulumi"
46
+ or entry.name in seen
47
+ ):
48
+ raise ValueError("Unsafe or duplicate CLI bundle member")
49
+ seen.add(entry.name)
50
+ target = destination.joinpath(*name.parts)
51
+ target.parent.mkdir(parents=True, exist_ok=True)
52
+ source = bundle.extractfile(entry)
53
+ if source is None:
54
+ raise ValueError("CLI bundle member has no file contents")
55
+ with source, target.open("xb") as output:
56
+ shutil.copyfileobj(source, output)
57
+ target.chmod(0o755 if entry.mode & 0o111 else 0o644)
58
+ if not (destination / "pulumi/pulumi").is_file():
59
+ raise ValueError("CLI bundle is missing pulumi/pulumi")
60
+
61
+
62
+ def ensure_cli():
63
+ manifest = json.loads(Path(__file__).with_name("release.json").read_text())
64
+ target_platform = platform_name()
65
+ artifact = manifest["artifacts"].get(target_platform)
66
+ if artifact is None:
67
+ raise RuntimeError(
68
+ "No verified bundle is packaged for this platform; install a published pulumi-journaling release"
69
+ )
70
+ checksum = artifact["sha256"]
71
+ parsed = urllib.parse.urlparse(artifact["url"])
72
+ if (
73
+ not re.fullmatch(r"[0-9a-f]{64}", checksum)
74
+ or parsed.scheme != "https"
75
+ or parsed.netloc != "github.com"
76
+ or not parsed.path.startswith("/ebrake/pulumi-journaling/releases/download/")
77
+ ):
78
+ raise ValueError("Invalid packaged CLI artifact")
79
+ cache = Path(
80
+ os.environ.get(
81
+ "PULUMI_JOURNALING_CACHE", Path.home() / ".cache/pulumi-journaling"
82
+ )
83
+ )
84
+ cache.mkdir(parents=True, exist_ok=True)
85
+ target = cache / f"{target_platform}-{checksum}"
86
+ binary = target / "pulumi/pulumi"
87
+ if binary.is_file() and (target / ".complete").is_file():
88
+ return binary
89
+ print(
90
+ f"Installing verified pulumi-journaling CLI for {target_platform}...",
91
+ file=sys.stderr,
92
+ )
93
+ with tempfile.TemporaryDirectory(prefix=".install-", dir=cache) as temporary:
94
+ root = Path(temporary)
95
+ archive = root / "bundle.tar.gz"
96
+ digest = hashlib.sha256()
97
+ with (
98
+ urllib.request.urlopen(artifact["url"], timeout=120) as response,
99
+ archive.open("wb") as output,
100
+ ):
101
+ while data := response.read(1024 * 1024):
102
+ output.write(data)
103
+ digest.update(data)
104
+ if digest.hexdigest() != checksum:
105
+ raise ValueError("CLI bundle checksum mismatch")
106
+ extracted = root / "extracted"
107
+ extracted.mkdir()
108
+ extract_bundle(archive, extracted)
109
+ (extracted / ".complete").write_text(checksum)
110
+ try:
111
+ extracted.rename(target)
112
+ except OSError:
113
+ if not (binary.is_file() and (target / ".complete").is_file()):
114
+ raise
115
+ return binary
116
+
117
+
118
+ def main():
119
+ try:
120
+ binary = ensure_cli()
121
+ except (OSError, ValueError, RuntimeError, KeyError) as error:
122
+ print(f"pulumi-journaling: {error}", file=sys.stderr)
123
+ raise SystemExit(1) from error
124
+ os.environ.setdefault("PULUMI_DIY_BACKEND_JOURNALING", "true")
125
+ os.environ.setdefault("PULUMI_SKIP_UPDATE_CHECK", "true")
126
+ os.execv(str(binary), [str(binary), *sys.argv[1:]])
@@ -0,0 +1,25 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "repository": "ebrake/pulumi-journaling",
4
+ "version": "3.274.1+journaling.1",
5
+ "upstreamVersion": "3.274.1",
6
+ "sourceCommit": "44468318774b0c994121405f4d09453832c6e684",
7
+ "artifacts": {
8
+ "darwin-amd64": {
9
+ "url": "https://github.com/ebrake/pulumi-journaling/releases/download/v3.274.1+journaling.1/pulumi-journaling-v3.274.1-journaling.1-darwin-amd64.tar.gz",
10
+ "sha256": "59a53cbbfd4aefd085a916eba3f0df990c67b5b9502b87fd08ec9d0c5b9601dd"
11
+ },
12
+ "darwin-arm64": {
13
+ "url": "https://github.com/ebrake/pulumi-journaling/releases/download/v3.274.1+journaling.1/pulumi-journaling-v3.274.1-journaling.1-darwin-arm64.tar.gz",
14
+ "sha256": "5e63d3f1ecc4975dc693e2a55578186547ff3b6784e23d08ee5aedb2897b65a6"
15
+ },
16
+ "linux-amd64": {
17
+ "url": "https://github.com/ebrake/pulumi-journaling/releases/download/v3.274.1+journaling.1/pulumi-journaling-v3.274.1-journaling.1-linux-amd64.tar.gz",
18
+ "sha256": "e94426d338310d436b900ed4e7fb6334572c7ed3bb45d1ba68db4c7067526842"
19
+ },
20
+ "linux-arm64": {
21
+ "url": "https://github.com/ebrake/pulumi-journaling/releases/download/v3.274.1+journaling.1/pulumi-journaling-v3.274.1-journaling.1-linux-arm64.tar.gz",
22
+ "sha256": "31349ac63bcc44a2b24ed2ddb413e4e656327bd6891dca7089768b76b732630d"
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.4
2
+ Name: pulumi-journaling
3
+ Version: 3.274.1.post1
4
+ Summary: Independent Pulumi CLI fork with hardened, recoverable journaling for every DIY storage backend
5
+ Author: Pulumi Corporation and contributors
6
+ Author-email: E Brake <ebrake123@icloud.com>
7
+ Maintainer-email: E Brake <ebrake123@icloud.com>
8
+ License-Expression: Apache-2.0
9
+ Project-URL: Homepage, https://github.com/ebrake/pulumi-journaling
10
+ Project-URL: Documentation, https://github.com/ebrake/pulumi-journaling/blob/journaling/docs/diy-journaling.md
11
+ Project-URL: Source, https://github.com/ebrake/pulumi-journaling
12
+ Project-URL: Issues, https://github.com/ebrake/pulumi-journaling/issues
13
+ Project-URL: Upstream, https://github.com/pulumi/pulumi
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Topic :: System :: Systems Administration
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ License-File: NOTICE
22
+ License-File: AUTHORS.md
23
+ Requires-Dist: pulumi==3.274.1
24
+ Dynamic: license-file
25
+
26
+ # pulumi-journaling
27
+
28
+ An independent fork of [Pulumi](https://github.com/pulumi/pulumi), maintained by **E Brake** <ebrake123@icloud.com>, with hardened, recoverable journaling for every DIY state storage backend: local files, Amazon S3 and compatible stores, Google Cloud Storage, Azure Blob Storage, and PostgreSQL. Based on upstream **v3.274.1** at commit [`8f735e662d805b7a5bda70931bd627c69fbf38b8`](https://github.com/pulumi/pulumi/commit/8f735e662d805b7a5bda70931bd627c69fbf38b8), the latest stable release when this fork was prepared.
29
+
30
+ This project is independently maintained and is not affiliated with, sponsored by, or endorsed by Pulumi Corporation. Pulumi is a trademark of Pulumi Corporation.
31
+
32
+ ## Install
33
+
34
+ ```sh
35
+ python -m pip install pulumi-journaling==3.274.1.post1
36
+ pulumi-journaling version
37
+ ```
38
+
39
+ The Python distribution provides both `pulumi-journaling` and `pulumi` commands, plus the matching upstream Python SDK, so existing `import pulumi` programs continue to work. On first invocation, the launcher downloads the matching CLI and language hosts from this fork's [GitHub releases](https://github.com/ebrake/pulumi-journaling/releases), verifies the SHA-256 checksum embedded in the Python package, and caches the bundle. That first invocation requires network access. Set `PULUMI_JOURNALING_CACHE` to choose the cache directory. Linux and macOS on x86-64 and ARM64 are supported; Windows packages are not currently published.
40
+
41
+ The Python launcher enables DIY journaling by default. Existing Pulumi commands and backend URLs continue to work:
42
+
43
+ ```sh
44
+ pulumi login 's3://my-state-bucket'
45
+ pulumi up
46
+ ```
47
+
48
+ Set `PULUMI_DIY_BACKEND_JOURNALING=false` to stop creating new journal epochs. Recovery of an unfinished epoch still runs before a mutating operation. Standalone GitHub bundles require `PULUMI_DIY_BACKEND_JOURNALING=true` to opt in. Pulumi Cloud retains its upstream service-managed persistence and journaling behavior.
49
+
50
+ ## Basis and hardening
51
+
52
+ DIY journaling is based on **Jason Rowsell's prototype in [Pulumi PR #22074](https://github.com/pulumi/pulumi/pull/22074)**. E Brake hardened and extended that basis with:
53
+
54
+ - Encrypted immutable entries, bounded asynchronous writes, and acknowledgements that wait for the entire submitted prefix to become durable
55
+ - Epoch identity, checkpoint hashes and required-feature guards that prevent stock clients from consuming an unfinished journal
56
+ - Native stack locking, crash-safe consolidation, idempotent recovery, and preservation of unexpected or corrupt state
57
+ - Consistent read-only access to the last clean checkpoint, provider-free recovery, and explicit evidence-preserving discard
58
+ - Checkpoint backups, retention and compression support, integrity reporting, and protection against completing a replaced epoch
59
+ - Conditional checkpoint replacement for GCS generations, S3 ETags Azure ETags, and exact PostgreSQL row versions, plus atomic replacement and fsync for local files
60
+ - Fault-injection, cancellation, durability-ordering, concurrent-reader, recovery and storage-driver tests; version-pinned CLI bundles and a checksummed Python launcher
61
+
62
+ See the [journaling and recovery guide](https://github.com/ebrake/pulumi-journaling/blob/journaling/docs/diy-journaling.md) for operational details and tradeoffs. S3-compatible services must implement conditional writes and strongly consistent reads and listings. An endpoint that rejects required preconditions fails the operation; the CLI does not fall back to unconditional checkpoint replacement.
63
+
64
+ ## Recovery
65
+
66
+ ```sh
67
+ pulumi state journal recover --stack organization/project/stack
68
+ ```
69
+
70
+ Recovery invokes no resource providers. If the previous process crashed, first verify it has stopped, then remove its stale native lock with `pulumi cancel`. If recovery refuses corrupt or unexplained state, preserve the evidence and consult the [recovery guide](https://github.com/ebrake/pulumi-journaling/blob/journaling/docs/diy-journaling.md) before using `pulumi state journal discard --yes`.
71
+
72
+ Complete recovery before changing to an upstream CLI or another fork. Clean snapshots and provider packages retain upstream contracts.
73
+
74
+ ## Development and releases
75
+
76
+ The [release configuration](https://github.com/ebrake/pulumi-journaling/blob/journaling/journaling-release.json) pins the upstream commit and archive checksums. The [validation workflow](https://github.com/ebrake/pulumi-journaling/blob/journaling/.github/workflows/journaling-test.yml) runs regression tests, linters, lifecycle tests and the actual file, GCS, S3, Azure and PostgreSQL storage drivers against isolated local emulators. The [release workflow](https://github.com/ebrake/pulumi-journaling/blob/journaling/.github/workflows/journaling-release.yml) builds all four platform bundles, exercises the CLI, packages the launcher with the resulting checksums, and can publish to GitHub and PyPI.
77
+
78
+ The upstream [contributing guide](https://github.com/ebrake/pulumi-journaling/blob/journaling/CONTRIBUTING.md) covers the Go monorepo. Report fork issues in [this repository](https://github.com/ebrake/pulumi-journaling/issues). See [authors](https://github.com/ebrake/pulumi-journaling/blob/journaling/AUTHORS.md), [notices](https://github.com/ebrake/pulumi-journaling/blob/journaling/NOTICE) and the [Apache 2.0 license](https://github.com/ebrake/pulumi-journaling/blob/journaling/LICENSE).
@@ -0,0 +1,14 @@
1
+ AUTHORS.md
2
+ LICENSE
3
+ MANIFEST.in
4
+ NOTICE
5
+ README.md
6
+ pyproject.toml
7
+ python/pulumi_journaling/__init__.py
8
+ python/pulumi_journaling/release.json
9
+ python/pulumi_journaling.egg-info/PKG-INFO
10
+ python/pulumi_journaling.egg-info/SOURCES.txt
11
+ python/pulumi_journaling.egg-info/dependency_links.txt
12
+ python/pulumi_journaling.egg-info/entry_points.txt
13
+ python/pulumi_journaling.egg-info/requires.txt
14
+ python/pulumi_journaling.egg-info/top_level.txt
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ pulumi = pulumi_journaling:main
3
+ pulumi-journaling = pulumi_journaling:main
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+