cloudleak-cli 0.1.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.
- cloudleak_cli-0.1.0/.gitignore +20 -0
- cloudleak_cli-0.1.0/CHANGELOG.md +65 -0
- cloudleak_cli-0.1.0/LICENSE +201 -0
- cloudleak_cli-0.1.0/NOTICE +30 -0
- cloudleak_cli-0.1.0/PKG-INFO +284 -0
- cloudleak_cli-0.1.0/README.md +248 -0
- cloudleak_cli-0.1.0/SECURITY.md +63 -0
- cloudleak_cli-0.1.0/docs/architecture.md +63 -0
- cloudleak_cli-0.1.0/docs/checks-and-rules.md +52 -0
- cloudleak_cli-0.1.0/docs/validation.md +64 -0
- cloudleak_cli-0.1.0/pyproject.toml +79 -0
- cloudleak_cli-0.1.0/samples/README.md +5 -0
- cloudleak_cli-0.1.0/samples/invoices.csv +3 -0
- cloudleak_cli-0.1.0/samples/m1/aws/SYNTHETIC_TEST_FIXTURE_ONLY-aws-cur2-2026-09.csv +395 -0
- cloudleak_cli-0.1.0/samples/m1/azure-actual/SYNTHETIC_TEST_FIXTURE_ONLY-azure-actual-2026-09.csv +152 -0
- cloudleak_cli-0.1.0/samples/m1/azure-amortized/SYNTHETIC_TEST_FIXTURE_ONLY-azure-amortized-2026-09.csv +212 -0
- cloudleak_cli-0.1.0/samples/m1/focus/SYNTHETIC_TEST_FIXTURE_ONLY-focus-1.2-2026-09.csv +92 -0
- cloudleak_cli-0.1.0/samples/m1/gcp/SYNTHETIC_TEST_FIXTURE_ONLY-gcp-detailed-2026-09.csv +183 -0
- cloudleak_cli-0.1.0/samples/m2/aws/SYNTHETIC_TEST_FIXTURE_ONLY-aws-cur2-2026-10.csv +409 -0
- cloudleak_cli-0.1.0/samples/m2/azure-actual/SYNTHETIC_TEST_FIXTURE_ONLY-azure-actual-2026-10.csv +157 -0
- cloudleak_cli-0.1.0/samples/m2/azure-amortized/SYNTHETIC_TEST_FIXTURE_ONLY-azure-amortized-2026-10.csv +219 -0
- cloudleak_cli-0.1.0/samples/m2/focus/SYNTHETIC_TEST_FIXTURE_ONLY-focus-1.2-2026-10.csv +95 -0
- cloudleak_cli-0.1.0/samples/m2/gcp/SYNTHETIC_TEST_FIXTURE_ONLY-gcp-detailed-2026-10.csv +189 -0
- cloudleak_cli-0.1.0/src/cloudleak/__init__.py +49 -0
- cloudleak_cli-0.1.0/src/cloudleak/__main__.py +3 -0
- cloudleak_cli-0.1.0/src/cloudleak/_version.py +1 -0
- cloudleak_cli-0.1.0/src/cloudleak/analysis.py +199 -0
- cloudleak_cli-0.1.0/src/cloudleak/cli.py +503 -0
- cloudleak_cli-0.1.0/src/cloudleak/diff.py +99 -0
- cloudleak_cli-0.1.0/src/cloudleak/doctor.py +611 -0
- cloudleak_cli-0.1.0/src/cloudleak/engine.py +487 -0
- cloudleak_cli-0.1.0/src/cloudleak/errors.py +25 -0
- cloudleak_cli-0.1.0/src/cloudleak/findings.py +223 -0
- cloudleak_cli-0.1.0/src/cloudleak/fixtures.py +411 -0
- cloudleak_cli-0.1.0/src/cloudleak/money.py +78 -0
- cloudleak_cli-0.1.0/src/cloudleak/providers/__init__.py +19 -0
- cloudleak_cli-0.1.0/src/cloudleak/providers/aws.py +133 -0
- cloudleak_cli-0.1.0/src/cloudleak/providers/azure.py +163 -0
- cloudleak_cli-0.1.0/src/cloudleak/providers/base.py +244 -0
- cloudleak_cli-0.1.0/src/cloudleak/providers/focus.py +144 -0
- cloudleak_cli-0.1.0/src/cloudleak/providers/gcp.py +147 -0
- cloudleak_cli-0.1.0/src/cloudleak/publication.py +171 -0
- cloudleak_cli-0.1.0/src/cloudleak/py.typed +0 -0
- cloudleak_cli-0.1.0/src/cloudleak/reconcile.py +334 -0
- cloudleak_cli-0.1.0/src/cloudleak/redact.py +655 -0
- cloudleak_cli-0.1.0/src/cloudleak/render/__init__.py +1 -0
- cloudleak_cli-0.1.0/src/cloudleak/render/formats.py +229 -0
- cloudleak_cli-0.1.0/src/cloudleak/render/html.py +390 -0
- cloudleak_cli-0.1.0/src/cloudleak/report.py +138 -0
- cloudleak_cli-0.1.0/src/cloudleak/rules.py +403 -0
- cloudleak_cli-0.1.0/src/cloudleak/schemas/__init__.py +1 -0
- cloudleak_cli-0.1.0/src/cloudleak/schemas/finding.v1.schema.json +122 -0
- cloudleak_cli-0.1.0/src/cloudleak/schemas/report.v1.schema.json +47 -0
- cloudleak_cli-0.1.0/src/cloudleak/sources.py +298 -0
- cloudleak_cli-0.1.0/src/cloudleak/variance.py +426 -0
- cloudleak_cli-0.1.0/tests/__init__.py +0 -0
- cloudleak_cli-0.1.0/tests/conftest.py +72 -0
- cloudleak_cli-0.1.0/tests/test_audit_regressions.py +253 -0
- cloudleak_cli-0.1.0/tests/test_cli.py +186 -0
- cloudleak_cli-0.1.0/tests/test_doctor.py +134 -0
- cloudleak_cli-0.1.0/tests/test_export_shapes.py +141 -0
- cloudleak_cli-0.1.0/tests/test_findings.py +144 -0
- cloudleak_cli-0.1.0/tests/test_ingest.py +145 -0
- cloudleak_cli-0.1.0/tests/test_invoice_scope_precision.py +133 -0
- cloudleak_cli-0.1.0/tests/test_native_providers.py +158 -0
- cloudleak_cli-0.1.0/tests/test_operational_integrity.py +143 -0
- cloudleak_cli-0.1.0/tests/test_redact.py +312 -0
- cloudleak_cli-0.1.0/tests/test_report_decisions.py +158 -0
- cloudleak_cli-0.1.0/tests/test_variance_reconcile_diff.py +140 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*.egg-info/
|
|
4
|
+
build/
|
|
5
|
+
dist/
|
|
6
|
+
.venv/
|
|
7
|
+
venv/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
.ruff_cache/
|
|
10
|
+
.coverage
|
|
11
|
+
# Redaction keys and local workspaces never belong in git.
|
|
12
|
+
.cloudleak/
|
|
13
|
+
*.key
|
|
14
|
+
# Generated reports can contain billing identifiers.
|
|
15
|
+
cloudleak-demo/
|
|
16
|
+
brief.html
|
|
17
|
+
report.html
|
|
18
|
+
report.json
|
|
19
|
+
shareable.zip
|
|
20
|
+
.DS_Store
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes are documented here. This project uses semantic versioning; the
|
|
4
|
+
`cloudleak.finding.v1` and `cloudleak.report.v1` schemas change version on any breaking change.
|
|
5
|
+
|
|
6
|
+
## 0.1.0 (unreleased)
|
|
7
|
+
|
|
8
|
+
CloudLeak is rebuilt as an offline command-line tool. The earlier Next.js upload UI and FastAPI job
|
|
9
|
+
server are retired (preserved in history at `489fbff`): a local tool should not need a web server, API
|
|
10
|
+
keys or a 20 MiB upload cap.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `cloudleak doctor`: 30 data-quality, finality, accounting and FOCUS conformance-gap checks with stable
|
|
14
|
+
IDs; text, JSON, JUnit XML, SARIF and Markdown output.
|
|
15
|
+
- `cloudleak audit`: single-file offline HTML brief plus JSON, Markdown, CSV and SARIF.
|
|
16
|
+
- `cloudleak variance`: exact month-over-month bridge (new, discontinued, volume, rate, credits, tax,
|
|
17
|
+
purchases, adjustments) with per-day normalization for unequal coverage.
|
|
18
|
+
- `cloudleak reconcile`: exact invoice reconciliation by invoice ID or period, with tolerance.
|
|
19
|
+
- `cloudleak diff`: restatement diff between two deliveries of the same period.
|
|
20
|
+
- `cloudleak redact` / `resolve`: keyed pseudonymization with a column registry and a residual-identifier
|
|
21
|
+
gate; fail-closed.
|
|
22
|
+
- `cloudleak demo`, `checks`, `rules`, `schema`.
|
|
23
|
+
- Adapters for AWS CUR legacy and 2.0, Azure Cost Management actual and amortized, GCP standard and
|
|
24
|
+
detailed usage costs, and FOCUS Cost and Usage. Tests include synthetic FOCUS 1.0 through 1.4 headers.
|
|
25
|
+
- `cloudleak.finding.v1` evidence contract with an L1-L5 ladder and a Level-2 ceiling for billing data.
|
|
26
|
+
- Eight Level-2 billing-signature rules (idle IPv4, NAT processing, cross-zone transfer, log ingestion,
|
|
27
|
+
snapshots, unused commitments, gp2 volumes, extended support).
|
|
28
|
+
- DuckDB engine: DECIMAL amounts, a configurable DuckDB memory budget with disk spill, file-access sandbox, no
|
|
29
|
+
extension downloads.
|
|
30
|
+
- GitHub Action, Dockerfile, CI on Linux/macOS/Windows and Python 3.10-3.13, trusted-publishing release
|
|
31
|
+
workflow with SBOM and provenance attestations.
|
|
32
|
+
|
|
33
|
+
### Fixed (adversarial audit before first release)
|
|
34
|
+
- A re-delivered month (two Azure export runs, two downloads of one AWS period) doubled totals with only a
|
|
35
|
+
warning. Doctor now fails when at least half of a file reappears in another (CL-ACC-006).
|
|
36
|
+
- Manifest checks matched files by name only, so an older AWS CUR assembly or Azure export run beside the
|
|
37
|
+
current one passed and doubled totals. Files are now matched on their run folder; stale files and two
|
|
38
|
+
deliveries of the same export and period fail (CL-ING-003).
|
|
39
|
+
- A provider or billing account missing from one month was narrated as "discontinued spend". It is now an
|
|
40
|
+
export gap: a separate bridge driver, no percentage change, a warning in the narrative, and a new check
|
|
41
|
+
(CL-ACC-008).
|
|
42
|
+
- GCP BigQuery Parquet exports (nested STRUCT columns) were rejected as unrecognized. Structs are flattened.
|
|
43
|
+
- Redaction leaked: an ARN's resource name survived when the account ID inside it was replaced first; tag
|
|
44
|
+
values written into free text were not scrubbed; matching was case-sensitive; AWS FOCUS
|
|
45
|
+
`x_CostCategories` passed as a safe column. All fixed, with tests.
|
|
46
|
+
- Redaction took ~36 s per 10,000 rows (a regex alternation over every identifier). It now uses a token
|
|
47
|
+
index: 10k rows in ~1.6 s, 1M rows in ~2 minutes. The residual scan streams instead of loading files.
|
|
48
|
+
- Real Azure EA, GCP and FOCUS column sets no longer stop redaction on unclassified columns (`PartNumber`,
|
|
49
|
+
`project.ancestors`, `adjustment_info.mode`).
|
|
50
|
+
- Header-only inputs passed the doctor; they now fail. Filesystem errors print the path instead of
|
|
51
|
+
"internal error".
|
|
52
|
+
- Reconciling a period that spans several invoices (AWS and AWS Marketplace) now lists each invoice, and no
|
|
53
|
+
longer suggests missing tax when the export is higher than the invoice.
|
|
54
|
+
- Azure actual/amortized detection matched substrings (`contractual`); it now matches whole words.
|
|
55
|
+
- Concurrent first runs of `redact` could race creating the key; the key is now published atomically.
|
|
56
|
+
- Reports no longer present an account name as a resource owner.
|
|
57
|
+
|
|
58
|
+
### Changed
|
|
59
|
+
- License changed from MIT to Apache-2.0 (see NOTICE).
|
|
60
|
+
- PyPI distribution name is `cloudleak-cli` (the name `cloudleak` belongs to an unrelated project).
|
|
61
|
+
|
|
62
|
+
### Removed
|
|
63
|
+
- Web UI, HTTP API, API keys, job queue, pandas dependency.
|
|
64
|
+
- Disk-capacity, generic public-IP, load-balancer and premium-storage "review candidates": billing data
|
|
65
|
+
cannot distinguish them from legitimate production use.
|
|
@@ -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 [yyyy] [name of copyright owner]
|
|
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,30 @@
|
|
|
1
|
+
CloudLeak
|
|
2
|
+
Copyright 2026 The CloudLeak Authors
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
Releases of CloudLeak before 0.1.0 (the web prototype, up to commit 489fbff)
|
|
7
|
+
were published under the MIT License. Any portions carried forward from them
|
|
8
|
+
remain available under these terms:
|
|
9
|
+
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2026 Pranav Ghadge
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: cloudleak-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Offline, zero-IAM audit CLI for AWS, Azure, GCP and FOCUS billing exports: data-quality doctor, invoice reconciliation, month-over-month variance, evidence-graded findings and fail-closed redaction.
|
|
5
|
+
Project-URL: Homepage, https://github.com/pranavg21/cloudleak
|
|
6
|
+
Project-URL: Issues, https://github.com/pranavg21/cloudleak/issues
|
|
7
|
+
Project-URL: Changelog, https://github.com/pranavg21/cloudleak/blob/main/CHANGELOG.md
|
|
8
|
+
Project-URL: Security, https://github.com/pranavg21/cloudleak/blob/main/SECURITY.md
|
|
9
|
+
Author: The CloudLeak Authors
|
|
10
|
+
License-Expression: Apache-2.0
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
License-File: NOTICE
|
|
13
|
+
Keywords: aws-cur,azure-cost-management,billing,cloud-cost,duckdb,finops,focus,gcp-billing,reconciliation
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Environment :: Console
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
18
|
+
Classifier: Intended Audience :: System Administrators
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Topic :: Office/Business :: Financial :: Accounting
|
|
27
|
+
Classifier: Topic :: System :: Systems Administration
|
|
28
|
+
Classifier: Typing :: Typed
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
|
+
Requires-Dist: duckdb<3,>=1.3
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: jsonschema>=4.21; extra == 'dev'
|
|
33
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
34
|
+
Requires-Dist: ruff==0.17.6; extra == 'dev'
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
# CloudLeak
|
|
38
|
+
|
|
39
|
+
**Compare a billing export with an invoice on your own machine, before anyone grants an IAM role.**
|
|
40
|
+
|
|
41
|
+
CloudLeak is an offline command-line tool for the people who are handed a pile of billing exports and asked
|
|
42
|
+
"can we trust these numbers, what changed, and where is money going?": FinOps consultants doing a
|
|
43
|
+
pre-engagement assessment, MSPs scoping a prospect, and platform engineers who inherited the cloud bill.
|
|
44
|
+
|
|
45
|
+
- **`reconcile`** compares billed charges with a supplied invoice and reports the signed difference in the
|
|
46
|
+
invoice currency, including fractions of a cent.
|
|
47
|
+
- **`doctor`** flags missing manifest partitions, duplicate files, mixed Azure cost bases, unparseable
|
|
48
|
+
amounts, inconsistent tag keys and FOCUS columns that are empty throughout an export.
|
|
49
|
+
- **`variance`** explains a month-over-month change as a bridge that adds up exactly: new and discontinued
|
|
50
|
+
spend, usage volume, unit rate, credits, tax and purchases.
|
|
51
|
+
- **`audit`** writes a single-file HTML brief (plus JSON, Markdown, CSV, SARIF) with evidence-graded
|
|
52
|
+
findings and read-only verification commands.
|
|
53
|
+
- **`redact`** pseudonymizes exports so they can be shared with an outside consultant or an AI tool,
|
|
54
|
+
and checks the finished bundle against its publication rules.
|
|
55
|
+
|
|
56
|
+
No cloud credentials. No network access. No telemetry. One runtime dependency
|
|
57
|
+
([DuckDB](https://duckdb.org)). Apache-2.0.
|
|
58
|
+
|
|
59
|
+
## What CloudLeak can and cannot prove
|
|
60
|
+
|
|
61
|
+
| Question | What CloudLeak says |
|
|
62
|
+
| --- | --- |
|
|
63
|
+
| What billed amounts and invoice identifiers does this delivery contain? | **Billing observation** (Level 1). Totals cover the supplied records. The tool reports period finality separately when the export provides evidence. |
|
|
64
|
+
| Which charges have a billing line that names a pattern: idle public IPv4, NAT processing, unused commitment, extended support, gp2 volumes, snapshot storage, log ingestion, cross-zone transfer? | **Supported hypothesis** (Level 2), with what is unknown, when it could be legitimate, and read-only commands to verify it |
|
|
65
|
+
| Is a resource unused, orphaned or safe to delete? How much would we save? | **Not provable from billing data.** CloudLeak never claims it and never prints a savings figure |
|
|
66
|
+
|
|
67
|
+
A billing export is a historical ledger, not an inventory. A $1,200 disk might be a production database. A
|
|
68
|
+
quiet load balancer might be the disaster-recovery path. So CloudLeak has no "expensive disk", "idle load
|
|
69
|
+
balancer" or "big GPU" rules, and every finding's `verified_savings` is `null`, enforced by the code and
|
|
70
|
+
by the published JSON Schema.
|
|
71
|
+
|
|
72
|
+
## Install
|
|
73
|
+
|
|
74
|
+
Install from this source checkout with Python 3.10 or newer and uv. Run the following from the directory
|
|
75
|
+
containing this README, with uv's tool executable directory on your PATH. [uv setup](https://docs.astral.sh/uv/guides/tools/)
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
uv tool install .
|
|
79
|
+
cloudleak --version
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
This quickstart installs the checkout pending the first PyPI release of `cloudleak-cli`.
|
|
83
|
+
The PyPI project named `cloudleak` belongs to a different project.
|
|
84
|
+
|
|
85
|
+
## Reconcile a synthetic invoice
|
|
86
|
+
|
|
87
|
+
From any empty working directory, generate two months of invented billing data, two synthetic September
|
|
88
|
+
invoices, and an HTML audit you can open at `cloudleak-demo/report.html`.
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
cloudleak demo -q
|
|
92
|
+
cloudleak reconcile cloudleak-demo/m1 --invoices cloudleak-demo/invoices.csv
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The second command exits **1**. The invoices round the September totals to cents. CloudLeak subtracts the
|
|
96
|
+
invoice amount from the export total and keeps the signed residual.
|
|
97
|
+
|
|
98
|
+
| Invoice | Export total (USD) | Invoice (USD) | Difference (USD) |
|
|
99
|
+
| --- | ---: | ---: | ---: |
|
|
100
|
+
| AWS `EUINAA26090001` | 27206.8066200011 | 27206.81 | −0.0033799989 |
|
|
101
|
+
| GCP September period | 586.439680001 | 586.44 | −0.000319999 |
|
|
102
|
+
|
|
103
|
+
To accept a difference of up to one cent for the finalized AWS invoice, run the same comparison for its ID.
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
cloudleak reconcile cloudleak-demo/m1 --invoice-id EUINAA26090001 --currency USD --total 27206.81 --tolerance 0.01
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
This exits **0**. The reported difference is still `-0.0033799989` USD. GCP supplies an invoice month in
|
|
110
|
+
this demo, so its total alone cannot establish which invoice was issued or whether all charges arrived.
|
|
111
|
+
|
|
112
|
+
These commands inspect October's data quality and write the change between September and October to `brief.html`.
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
cloudleak doctor cloudleak-demo/m2
|
|
116
|
+
cloudleak variance cloudleak-demo/m1 cloudleak-demo/m2 -o brief.html
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Commands
|
|
120
|
+
|
|
121
|
+
| Command | Use it to | Exit codes |
|
|
122
|
+
| --- | --- | --- |
|
|
123
|
+
| `cloudleak doctor PATH…` | Check completeness, finality and data quality before trusting a number. `--format junit` / `-o checks.xml` for CI | 0 ok · 1 a check reached `--fail-on` (default `fail`) |
|
|
124
|
+
| `cloudleak audit PATH… -o brief.html` | Full brief: totals, bridge, Level-2 findings, data quality, provenance | 0 · 1 per `--fail-on` (`fail`, `warn`, `findings`, `never`) |
|
|
125
|
+
| `cloudleak variance BASE CURRENT` | Explain what changed between two periods (or one path holding two) | 0 |
|
|
126
|
+
| `cloudleak reconcile PATH --invoice-id ID --total 812.36 --currency USD` | Compare billed amounts. Use `--invoices invoices.csv` for several invoices. | 0 within tolerance (inspect finality and status) · 1 difference or no matching rows · 2 invalid or ambiguous input |
|
|
127
|
+
| `cloudleak diff BEFORE AFTER` | Compare totals by charge category, service and account, row counts, and invoice coverage across deliveries | 0 · 1 with `--fail-on-change` |
|
|
128
|
+
| `cloudleak redact PATH… -o out.zip` | Pseudonymize for sharing; fail-closed | 0 · 2 if the publication checks fail |
|
|
129
|
+
| `cloudleak resolve ALIAS… --source PATH…` | Translate aliases in a consultant's notes back to real IDs, locally | 0 |
|
|
130
|
+
| `cloudleak checks` · `rules` · `schema finding` | List doctor checks, signature rules, or print the JSON Schema | 0 |
|
|
131
|
+
|
|
132
|
+
Exit code **2** always means "the input cannot be processed safely": an unreadable, ragged, truncated or
|
|
133
|
+
oversized file, an unknown format, or a usage error. CloudLeak never skips a malformed row; it names the
|
|
134
|
+
line instead.
|
|
135
|
+
|
|
136
|
+
Outputs pick their format from the extension: `.html`, `.json`, `.md`, `.csv`, `.sarif`, `.xml` (JUnit,
|
|
137
|
+
doctor only). Repeat `-o` for several.
|
|
138
|
+
|
|
139
|
+
## Tested export shapes
|
|
140
|
+
|
|
141
|
+
These checks use synthetic charges and independent invoice totals; each row is exercised in CI by
|
|
142
|
+
[`tests/test_export_shapes.py`](tests/test_export_shapes.py). Use the table to choose the applicable comparison.
|
|
143
|
+
|
|
144
|
+
| Export | Tested comparison | Outside this evidence |
|
|
145
|
+
| --- | --- | --- |
|
|
146
|
+
| AWS legacy CUR and CUR 2.0 | Slash-named legacy CSV and named CUR 2.0 projections including split allocation, credits, refunds, RI-only and Savings Plans-only cases. Billed totals use unblended cost. | All-option exports and contractual net discounts |
|
|
147
|
+
| Azure Cost Management | Actual and amortized exports kept separate; selected EA, MCA, MOSP and MPA fields. MCA control checks billing-currency list cost. | Partner Center invoices, taxes and credits absent from the export |
|
|
148
|
+
| Google Cloud Billing | Flattened standard/detailed CSV and nested Parquet, including repeated credits and late usage assigned by invoice month | Full 2026 CUD migration and fee-offset handling |
|
|
149
|
+
| FOCUS Cost and Usage | Synthetic normative headers for 1.0–1.4; AWS 1.2 and selected Microsoft 1.0/1.2 export projections | Vendor-wide conformance and complete GCP/OCI delivery coverage |
|
|
150
|
+
|
|
151
|
+
A zero reconciliation exit code means the compared amounts agree within tolerance. Inspect the signed difference, status and period finality before treating that result as an invoice close.
|
|
152
|
+
|
|
153
|
+
Something not recognized? Open a [schema quirk issue](https://github.com/pranavg21/cloudleak/issues/new?template=schema-quirk.yml)
|
|
154
|
+
with a synthetic example. Replace private header names and values before sharing.
|
|
155
|
+
|
|
156
|
+
## How the numbers are kept honest
|
|
157
|
+
|
|
158
|
+
- **Decimal amounts.** The canonical amount type is `DECIMAL(38,12)`. JSON carries money as strings,
|
|
159
|
+
including sub-cent residuals. Data already rounded by an upstream exporter has only the precision supplied.
|
|
160
|
+
- **Invoice scope.** Reconciliation uses billed cost in the invoice currency. The report identifies
|
|
161
|
+
excluded currencies and cost bases. Identical charge rows remain separate.
|
|
162
|
+
- **Periods are invoice periods, in UTC.** GCP late usage lands in the invoice month it was billed in. A
|
|
163
|
+
month-over-month percentage across periods of unequal coverage is reported per day, never as a raw spike.
|
|
164
|
+
- **The bridge closes.** Base total plus every driver equals the current total, exactly; the code
|
|
165
|
+
refuses to emit a bridge that does not.
|
|
166
|
+
- **Deterministic.** The same inputs produce byte-identical JSON (set `SOURCE_DATE_EPOCH` to pin the
|
|
167
|
+
timestamp). Every report records the input SHA-256s, CloudLeak and DuckDB versions and the rule-pack hash.
|
|
168
|
+
|
|
169
|
+
## Findings: the evidence ladder
|
|
170
|
+
|
|
171
|
+
Every finding follows the [`cloudleak.finding.v1`](src/cloudleak/schemas/finding.v1.schema.json) contract.
|
|
172
|
+
|
|
173
|
+
| Level | Meaning | Produced by CloudLeak? |
|
|
174
|
+
| --- | --- | --- |
|
|
175
|
+
| L1 | Billing observation: spend, reconciliation deltas, variance drivers | Yes |
|
|
176
|
+
| L2 | Billing-supported hypothesis: the billing line itself names the pattern | Yes, the ceiling for billing data |
|
|
177
|
+
| L3 | Corroborated by an inventory snapshot (for example attachment state) | No |
|
|
178
|
+
| L4 | Owner-confirmed | No, recorded by people |
|
|
179
|
+
| L5 | Validated on a later finalized bill | No, recorded by people |
|
|
180
|
+
|
|
181
|
+
Each L2 finding includes the exact matched line items (source file hash and row numbers), what billing data
|
|
182
|
+
cannot tell you, when the charge is legitimate, an owner from tags or the account (never guessed), and
|
|
183
|
+
read-only `aws` / `az` / `gcloud` commands with every value shell-quoted. CloudLeak never generates a
|
|
184
|
+
command that changes infrastructure.
|
|
185
|
+
|
|
186
|
+
## Redaction
|
|
187
|
+
|
|
188
|
+
`cloudleak redact` writes pseudonymized CSVs and a redaction report to a directory or ZIP. Account and
|
|
189
|
+
resource IDs, descriptions, service and SKU labels, regions, customer-defined tag headers, and tag keys
|
|
190
|
+
and values receive keyed aliases. Repeated values have the same HMAC-derived suffix under the same key.
|
|
191
|
+
|
|
192
|
+
The explicit column registry keeps numeric amounts and quantities, dates, recognized currency codes and
|
|
193
|
+
billing categories. Structured GCP credits retain each amount. Unknown columns stop publication unless
|
|
194
|
+
you choose `--drop-unclassified`. Diagnostics and the dropped-column inventory use column positions.
|
|
195
|
+
|
|
196
|
+
Before publication, CloudLeak reads the completed bundle and checks its member names, headers, data
|
|
197
|
+
cells and report. The report counts the CSV data cells checked. The default key lives in
|
|
198
|
+
`.cloudleak/redaction.key`. Use `--key-file` to select a private key elsewhere. On POSIX, keys and bundle
|
|
199
|
+
files use mode 0600 and bundle directories use 0700. Choose an output separate from the inputs and key.
|
|
200
|
+
Use a fresh directory for each bundle or `--force` to replace a ZIP.
|
|
201
|
+
|
|
202
|
+
Review whether the visible costs, dates, repeated aliases and file fingerprints can identify a client.
|
|
203
|
+
Pseudonymized labels can limit analyses that depend on service names, regions, SKUs or tag semantics.
|
|
204
|
+
|
|
205
|
+
## Use in CI
|
|
206
|
+
|
|
207
|
+
```yaml
|
|
208
|
+
- uses: pranavg21/cloudleak@main
|
|
209
|
+
with:
|
|
210
|
+
path: exports/
|
|
211
|
+
fail-on: fail
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
The action runs `cloudleak doctor` and writes JUnit XML and SARIF you can upload. Or call the CLI directly:
|
|
215
|
+
`cloudleak doctor exports/ -o doctor.xml -o doctor.sarif`.
|
|
216
|
+
|
|
217
|
+
## Performance
|
|
218
|
+
|
|
219
|
+
Measured with [`scripts/benchmark.py`](scripts/benchmark.py) on synthetic 35-column CUR 2.0 data, 4 vCPU,
|
|
220
|
+
Python 3.13, DuckDB 2.0.1, default `--memory-limit 2GB`:
|
|
221
|
+
|
|
222
|
+
| Rows | Uncompressed CSV | Input (.csv.gz) | `doctor` | `audit` | Peak RSS |
|
|
223
|
+
| --- | --- | --- | --- | --- | --- |
|
|
224
|
+
| 1,000,000 | 394 MB | 26 MB | 10 s | 11 s | 1.6 GB |
|
|
225
|
+
| 3,000,000 | 1.24 GB | 78 MB | 29 s | 31 s | 2.1 GB |
|
|
226
|
+
| 10,000,000 | ~4.1 GB | 259 MB | 79 s | 100 s | 2.4 GB |
|
|
227
|
+
|
|
228
|
+
`--memory-limit` sets DuckDB's memory budget. The process also uses memory outside that budget, and
|
|
229
|
+
DuckDB can spill to `--temp-dir`. In a separate synthetic reconciliation of a 10,063,750,122-byte CSV
|
|
230
|
+
with 1,250,000 rows, `--memory-limit 1GB` and two threads, peak process RSS reached 1,171,344 KiB
|
|
231
|
+
(1.20 GB). Allow for this overhead when sizing a container.
|
|
232
|
+
|
|
233
|
+
## Air-gapped and container use
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
docker build -t cloudleak .
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
docker run --rm --network=none --read-only --tmpfs /tmp:size=4g \
|
|
241
|
+
-v "$PWD/exports:/data:ro" -v "$PWD/out:/out" cloudleak audit /data -o /out/brief.html
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
The container runs as a non-root user. Inside any environment, CloudLeak's DuckDB session cannot read
|
|
245
|
+
files outside the input directories, cannot load extensions or reach the network, and locks its own
|
|
246
|
+
configuration.
|
|
247
|
+
|
|
248
|
+
## Security and privacy
|
|
249
|
+
|
|
250
|
+
Offline processing removes third-party exposure; it does not make data disappear. DuckDB spill files and
|
|
251
|
+
OS swap can hold fragments of billing data, and deleting files on an SSD does not erase them. For regulated
|
|
252
|
+
data, use full-disk encryption and point `--temp-dir` at an encrypted or RAM-backed location. Reports and
|
|
253
|
+
redaction keys are written with owner-only permissions. Details and reporting a vulnerability:
|
|
254
|
+
[SECURITY.md](SECURITY.md).
|
|
255
|
+
|
|
256
|
+
## What CloudLeak deliberately does not do
|
|
257
|
+
|
|
258
|
+
No hosted service, login or dashboard server. No live cloud API access. No remediation, deletion or
|
|
259
|
+
Terraform generation. No commitment purchasing, Kubernetes allocation, LLM token proxying or "chat with
|
|
260
|
+
your bill". No confidence percentages or hygiene grades. These are either unsafe from billing data alone
|
|
261
|
+
or done well by others (OpenCost, Infracost, OpenOps, focus_validator, native cloud tools).
|
|
262
|
+
|
|
263
|
+
## Project status
|
|
264
|
+
|
|
265
|
+
`0.1.0`, beta. The command surface and the `cloudleak.finding.v1` / `cloudleak.report.v1` schemas are
|
|
266
|
+
intended to stay stable; breaking changes will bump the schema version. The earlier Next.js / FastAPI
|
|
267
|
+
prototype was retired in favor of this CLI; it is preserved in git history at commit `489fbff`.
|
|
268
|
+
|
|
269
|
+
[docs/validation.md](docs/validation.md) lists, export by export, what is tested and what is not.
|
|
270
|
+
Validation so far uses synthetic fixtures with exact ground truth plus adversarial cases (attached disks,
|
|
271
|
+
in-use IPs, GPUs, refunds, identical Azure rows, preliminary months, hostile tags, malformed files). It
|
|
272
|
+
has not yet been evaluated on independently labeled production exports. If you run it on real exports,
|
|
273
|
+
[tell us what broke](https://github.com/pranavg21/cloudleak/issues) (synthetic, sanitized headers only).
|
|
274
|
+
|
|
275
|
+
## Contributing
|
|
276
|
+
|
|
277
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md), [docs/architecture.md](docs/architecture.md) and the
|
|
278
|
+
[check and rule catalog](docs/checks-and-rules.md). Good first contributions: a provider column CloudLeak does not
|
|
279
|
+
recognize, a doctor check for a defect you have seen in the wild, or a billing-signature rule with a
|
|
280
|
+
provider-explicit usage type.
|
|
281
|
+
|
|
282
|
+
## License
|
|
283
|
+
|
|
284
|
+
[Apache-2.0](LICENSE). See [NOTICE](NOTICE).
|