wyrmctl 0.4.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. wyrmctl-0.4.5/LICENSE +183 -0
  2. wyrmctl-0.4.5/PKG-INFO +247 -0
  3. wyrmctl-0.4.5/README.md +207 -0
  4. wyrmctl-0.4.5/pyproject.toml +78 -0
  5. wyrmctl-0.4.5/pyproject.toml.orig +75 -0
  6. wyrmctl-0.4.5/src/wyrmctl/__init__.py +3 -0
  7. wyrmctl-0.4.5/src/wyrmctl/__main__.py +5 -0
  8. wyrmctl-0.4.5/src/wyrmctl/adoption.py +5 -0
  9. wyrmctl-0.4.5/src/wyrmctl/apply.py +332 -0
  10. wyrmctl-0.4.5/src/wyrmctl/artifacts/__init__.py +25 -0
  11. wyrmctl-0.4.5/src/wyrmctl/artifacts/codec.py +54 -0
  12. wyrmctl-0.4.5/src/wyrmctl/artifacts/execution.py +161 -0
  13. wyrmctl-0.4.5/src/wyrmctl/artifacts/models.py +134 -0
  14. wyrmctl-0.4.5/src/wyrmctl/artifacts/plan.py +97 -0
  15. wyrmctl-0.4.5/src/wyrmctl/artifacts/redaction.py +22 -0
  16. wyrmctl-0.4.5/src/wyrmctl/artifacts/retention.py +28 -0
  17. wyrmctl-0.4.5/src/wyrmctl/artifacts/signing.py +33 -0
  18. wyrmctl-0.4.5/src/wyrmctl/cli.py +851 -0
  19. wyrmctl-0.4.5/src/wyrmctl/client/__init__.py +5 -0
  20. wyrmctl-0.4.5/src/wyrmctl/client/access_lists.py +10 -0
  21. wyrmctl-0.4.5/src/wyrmctl/client/auth.py +5 -0
  22. wyrmctl-0.4.5/src/wyrmctl/client/base.py +333 -0
  23. wyrmctl-0.4.5/src/wyrmctl/client/certificates.py +10 -0
  24. wyrmctl-0.4.5/src/wyrmctl/client/contracts.py +33 -0
  25. wyrmctl-0.4.5/src/wyrmctl/client/proxy_hosts.py +10 -0
  26. wyrmctl-0.4.5/src/wyrmctl/commands/__init__.py +15 -0
  27. wyrmctl-0.4.5/src/wyrmctl/commands/artifacts.py +25 -0
  28. wyrmctl-0.4.5/src/wyrmctl/commands/contracts.py +23 -0
  29. wyrmctl-0.4.5/src/wyrmctl/commands/import_live.py +25 -0
  30. wyrmctl-0.4.5/src/wyrmctl/commands/lock.py +33 -0
  31. wyrmctl-0.4.5/src/wyrmctl/commands/repository.py +35 -0
  32. wyrmctl-0.4.5/src/wyrmctl/config.py +45 -0
  33. wyrmctl-0.4.5/src/wyrmctl/contracts/__init__.py +20 -0
  34. wyrmctl-0.4.5/src/wyrmctl/contracts/builtin.py +33 -0
  35. wyrmctl-0.4.5/src/wyrmctl/contracts/canonical.py +43 -0
  36. wyrmctl-0.4.5/src/wyrmctl/contracts/compatibility.py +24 -0
  37. wyrmctl-0.4.5/src/wyrmctl/contracts/registry.py +63 -0
  38. wyrmctl-0.4.5/src/wyrmctl/contracts/types.py +62 -0
  39. wyrmctl-0.4.5/src/wyrmctl/diagnostics.py +41 -0
  40. wyrmctl-0.4.5/src/wyrmctl/dns.py +350 -0
  41. wyrmctl-0.4.5/src/wyrmctl/errors.py +95 -0
  42. wyrmctl-0.4.5/src/wyrmctl/issuance.py +138 -0
  43. wyrmctl-0.4.5/src/wyrmctl/loader.py +356 -0
  44. wyrmctl-0.4.5/src/wyrmctl/lockfile.py +73 -0
  45. wyrmctl-0.4.5/src/wyrmctl/logging.py +13 -0
  46. wyrmctl-0.4.5/src/wyrmctl/metadata.py +79 -0
  47. wyrmctl-0.4.5/src/wyrmctl/migrations/__init__.py +22 -0
  48. wyrmctl-0.4.5/src/wyrmctl/migrations/base.py +18 -0
  49. wyrmctl-0.4.5/src/wyrmctl/migrations/builtin/__init__.py +41 -0
  50. wyrmctl-0.4.5/src/wyrmctl/migrations/builtin/desired_state_v1_v2.py +29 -0
  51. wyrmctl-0.4.5/src/wyrmctl/migrations/builtin/desired_state_v2_v3.py +61 -0
  52. wyrmctl-0.4.5/src/wyrmctl/migrations/builtin/repository_v0_v1.py +18 -0
  53. wyrmctl-0.4.5/src/wyrmctl/migrations/executor.py +47 -0
  54. wyrmctl-0.4.5/src/wyrmctl/migrations/graph.py +71 -0
  55. wyrmctl-0.4.5/src/wyrmctl/migrations/import_live.py +43 -0
  56. wyrmctl-0.4.5/src/wyrmctl/migrations/leases.py +77 -0
  57. wyrmctl-0.4.5/src/wyrmctl/migrations/ledger.py +71 -0
  58. wyrmctl-0.4.5/src/wyrmctl/migrations/manifest.py +70 -0
  59. wyrmctl-0.4.5/src/wyrmctl/migrations/planner.py +59 -0
  60. wyrmctl-0.4.5/src/wyrmctl/migrations/recovery.py +31 -0
  61. wyrmctl-0.4.5/src/wyrmctl/migrations/registry.py +88 -0
  62. wyrmctl-0.4.5/src/wyrmctl/migrations/transaction.py +64 -0
  63. wyrmctl-0.4.5/src/wyrmctl/migrations/v1.py +10 -0
  64. wyrmctl-0.4.5/src/wyrmctl/migrations/v2.py +11 -0
  65. wyrmctl-0.4.5/src/wyrmctl/models.py +930 -0
  66. wyrmctl-0.4.5/src/wyrmctl/operational.py +256 -0
  67. wyrmctl-0.4.5/src/wyrmctl/output.py +75 -0
  68. wyrmctl-0.4.5/src/wyrmctl/planner.py +570 -0
  69. wyrmctl-0.4.5/src/wyrmctl/plugins.py +173 -0
  70. wyrmctl-0.4.5/src/wyrmctl/profile.py +64 -0
  71. wyrmctl-0.4.5/src/wyrmctl/providers.py +77 -0
  72. wyrmctl-0.4.5/src/wyrmctl/py.typed +0 -0
  73. wyrmctl-0.4.5/src/wyrmctl/repository.py +130 -0
  74. wyrmctl-0.4.5/src/wyrmctl/schema.py +200 -0
  75. wyrmctl-0.4.5/src/wyrmctl/validation.py +5 -0
wyrmctl-0.4.5/LICENSE ADDED
@@ -0,0 +1,183 @@
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, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
23
+ permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and configuration
27
+ files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object code,
31
+ generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form,
34
+ made available under the License, as indicated by a copyright notice that is
35
+ included in or attached to the work (an example is provided in the Appendix
36
+ below).
37
+
38
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
39
+ is based on (or derived from) the Work and for which the editorial revisions,
40
+ annotations, elaborations, or other modifications represent, as a whole, an
41
+ original work of authorship. For the purposes of this License, Derivative Works
42
+ shall not include works that remain separable from, or merely link (or bind by
43
+ name) to the interfaces of, the Work and Derivative Works thereof.
44
+
45
+ "Contribution" shall mean any work of authorship, including the original version
46
+ of the Work and any modifications or additions to that Work or Derivative Works
47
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work
48
+ by the copyright owner or by an individual or Legal Entity authorized to submit
49
+ on behalf of the copyright owner. For the purposes of this definition,
50
+ "submitted" means any form of electronic, verbal, or written communication sent
51
+ to the Licensor or its representatives, including but not limited to
52
+ communication on electronic mailing lists, source code control systems, and
53
+ issue tracking systems that are managed by, or on behalf of, the Licensor for
54
+ the purpose of discussing and improving the Work, but excluding communication
55
+ that is conspicuously marked or otherwise designated in writing by the copyright
56
+ owner as "Not a Contribution."
57
+
58
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
59
+ of whom a Contribution has been received by Licensor and subsequently
60
+ incorporated within the Work.
61
+
62
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
63
+ License, each Contributor hereby grants to You a perpetual, worldwide,
64
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
65
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
66
+ sublicense, and distribute the Work and such Derivative Works in Source or
67
+ Object form.
68
+
69
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
70
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
71
+ no-charge, royalty-free, irrevocable (except as stated in this section) patent
72
+ license to make, have made, use, offer to sell, sell, import, and otherwise
73
+ transfer the Work, where such license applies only to those patent claims
74
+ licensable by such Contributor that are necessarily infringed by their
75
+ Contribution(s) alone or by combination of their Contribution(s) with the Work
76
+ to which such Contribution(s) was submitted. If You institute patent litigation
77
+ against any entity (including a cross-claim or counterclaim in a lawsuit)
78
+ alleging that the Work or a Contribution incorporated within the Work
79
+ constitutes direct or contributory patent infringement, then any patent licenses
80
+ granted to You under this License for that Work shall terminate as of the date
81
+ such litigation is filed.
82
+
83
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
84
+ Derivative Works thereof in any medium, with or without modifications, and in
85
+ Source or Object form, provided that You meet the following conditions:
86
+
87
+ (a) You must give any other recipients of the Work or Derivative Works a copy of
88
+ this License; and
89
+
90
+ (b) You must cause any modified files to carry prominent notices stating that
91
+ You changed the files; and
92
+
93
+ (c) You must retain, in the Source form of any Derivative Works that You
94
+ distribute, all copyright, patent, trademark, and attribution notices from the
95
+ Source form of the Work, excluding those notices that do not pertain to any part
96
+ of the Derivative Works; and
97
+
98
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
99
+ any Derivative Works that You distribute must include a readable copy of the
100
+ attribution notices contained within such NOTICE file, excluding those notices
101
+ that do not pertain to any part of the Derivative Works, in at least one of the
102
+ following places: within a NOTICE text file distributed as part of the
103
+ Derivative Works; within the Source form or documentation, if provided along
104
+ with the Derivative Works; or, within a display generated by the Derivative
105
+ Works, if and wherever such third-party notices normally appear. The contents of
106
+ the NOTICE file are for informational purposes only and do not modify the
107
+ License. You may add Your own attribution notices within Derivative Works that
108
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
109
+ provided that such additional attribution notices cannot be construed as
110
+ modifying the License.
111
+
112
+ You may add Your own copyright statement to Your modifications and may provide
113
+ additional or different license terms and conditions for use, reproduction, or
114
+ distribution of Your modifications, or for any such Derivative Works as a whole,
115
+ provided Your use, reproduction, and distribution of the Work otherwise complies
116
+ with the conditions stated in this License.
117
+
118
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
119
+ Contribution intentionally submitted for inclusion in the Work by You to the
120
+ Licensor shall be under the terms and conditions of this License, without any
121
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
122
+ supersede or modify the terms of any separate license agreement you may have
123
+ executed with Licensor regarding such Contributions.
124
+
125
+ 6. Trademarks. This License does not grant permission to use the trade names,
126
+ trademarks, service marks, or product names of the Licensor, except as required
127
+ for reasonable and customary use in describing the origin of the Work and
128
+ reproducing the content of the NOTICE file.
129
+
130
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
131
+ writing, Licensor provides the Work (and each Contributor provides its
132
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
133
+ KIND, either express or implied, including, without limitation, any warranties
134
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
135
+ PARTICULAR PURPOSE. You are solely responsible for determining the
136
+ appropriateness of using or redistributing the Work and assume any risks
137
+ associated with Your exercise of permissions under this License.
138
+
139
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
140
+ tort (including negligence), contract, or otherwise, unless required by
141
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
142
+ writing, shall any Contributor be liable to You for damages, including any
143
+ direct, indirect, special, incidental, or consequential damages of any character
144
+ arising as a result of this License or out of the use or inability to use the
145
+ Work (including but not limited to damages for loss of goodwill, work stoppage,
146
+ computer failure or malfunction, or any and all other commercial damages or
147
+ losses), even if such Contributor has been advised of the possibility of such
148
+ damages.
149
+
150
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
151
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
152
+ acceptance of support, warranty, indemnity, or other liability obligations
153
+ and/or rights consistent with this License. However, in accepting such
154
+ obligations, You may act only on Your own behalf and on Your sole
155
+ responsibility, not on behalf of any other Contributor, and only if You agree to
156
+ indemnify, defend, and hold each Contributor harmless for any liability incurred
157
+ by, or claims asserted against, such Contributor by reason of your accepting any
158
+ such warranty or additional liability.
159
+
160
+ END OF TERMS AND CONDITIONS
161
+
162
+ APPENDIX: How to apply the Apache License to your work.
163
+
164
+ To apply the Apache License to your work, attach the following boilerplate
165
+ notice, with the fields enclosed by brackets "[]" replaced with your own
166
+ identifying information. (Don't include the brackets!) The text should be
167
+ enclosed in the appropriate comment syntax for the file format. We also
168
+ recommend that a file or class name and description of purpose be included on
169
+ the same "printed page" as the copyright notice for easier identification within
170
+ third-party archives.
171
+
172
+ Copyright 2026 npmctl contributors
173
+
174
+ Licensed under the Apache License, Version 2.0 (the "License");
175
+ you may not use this file except in compliance with the License.
176
+ You may obtain a copy of the License at
177
+
178
+ http://www.apache.org/licenses/LICENSE-2.0
179
+
180
+ Unless required by applicable law or agreed to in writing, software distributed
181
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
182
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
183
+ specific language governing permissions and limitations under the License.
wyrmctl-0.4.5/PKG-INFO ADDED
@@ -0,0 +1,247 @@
1
+ Metadata-Version: 2.4
2
+ Name: wyrmctl
3
+ Version: 0.4.5
4
+ Summary: Owner-scoped plan/apply/adopt controller for Nginx Proxy Manager resources.
5
+ Keywords: nginx-proxy-manager,npm,reverse-proxy,gitops,desired-state,infrastructure-as-code,controller,plan-apply,owner-scoped,dns,dns-management,dns-provider,dns-records,ssl-certificates,access-lists,a-record,aaaa-record,cname-record,txt-record,mx-record,srv-record,caa-record
6
+ Author: Jacob Stewart
7
+ Author-email: Jacob Stewart <jacob@swarmauri.com>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Information Technology
14
+ Classifier: Intended Audience :: System Administrators
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Topic :: Internet :: Name Service (DNS)
24
+ Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
25
+ Classifier: Topic :: Security :: Cryptography
26
+ Classifier: Topic :: System :: Networking
27
+ Classifier: Topic :: System :: Systems Administration
28
+ Classifier: Typing :: Typed
29
+ Requires-Dist: pyyaml>=6.0.2
30
+ Requires-Dist: requests>=2.32.0
31
+ Requires-Dist: tomli>=2.0.1 ; python_full_version < '3.11'
32
+ Requires-Dist: cryptography>=44.0.0 ; extra == 'signing'
33
+ Requires-Python: >=3.10, <3.15
34
+ Project-URL: Homepage, https://github.com/groupsum/wyrmctl
35
+ Project-URL: Documentation, https://github.com/groupsum/wyrmctl/tree/master/docs
36
+ Project-URL: Issues, https://github.com/groupsum/wyrmctl/issues
37
+ Project-URL: Repository, https://github.com/groupsum/wyrmctl
38
+ Provides-Extra: signing
39
+ Description-Content-Type: text/markdown
40
+
41
+ <h1 align="center">wyrmctl</h1>
42
+
43
+ <p align="center"><strong>Owner-scoped GitOps for Nginx Proxy Manager</strong></p>
44
+
45
+ <p align="center">
46
+ Validate desired-state YAML, plan safe owner-scoped changes, apply clean reconciles, and adopt existing NPM resources only when you ask for it.
47
+ </p>
48
+
49
+ <p align="center">
50
+ <a href="https://pypi.org/project/wyrmctl/"><img src="https://img.shields.io/pypi/v/wyrmctl.svg" alt="PyPI version"></a>
51
+ <a href="https://pypi.org/project/wyrmctl/"><img src="https://img.shields.io/pypi/pyversions/wyrmctl.svg" alt="Python versions"></a>
52
+ <a href="https://github.com/groupsum/wyrmctl/actions/workflows/ci.yml"><img src="https://github.com/groupsum/wyrmctl/actions/workflows/ci.yml/badge.svg?branch=master" alt="CI"></a>
53
+ <a href="https://github.com/groupsum/wyrmctl/actions/workflows/live-npm-gate.yml"><img src="https://github.com/groupsum/wyrmctl/actions/workflows/live-npm-gate.yml/badge.svg?branch=master" alt="Live NPM Gate"></a>
54
+ <a href="https://github.com/groupsum/wyrmctl/blob/master/.ssot/registry.json"><img src="https://img.shields.io/badge/SSOT-governed-2f6f4e.svg" alt="SSOT governed"></a>
55
+ <a href="https://github.com/groupsum/wyrmctl/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="Apache 2.0 License"></a>
56
+ </p>
57
+
58
+ <p align="center">
59
+ <a href="https://hits.sh/github.com/groupsum/wyrmctl/blob/master/packages/wyrmctl/README.md/"><img src="https://hits.sh/github.com/groupsum/wyrmctl/blob/master/packages/wyrmctl/README.md.svg?label=wyrmctl%20package%20hits" alt="wyrmctl package hits"></a>
60
+ <a href="https://pepy.tech/projects/wyrmctl"><img src="https://static.pepy.tech/badge/wyrmctl" alt="wyrmctl downloads"></a>
61
+ </p>
62
+
63
+ <p align="center">
64
+ <img src="https://raw.githubusercontent.com/groupsum/wyrmctl/master/docs/images/marketing/wyrmctl-architecture-infographic.png" alt="wyrmctl architecture infographic">
65
+ </p>
66
+
67
+ `wyrmctl` is the Python package and console script for declarative, owner-scoped Nginx Proxy Manager automation. It manages proxy hosts, certificates, access lists, redirection hosts, dead hosts, streams, users, settings, and provider-backed DNS records without silently mutating foreign-owned resources.
68
+
69
+ ## Supported Python Versions
70
+
71
+ `wyrmctl` supports Python `3.10`, `3.11`, `3.12`, `3.13`, and `3.14`.
72
+
73
+ ## Why wyrmctl
74
+
75
+ - Owner-scoped reconciliation instead of global mutable state
76
+ - Explicit `plan`, `apply`, and `adopt` flows instead of ad hoc API scripting
77
+ - Safe reference handling for certificates and access lists
78
+ - Fail-closed behavior when the target NPM schema does not support a required operation
79
+ - CLI-first workflows that fit GitOps, CI, and controlled repair operations
80
+ - Independently versioned contracts, reproducibility lockfiles, and immutable reviewed plan artifacts
81
+ - Transactional adjacent migrations with backups, chained ledgers, leases, and explicit recovery classification
82
+
83
+ ## FAQ
84
+
85
+ ### What is wyrmctl?
86
+
87
+ **Answer:** `wyrmctl` is a GitOps-style controller for Nginx Proxy Manager that reads desired-state YAML, compares it to the live NPM API, and produces safe owner-scoped plans before any mutation happens.
88
+
89
+ ### What problem does wyrmctl solve?
90
+
91
+ **Answer:** `wyrmctl` replaces manual NPM clicking and one-off API scripts with repeatable desired state, explicit adoption, conflict detection, and controlled reconciliation for reverse-proxy resources.
92
+
93
+ ### Does wyrmctl modify resources it does not own?
94
+
95
+ **Answer:** No. `wyrmctl` treats NPM resources as owner-scoped, refuses to mutate foreign-owned resources, and only attaches metadata to unmanaged resources when you run `wyrmctl adopt`.
96
+
97
+ ### How does wyrmctl handle certificate issuance and rotation?
98
+
99
+ **Answer:** `wyrmctl` treats certificates as declarative resources in the same desired state as proxy hosts. Issuance happens when a desired certificate must be created, and rotation happens through explicit reconcile policy rather than hidden mutation of unrelated resources.
100
+
101
+ ### Can wyrmctl adopt existing manually created NPM resources?
102
+
103
+ **Answer:** Yes. `wyrmctl adopt` can attach wyrmctl ownership metadata to compatible unmanaged resources so future plans and applies can manage them under explicit owner scope.
104
+
105
+ ## Install
106
+
107
+ Use `pipx` for an isolated CLI install:
108
+
109
+ ```bash
110
+ pipx install wyrmctl
111
+ wyrmctl --version
112
+ ```
113
+
114
+ Use `uv` if you manage tools with uv:
115
+
116
+ ```bash
117
+ uv tool install wyrmctl
118
+ wyrmctl --help
119
+ ```
120
+
121
+ Use `pip` inside an existing virtual environment:
122
+
123
+ ```bash
124
+ python -m venv .venv
125
+ . .venv/bin/activate
126
+ python -m pip install wyrmctl
127
+ wyrmctl --help
128
+ ```
129
+
130
+ PowerShell activation:
131
+
132
+ ```powershell
133
+ python -m venv .venv
134
+ .\.venv\Scripts\Activate.ps1
135
+ python -m pip install wyrmctl
136
+ wyrmctl --help
137
+ ```
138
+
139
+ ## Configure NPM
140
+
141
+ Set Nginx Proxy Manager API credentials as environment variables:
142
+
143
+ ```bash
144
+ export NPM_BASE_URL=http://127.0.0.1:81/api
145
+ export NPM_IDENTITY=admin@example.com
146
+ export NPM_SECRET=changeme
147
+ ```
148
+
149
+ Or pass them directly:
150
+
151
+ ```bash
152
+ wyrmctl --base-url http://127.0.0.1:81/api --identity admin@example.com --secret changeme health
153
+ ```
154
+
155
+ ## Quick Start
156
+
157
+ Validate desired state without touching the API:
158
+
159
+ ```bash
160
+ wyrmctl validate ./desired-state
161
+ wyrmctl --output json validate ./desired-state
162
+ ```
163
+
164
+ Plan owner-scoped changes:
165
+
166
+ ```bash
167
+ wyrmctl plan ./desired-state --owner workload-a
168
+ ```
169
+
170
+ Apply a clean plan:
171
+
172
+ ```bash
173
+ wyrmctl apply ./desired-state --owner workload-a
174
+ ```
175
+
176
+ Adopt unmanaged matching resources:
177
+
178
+ ```bash
179
+ wyrmctl adopt ./desired-state --owner workload-a
180
+ wyrmctl adopt ./desired-state --owner workload-a --allow-field-drift
181
+ ```
182
+
183
+ ## Desired State
184
+
185
+ Every managed resource needs wyrmctl ownership metadata:
186
+
187
+ ```yaml
188
+ apiVersion: wyrmctl.com/v1
189
+ schemaVersion: 2
190
+ proxy_hosts:
191
+ - domain_names: [app.example.com]
192
+ forward_scheme: http
193
+ forward_host: app
194
+ forward_port: 3000
195
+ meta:
196
+ managed_by: wyrmctl
197
+ owner: workload-a
198
+ resource_id: proxy.app
199
+ ```
200
+
201
+ References use `resource_id` values:
202
+
203
+ ```yaml
204
+ apiVersion: wyrmctl.com/v1
205
+ schemaVersion: 2
206
+ certificates:
207
+ - name: wildcard-example
208
+ domain_names: ["*.example.com", example.com]
209
+ certificate_type: letsencrypt
210
+ api_payload:
211
+ provider: letsencrypt
212
+ meta:
213
+ managed_by: wyrmctl
214
+ owner: workload-a
215
+ resource_id: cert.wildcard-example
216
+ access_lists:
217
+ - name: private-admins
218
+ api_payload:
219
+ satisfy_any: 0
220
+ items: []
221
+ clients: []
222
+ meta:
223
+ managed_by: wyrmctl
224
+ owner: workload-a
225
+ resource_id: acl.private-admins
226
+ proxy_hosts:
227
+ - domain_names: [app.example.com]
228
+ forward_host: app
229
+ forward_port: 3000
230
+ certificate_ref: cert.wildcard-example
231
+ access_list_ref: acl.private-admins
232
+ ssl_forced: 1
233
+ allow_websocket_upgrade: 1
234
+ caching_enabled: 1
235
+ block_exploits: 1
236
+ meta:
237
+ managed_by: wyrmctl
238
+ owner: workload-a
239
+ resource_id: proxy.app
240
+ ```
241
+
242
+ ## More Documentation
243
+
244
+ - Related PyPI package: https://pypi.org/project/wyrmctl-namecheap/
245
+ - Repository: https://github.com/groupsum/wyrmctl
246
+ - Examples: https://github.com/groupsum/wyrmctl/tree/master/examples/desired-state
247
+ - Docs: https://github.com/groupsum/wyrmctl/tree/master/docs
@@ -0,0 +1,207 @@
1
+ <h1 align="center">wyrmctl</h1>
2
+
3
+ <p align="center"><strong>Owner-scoped GitOps for Nginx Proxy Manager</strong></p>
4
+
5
+ <p align="center">
6
+ Validate desired-state YAML, plan safe owner-scoped changes, apply clean reconciles, and adopt existing NPM resources only when you ask for it.
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://pypi.org/project/wyrmctl/"><img src="https://img.shields.io/pypi/v/wyrmctl.svg" alt="PyPI version"></a>
11
+ <a href="https://pypi.org/project/wyrmctl/"><img src="https://img.shields.io/pypi/pyversions/wyrmctl.svg" alt="Python versions"></a>
12
+ <a href="https://github.com/groupsum/wyrmctl/actions/workflows/ci.yml"><img src="https://github.com/groupsum/wyrmctl/actions/workflows/ci.yml/badge.svg?branch=master" alt="CI"></a>
13
+ <a href="https://github.com/groupsum/wyrmctl/actions/workflows/live-npm-gate.yml"><img src="https://github.com/groupsum/wyrmctl/actions/workflows/live-npm-gate.yml/badge.svg?branch=master" alt="Live NPM Gate"></a>
14
+ <a href="https://github.com/groupsum/wyrmctl/blob/master/.ssot/registry.json"><img src="https://img.shields.io/badge/SSOT-governed-2f6f4e.svg" alt="SSOT governed"></a>
15
+ <a href="https://github.com/groupsum/wyrmctl/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="Apache 2.0 License"></a>
16
+ </p>
17
+
18
+ <p align="center">
19
+ <a href="https://hits.sh/github.com/groupsum/wyrmctl/blob/master/packages/wyrmctl/README.md/"><img src="https://hits.sh/github.com/groupsum/wyrmctl/blob/master/packages/wyrmctl/README.md.svg?label=wyrmctl%20package%20hits" alt="wyrmctl package hits"></a>
20
+ <a href="https://pepy.tech/projects/wyrmctl"><img src="https://static.pepy.tech/badge/wyrmctl" alt="wyrmctl downloads"></a>
21
+ </p>
22
+
23
+ <p align="center">
24
+ <img src="https://raw.githubusercontent.com/groupsum/wyrmctl/master/docs/images/marketing/wyrmctl-architecture-infographic.png" alt="wyrmctl architecture infographic">
25
+ </p>
26
+
27
+ `wyrmctl` is the Python package and console script for declarative, owner-scoped Nginx Proxy Manager automation. It manages proxy hosts, certificates, access lists, redirection hosts, dead hosts, streams, users, settings, and provider-backed DNS records without silently mutating foreign-owned resources.
28
+
29
+ ## Supported Python Versions
30
+
31
+ `wyrmctl` supports Python `3.10`, `3.11`, `3.12`, `3.13`, and `3.14`.
32
+
33
+ ## Why wyrmctl
34
+
35
+ - Owner-scoped reconciliation instead of global mutable state
36
+ - Explicit `plan`, `apply`, and `adopt` flows instead of ad hoc API scripting
37
+ - Safe reference handling for certificates and access lists
38
+ - Fail-closed behavior when the target NPM schema does not support a required operation
39
+ - CLI-first workflows that fit GitOps, CI, and controlled repair operations
40
+ - Independently versioned contracts, reproducibility lockfiles, and immutable reviewed plan artifacts
41
+ - Transactional adjacent migrations with backups, chained ledgers, leases, and explicit recovery classification
42
+
43
+ ## FAQ
44
+
45
+ ### What is wyrmctl?
46
+
47
+ **Answer:** `wyrmctl` is a GitOps-style controller for Nginx Proxy Manager that reads desired-state YAML, compares it to the live NPM API, and produces safe owner-scoped plans before any mutation happens.
48
+
49
+ ### What problem does wyrmctl solve?
50
+
51
+ **Answer:** `wyrmctl` replaces manual NPM clicking and one-off API scripts with repeatable desired state, explicit adoption, conflict detection, and controlled reconciliation for reverse-proxy resources.
52
+
53
+ ### Does wyrmctl modify resources it does not own?
54
+
55
+ **Answer:** No. `wyrmctl` treats NPM resources as owner-scoped, refuses to mutate foreign-owned resources, and only attaches metadata to unmanaged resources when you run `wyrmctl adopt`.
56
+
57
+ ### How does wyrmctl handle certificate issuance and rotation?
58
+
59
+ **Answer:** `wyrmctl` treats certificates as declarative resources in the same desired state as proxy hosts. Issuance happens when a desired certificate must be created, and rotation happens through explicit reconcile policy rather than hidden mutation of unrelated resources.
60
+
61
+ ### Can wyrmctl adopt existing manually created NPM resources?
62
+
63
+ **Answer:** Yes. `wyrmctl adopt` can attach wyrmctl ownership metadata to compatible unmanaged resources so future plans and applies can manage them under explicit owner scope.
64
+
65
+ ## Install
66
+
67
+ Use `pipx` for an isolated CLI install:
68
+
69
+ ```bash
70
+ pipx install wyrmctl
71
+ wyrmctl --version
72
+ ```
73
+
74
+ Use `uv` if you manage tools with uv:
75
+
76
+ ```bash
77
+ uv tool install wyrmctl
78
+ wyrmctl --help
79
+ ```
80
+
81
+ Use `pip` inside an existing virtual environment:
82
+
83
+ ```bash
84
+ python -m venv .venv
85
+ . .venv/bin/activate
86
+ python -m pip install wyrmctl
87
+ wyrmctl --help
88
+ ```
89
+
90
+ PowerShell activation:
91
+
92
+ ```powershell
93
+ python -m venv .venv
94
+ .\.venv\Scripts\Activate.ps1
95
+ python -m pip install wyrmctl
96
+ wyrmctl --help
97
+ ```
98
+
99
+ ## Configure NPM
100
+
101
+ Set Nginx Proxy Manager API credentials as environment variables:
102
+
103
+ ```bash
104
+ export NPM_BASE_URL=http://127.0.0.1:81/api
105
+ export NPM_IDENTITY=admin@example.com
106
+ export NPM_SECRET=changeme
107
+ ```
108
+
109
+ Or pass them directly:
110
+
111
+ ```bash
112
+ wyrmctl --base-url http://127.0.0.1:81/api --identity admin@example.com --secret changeme health
113
+ ```
114
+
115
+ ## Quick Start
116
+
117
+ Validate desired state without touching the API:
118
+
119
+ ```bash
120
+ wyrmctl validate ./desired-state
121
+ wyrmctl --output json validate ./desired-state
122
+ ```
123
+
124
+ Plan owner-scoped changes:
125
+
126
+ ```bash
127
+ wyrmctl plan ./desired-state --owner workload-a
128
+ ```
129
+
130
+ Apply a clean plan:
131
+
132
+ ```bash
133
+ wyrmctl apply ./desired-state --owner workload-a
134
+ ```
135
+
136
+ Adopt unmanaged matching resources:
137
+
138
+ ```bash
139
+ wyrmctl adopt ./desired-state --owner workload-a
140
+ wyrmctl adopt ./desired-state --owner workload-a --allow-field-drift
141
+ ```
142
+
143
+ ## Desired State
144
+
145
+ Every managed resource needs wyrmctl ownership metadata:
146
+
147
+ ```yaml
148
+ apiVersion: wyrmctl.com/v1
149
+ schemaVersion: 2
150
+ proxy_hosts:
151
+ - domain_names: [app.example.com]
152
+ forward_scheme: http
153
+ forward_host: app
154
+ forward_port: 3000
155
+ meta:
156
+ managed_by: wyrmctl
157
+ owner: workload-a
158
+ resource_id: proxy.app
159
+ ```
160
+
161
+ References use `resource_id` values:
162
+
163
+ ```yaml
164
+ apiVersion: wyrmctl.com/v1
165
+ schemaVersion: 2
166
+ certificates:
167
+ - name: wildcard-example
168
+ domain_names: ["*.example.com", example.com]
169
+ certificate_type: letsencrypt
170
+ api_payload:
171
+ provider: letsencrypt
172
+ meta:
173
+ managed_by: wyrmctl
174
+ owner: workload-a
175
+ resource_id: cert.wildcard-example
176
+ access_lists:
177
+ - name: private-admins
178
+ api_payload:
179
+ satisfy_any: 0
180
+ items: []
181
+ clients: []
182
+ meta:
183
+ managed_by: wyrmctl
184
+ owner: workload-a
185
+ resource_id: acl.private-admins
186
+ proxy_hosts:
187
+ - domain_names: [app.example.com]
188
+ forward_host: app
189
+ forward_port: 3000
190
+ certificate_ref: cert.wildcard-example
191
+ access_list_ref: acl.private-admins
192
+ ssl_forced: 1
193
+ allow_websocket_upgrade: 1
194
+ caching_enabled: 1
195
+ block_exploits: 1
196
+ meta:
197
+ managed_by: wyrmctl
198
+ owner: workload-a
199
+ resource_id: proxy.app
200
+ ```
201
+
202
+ ## More Documentation
203
+
204
+ - Related PyPI package: https://pypi.org/project/wyrmctl-namecheap/
205
+ - Repository: https://github.com/groupsum/wyrmctl
206
+ - Examples: https://github.com/groupsum/wyrmctl/tree/master/examples/desired-state
207
+ - Docs: https://github.com/groupsum/wyrmctl/tree/master/docs