certifyclouds 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- certifyclouds-1.2.0/.gitignore +145 -0
- certifyclouds-1.2.0/LICENSE +190 -0
- certifyclouds-1.2.0/PKG-INFO +253 -0
- certifyclouds-1.2.0/README.md +211 -0
- certifyclouds-1.2.0/pyproject.toml +63 -0
- certifyclouds-1.2.0/src/cc_scanner/__init__.py +3 -0
- certifyclouds-1.2.0/src/cc_scanner/auth.py +93 -0
- certifyclouds-1.2.0/src/cc_scanner/cli.py +287 -0
- certifyclouds-1.2.0/src/cc_scanner/config.py +90 -0
- certifyclouds-1.2.0/src/cc_scanner/filters.py +142 -0
- certifyclouds-1.2.0/src/cc_scanner/formatters/__init__.py +19 -0
- certifyclouds-1.2.0/src/cc_scanner/formatters/csv_fmt.py +74 -0
- certifyclouds-1.2.0/src/cc_scanner/formatters/html.py +187 -0
- certifyclouds-1.2.0/src/cc_scanner/formatters/json_fmt.py +36 -0
- certifyclouds-1.2.0/src/cc_scanner/formatters/table.py +203 -0
- certifyclouds-1.2.0/src/cc_scanner/registration.py +91 -0
- certifyclouds-1.2.0/src/cc_scanner/scanner.py +558 -0
- certifyclouds-1.2.0/src/cc_scanner/security.py +175 -0
- certifyclouds-1.2.0/src/cc_scanner/thumbprint.py +98 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Environment and secrets
|
|
2
|
+
.env
|
|
3
|
+
.env.local
|
|
4
|
+
.env.*.local
|
|
5
|
+
.dev.vars
|
|
6
|
+
*.pem
|
|
7
|
+
*.key
|
|
8
|
+
.mcp.json
|
|
9
|
+
|
|
10
|
+
# Local tools (MCP servers)
|
|
11
|
+
tools/
|
|
12
|
+
|
|
13
|
+
# Customer data
|
|
14
|
+
customer-packages/
|
|
15
|
+
|
|
16
|
+
# Security scan reports (contain vulnerability details)
|
|
17
|
+
security-reports/
|
|
18
|
+
|
|
19
|
+
# Python
|
|
20
|
+
__pycache__/
|
|
21
|
+
*.py[cod]
|
|
22
|
+
*$py.class
|
|
23
|
+
*.so
|
|
24
|
+
.Python
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.eggs/
|
|
27
|
+
dist/
|
|
28
|
+
/build/
|
|
29
|
+
*.egg
|
|
30
|
+
.venv/
|
|
31
|
+
venv/
|
|
32
|
+
ENV/
|
|
33
|
+
.pytest_cache/
|
|
34
|
+
.ruff_cache/
|
|
35
|
+
.mypy_cache/
|
|
36
|
+
.coverage
|
|
37
|
+
htmlcov/
|
|
38
|
+
.tox/
|
|
39
|
+
.nox/
|
|
40
|
+
|
|
41
|
+
# Databases (local SQLite fallback)
|
|
42
|
+
*.db
|
|
43
|
+
*.sqlite
|
|
44
|
+
*.sqlite3
|
|
45
|
+
|
|
46
|
+
# Node.js
|
|
47
|
+
node_modules/
|
|
48
|
+
|
|
49
|
+
# Frontend build output (regenerated by vite build)
|
|
50
|
+
frontend/dist/
|
|
51
|
+
frontend/.vite/
|
|
52
|
+
frontend/.turbo/
|
|
53
|
+
*.tsbuildinfo
|
|
54
|
+
npm-debug.log*
|
|
55
|
+
yarn-debug.log*
|
|
56
|
+
yarn-error.log*
|
|
57
|
+
pnpm-debug.log*
|
|
58
|
+
.npm/
|
|
59
|
+
.yarn/
|
|
60
|
+
.pnp.cjs
|
|
61
|
+
|
|
62
|
+
# IDE
|
|
63
|
+
.idea/
|
|
64
|
+
.vscode/
|
|
65
|
+
*.swp
|
|
66
|
+
*.swo
|
|
67
|
+
*~
|
|
68
|
+
|
|
69
|
+
# OS
|
|
70
|
+
.DS_Store
|
|
71
|
+
.DS_Store?
|
|
72
|
+
._*
|
|
73
|
+
.Spotlight-V100
|
|
74
|
+
.Trashes
|
|
75
|
+
Thumbs.db
|
|
76
|
+
ehthumbs.db
|
|
77
|
+
|
|
78
|
+
# Docker
|
|
79
|
+
*.log
|
|
80
|
+
|
|
81
|
+
# Test artifacts (Playwright outputs from e2e/ directory)
|
|
82
|
+
e2e/test-results/
|
|
83
|
+
e2e/test-results-dark/
|
|
84
|
+
e2e/playwright-report/
|
|
85
|
+
e2e/node_modules/
|
|
86
|
+
e2e/.playwright/
|
|
87
|
+
e2e/e2e/.auth/
|
|
88
|
+
|
|
89
|
+
# Video files (E2E recordings, demo outputs - all regenerated)
|
|
90
|
+
*.webm
|
|
91
|
+
*.mp4
|
|
92
|
+
|
|
93
|
+
# Cloudflare Wrangler (local development state)
|
|
94
|
+
.wrangler/
|
|
95
|
+
|
|
96
|
+
# Temporary files
|
|
97
|
+
*.tmp
|
|
98
|
+
*.temp
|
|
99
|
+
.cache/
|
|
100
|
+
|
|
101
|
+
# Claude Code (local configuration and session files)
|
|
102
|
+
.claude/
|
|
103
|
+
.agents/
|
|
104
|
+
claude-*.md
|
|
105
|
+
|
|
106
|
+
# Frontend test coverage
|
|
107
|
+
frontend/coverage/
|
|
108
|
+
|
|
109
|
+
# Backup files
|
|
110
|
+
backups/
|
|
111
|
+
*_backup*/
|
|
112
|
+
*_backup_*/
|
|
113
|
+
*.backup
|
|
114
|
+
*.old
|
|
115
|
+
*.zip
|
|
116
|
+
|
|
117
|
+
# Logs
|
|
118
|
+
logs/
|
|
119
|
+
|
|
120
|
+
# Demo outputs
|
|
121
|
+
demo_output/
|
|
122
|
+
|
|
123
|
+
# MkDocs build output (regenerated by mkdocs build)
|
|
124
|
+
docs-public/site/
|
|
125
|
+
|
|
126
|
+
# Marketing rendered videos (regenerated by Remotion)
|
|
127
|
+
marketing/output/
|
|
128
|
+
|
|
129
|
+
# Marketing audio backups and voice samples
|
|
130
|
+
marketing/video/public/audio/backup/
|
|
131
|
+
marketing/voice-samples/
|
|
132
|
+
*.m4a
|
|
133
|
+
|
|
134
|
+
# Regeneratable marketing audio (cheap ElevenLabs — re-generate with one API call)
|
|
135
|
+
# KEPT: voiceover-demo.mp3 (6min George VO, expensive), voiceover-social.mp3, bg-music.mp3
|
|
136
|
+
marketing/video/public/audio/sfx-*.mp3
|
|
137
|
+
marketing/video/public/audio/reel01-s*.mp3
|
|
138
|
+
marketing/video/public/audio/voiceover-reel*.mp3
|
|
139
|
+
marketing/video/public/audio/tts_*.mp3
|
|
140
|
+
|
|
141
|
+
# Generated reports (can be regenerated)
|
|
142
|
+
reports/
|
|
143
|
+
*.pdf
|
|
144
|
+
|
|
145
|
+
DEPLOY_STHREE.md
|
|
@@ -0,0 +1,190 @@
|
|
|
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 the 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 the 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 any 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
|
+
Copyright 2026 CertifyClouds
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: certifyclouds
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: Scan Azure Key Vaults for expiring secrets, certificates, and keys
|
|
5
|
+
Project-URL: Homepage, https://certifyclouds.com/scanner
|
|
6
|
+
Project-URL: Documentation, https://docs.certifyclouds.com/scanner
|
|
7
|
+
Project-URL: Repository, https://codeberg.org/hus/cc
|
|
8
|
+
Author-email: CertifyClouds <hello@certifyclouds.com>
|
|
9
|
+
License: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: azure,certificates,expiry,keyvault,rotation,scanner,secrets,security
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: System Administrators
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Topic :: Security
|
|
25
|
+
Classifier: Topic :: System :: Systems Administration
|
|
26
|
+
Requires-Python: >=3.9
|
|
27
|
+
Requires-Dist: azure-core>=1.30
|
|
28
|
+
Requires-Dist: azure-identity>=1.20
|
|
29
|
+
Requires-Dist: azure-keyvault-certificates>=4.9
|
|
30
|
+
Requires-Dist: azure-keyvault-keys>=4.10
|
|
31
|
+
Requires-Dist: azure-keyvault-secrets>=4.9
|
|
32
|
+
Requires-Dist: azure-mgmt-keyvault>=13.0
|
|
33
|
+
Requires-Dist: azure-mgmt-resource>=24.0
|
|
34
|
+
Requires-Dist: click>=8.0
|
|
35
|
+
Requires-Dist: httpx>=0.27
|
|
36
|
+
Requires-Dist: rich>=13.0
|
|
37
|
+
Requires-Dist: tenacity>=9.0
|
|
38
|
+
Provides-Extra: dev
|
|
39
|
+
Requires-Dist: pytest-mock>=3.10; extra == 'dev'
|
|
40
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
41
|
+
Description-Content-Type: text/markdown
|
|
42
|
+
|
|
43
|
+
# cc-scanner
|
|
44
|
+
|
|
45
|
+
**Do you know which Azure secrets expire this month?**
|
|
46
|
+
|
|
47
|
+
Scan all your Azure Key Vaults across every subscription in 30 seconds. Free, open source, works in Azure Cloud Shell.
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
pip install cc-scanner
|
|
51
|
+
cc-scan
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## What you get
|
|
55
|
+
|
|
56
|
+
- Cross-subscription inventory of every secret, certificate, and key
|
|
57
|
+
- Expiry warnings: expired, <7 days, <30 days, <90 days (color-coded)
|
|
58
|
+
- Security findings: public access, soft delete, RBAC, missing expiry dates
|
|
59
|
+
- Export to JSON, CSV, or standalone HTML report
|
|
60
|
+
- Works in Azure Cloud Shell with zero setup
|
|
61
|
+
|
|
62
|
+
## Quick Start
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# 1. Install
|
|
66
|
+
pip install cc-scanner
|
|
67
|
+
|
|
68
|
+
# 2. Authenticate (skip in Azure Cloud Shell)
|
|
69
|
+
az login
|
|
70
|
+
|
|
71
|
+
# 3. Scan
|
|
72
|
+
cc-scan
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
On first run, you'll be prompted to register with your email (free, takes 10 seconds). Your API key is saved locally to `~/.certifyclouds/config.json`.
|
|
76
|
+
|
|
77
|
+
## Output
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
CertifyClouds Scanner v1.2.0
|
|
81
|
+
Authenticated as: you@company.com
|
|
82
|
+
|
|
83
|
+
Scanning Azure subscriptions...
|
|
84
|
+
|
|
85
|
+
Production (sub-abc123)
|
|
86
|
+
vault-prod (eastus) - 45 secrets, 12 certificates, 3 keys
|
|
87
|
+
vault-shared (westeurope) - 23 secrets, 5 certificates, 1 key
|
|
88
|
+
|
|
89
|
+
SUMMARY
|
|
90
|
+
Subscriptions: 2 Vaults: 4 Total assets: 112
|
|
91
|
+
Secrets: 88 Certificates: 20 Keys: 4
|
|
92
|
+
|
|
93
|
+
EXPIRY WARNINGS
|
|
94
|
+
EXPIRED 3 secrets, 1 certificate
|
|
95
|
+
< 7 days 2 secrets
|
|
96
|
+
< 30 days 8 secrets, 2 certificates
|
|
97
|
+
|
|
98
|
+
SECURITY FINDINGS
|
|
99
|
+
CRITICAL: 3 HIGH: 2 MEDIUM: 47 LOW: 1
|
|
100
|
+
|
|
101
|
+
CRITICAL Expired secret still enabled vault-prod/db-password
|
|
102
|
+
HIGH Public network access enabled vault-legacy
|
|
103
|
+
MEDIUM Secret has no expiry date vault-prod/api-key
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Usage
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Output formats
|
|
110
|
+
cc-scan --format table # Default: pretty terminal output
|
|
111
|
+
cc-scan --format json # Full JSON (pipe-friendly)
|
|
112
|
+
cc-scan --format csv # Flat CSV (for spreadsheets)
|
|
113
|
+
cc-scan --format html # Standalone HTML report
|
|
114
|
+
|
|
115
|
+
# Write to file
|
|
116
|
+
cc-scan --output report.html --format html
|
|
117
|
+
cc-scan --output scan.json --format json
|
|
118
|
+
|
|
119
|
+
# Filters
|
|
120
|
+
cc-scan --expiring 30 # Only items expiring within 30 days
|
|
121
|
+
cc-scan --expired # Only already-expired items
|
|
122
|
+
cc-scan --type secrets # Only secrets (or: certificates, keys)
|
|
123
|
+
cc-scan --vault vault-prod # Specific vault(s) (repeatable)
|
|
124
|
+
cc-scan --subscription sub-123 # Specific subscription(s) (repeatable)
|
|
125
|
+
|
|
126
|
+
# Security summary only
|
|
127
|
+
cc-scan --security # Show findings without per-item details
|
|
128
|
+
|
|
129
|
+
# Azure auth
|
|
130
|
+
cc-scan --auth cli # Azure CLI credential (default)
|
|
131
|
+
cc-scan --auth default # DefaultAzureCredential (managed identity/SP)
|
|
132
|
+
|
|
133
|
+
# Tuning
|
|
134
|
+
cc-scan --workers 10 # Parallel workers (default: 5, max: 20)
|
|
135
|
+
cc-scan --timeout 600 # Scan timeout in seconds (default: 300)
|
|
136
|
+
|
|
137
|
+
# Other
|
|
138
|
+
cc-scan --offline # Skip license server validation
|
|
139
|
+
cc-scan --register # Re-register / change email
|
|
140
|
+
cc-scan --key cc-scan-xxxxx # Use a specific API key
|
|
141
|
+
cc-scan --version # Show version
|
|
142
|
+
cc-scan --help # Show all options
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Environment Variables
|
|
146
|
+
|
|
147
|
+
All flags can be set via environment variables (flags take priority):
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
CC_SCAN_KEY=cc-scan-xxxxx # API key
|
|
151
|
+
CC_SCAN_AUTH=cli # Auth method
|
|
152
|
+
CC_SCAN_FORMAT=json # Output format
|
|
153
|
+
CC_SCAN_WORKERS=10 # Workers
|
|
154
|
+
CC_SCAN_TIMEOUT=600 # Timeout
|
|
155
|
+
CC_SCAN_OFFLINE=true # Offline mode
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
For service principal auth (used with `--auth default`):
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
AZURE_CLIENT_ID=...
|
|
162
|
+
AZURE_CLIENT_SECRET=...
|
|
163
|
+
AZURE_TENANT_ID=...
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Exit Codes
|
|
167
|
+
|
|
168
|
+
| Code | Meaning |
|
|
169
|
+
|------|---------|
|
|
170
|
+
| 0 | Scan completed, no critical/high findings |
|
|
171
|
+
| 1 | Scan completed, critical or high findings detected |
|
|
172
|
+
| 2 | Scan failed (auth error, network error, timeout) |
|
|
173
|
+
| 3 | Registration required / invalid API key |
|
|
174
|
+
|
|
175
|
+
Non-zero exit codes make this CI/cron-friendly: `cc-scan || notify-team`.
|
|
176
|
+
|
|
177
|
+
## Azure Permissions
|
|
178
|
+
|
|
179
|
+
Your identity needs these roles on each Key Vault:
|
|
180
|
+
|
|
181
|
+
| Role | Why |
|
|
182
|
+
|------|-----|
|
|
183
|
+
| Key Vault Secrets User | List and read secret properties |
|
|
184
|
+
| Key Vault Certificate User | List and read certificate properties |
|
|
185
|
+
| Key Vault Crypto User | List and read key properties |
|
|
186
|
+
| Reader | List Key Vaults across subscriptions |
|
|
187
|
+
|
|
188
|
+
Assign roles in Azure Portal: Key Vault > Access control (IAM) > Add role assignment.
|
|
189
|
+
|
|
190
|
+
If a vault has firewall restrictions, you'll see an inline error (the scan continues to the next vault).
|
|
191
|
+
|
|
192
|
+
## Security Findings
|
|
193
|
+
|
|
194
|
+
The scanner checks for 11 security rules:
|
|
195
|
+
|
|
196
|
+
| ID | Severity | What it checks |
|
|
197
|
+
|----|----------|---------------|
|
|
198
|
+
| SEC-001 | CRITICAL | Expired secret still enabled |
|
|
199
|
+
| SEC-002 | CRITICAL | Expired certificate still enabled |
|
|
200
|
+
| SEC-003 | HIGH | Public network access enabled on vault |
|
|
201
|
+
| SEC-004 | HIGH | Soft delete disabled |
|
|
202
|
+
| SEC-005 | HIGH | Purge protection disabled |
|
|
203
|
+
| SEC-006 | MEDIUM | Secret has no expiry date set |
|
|
204
|
+
| SEC-007 | MEDIUM | Certificate has no expiry date set |
|
|
205
|
+
| SEC-008 | MEDIUM | RBAC authorization not enabled |
|
|
206
|
+
| SEC-009 | LOW | Standard SKU (no HSM backing) |
|
|
207
|
+
| SEC-010 | INFO | Secret expiring within 30 days |
|
|
208
|
+
| SEC-011 | INFO | Certificate expiring within 30 days |
|
|
209
|
+
|
|
210
|
+
## Privacy & Telemetry
|
|
211
|
+
|
|
212
|
+
CertifyClouds Scanner sends **aggregate usage statistics** to improve the product. Here's exactly what is sent:
|
|
213
|
+
|
|
214
|
+
**Sent:** API key, CLI version, counts (subscriptions, vaults, secrets, certificates, keys, expired, expiring soon, security findings, vaults with errors), scan duration.
|
|
215
|
+
|
|
216
|
+
**Never sent:** Vault names or URIs, secret/certificate/key names, secret values, subscription IDs or names, Azure tenant IDs, resource group names, tags, certificate subjects or thumbprints.
|
|
217
|
+
|
|
218
|
+
Use `--offline` to disable all network calls to the license server. The scan works fully offline.
|
|
219
|
+
|
|
220
|
+
Source code is open and auditable: [codeberg.org/hus/cc/scanner](https://codeberg.org/hus/cc)
|
|
221
|
+
|
|
222
|
+
## Troubleshooting
|
|
223
|
+
|
|
224
|
+
**"No Azure credentials found"**
|
|
225
|
+
Run `az login` to authenticate, or set `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`, `AZURE_TENANT_ID` for service principal auth.
|
|
226
|
+
|
|
227
|
+
**Vault shows "Firewall restriction"**
|
|
228
|
+
Run cc-scan from an allowed network or add your IP in Azure Portal (Key Vault > Networking).
|
|
229
|
+
|
|
230
|
+
**Vault shows "Access denied"**
|
|
231
|
+
Your identity needs the roles listed in [Azure Permissions](#azure-permissions).
|
|
232
|
+
|
|
233
|
+
**"Could not reach license.certifyclouds.com"**
|
|
234
|
+
Check internet connection. Behind a proxy? Set `HTTPS_PROXY`. Or use `--offline` mode.
|
|
235
|
+
|
|
236
|
+
**Slow scans**
|
|
237
|
+
Increase workers: `cc-scan --workers 10`. Each subscription is scanned in parallel.
|
|
238
|
+
|
|
239
|
+
## Requirements
|
|
240
|
+
|
|
241
|
+
- Python 3.9+
|
|
242
|
+
- Azure CLI (`az login`) or service principal credentials
|
|
243
|
+
- Network access to Azure management and Key Vault data plane APIs
|
|
244
|
+
|
|
245
|
+
## License
|
|
246
|
+
|
|
247
|
+
Apache 2.0. See [LICENSE](LICENSE).
|
|
248
|
+
|
|
249
|
+
## Links
|
|
250
|
+
|
|
251
|
+
- [CertifyClouds](https://certifyclouds.com) - Automate secret rotation & compliance
|
|
252
|
+
- [Documentation](https://docs.certifyclouds.com/scanner)
|
|
253
|
+
- [Source Code](https://codeberg.org/hus/cc)
|