recto-core 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- recto_core-1.0.0/LICENSE +201 -0
- recto_core-1.0.0/PKG-INFO +134 -0
- recto_core-1.0.0/README.md +81 -0
- recto_core-1.0.0/pyproject.toml +172 -0
- recto_core-1.0.0/recto/__init__.py +20 -0
- recto_core-1.0.0/recto/__main__.py +16 -0
- recto_core-1.0.0/recto/_launcher_run.py +151 -0
- recto_core-1.0.0/recto/_migrate.py +167 -0
- recto_core-1.0.0/recto/adminui.py +618 -0
- recto_core-1.0.0/recto/bitcoin.py +772 -0
- recto_core-1.0.0/recto/bootloader/__init__.py +54 -0
- recto_core-1.0.0/recto/bootloader/server.py +4187 -0
- recto_core-1.0.0/recto/bootloader/sessions.py +317 -0
- recto_core-1.0.0/recto/bootloader/state.py +2002 -0
- recto_core-1.0.0/recto/capability/__init__.py +76 -0
- recto_core-1.0.0/recto/capability/jwt.py +441 -0
- recto_core-1.0.0/recto/capability/manifest.py +278 -0
- recto_core-1.0.0/recto/capability/manifest_v1.json +176 -0
- recto_core-1.0.0/recto/capability/types.py +229 -0
- recto_core-1.0.0/recto/cli.py +2767 -0
- recto_core-1.0.0/recto/comms.py +482 -0
- recto_core-1.0.0/recto/config.py +587 -0
- recto_core-1.0.0/recto/ethereum.py +875 -0
- recto_core-1.0.0/recto/healthz.py +235 -0
- recto_core-1.0.0/recto/joblimit.py +423 -0
- recto_core-1.0.0/recto/launcher.py +421 -0
- recto_core-1.0.0/recto/nssm.py +457 -0
- recto_core-1.0.0/recto/profile/__init__.py +45 -0
- recto_core-1.0.0/recto/profile/manage.py +917 -0
- recto_core-1.0.0/recto/profile/store.py +453 -0
- recto_core-1.0.0/recto/profile/types.py +410 -0
- recto_core-1.0.0/recto/profile/usb_backup.py +359 -0
- recto_core-1.0.0/recto/reconcile.py +257 -0
- recto_core-1.0.0/recto/restart.py +141 -0
- recto_core-1.0.0/recto/ripple.py +464 -0
- recto_core-1.0.0/recto/secrets/__init__.py +144 -0
- recto_core-1.0.0/recto/secrets/base.py +146 -0
- recto_core-1.0.0/recto/secrets/credman.py +424 -0
- recto_core-1.0.0/recto/secrets/dpapi_machine.py +386 -0
- recto_core-1.0.0/recto/secrets/enclave_stub.py +187 -0
- recto_core-1.0.0/recto/secrets/env.py +56 -0
- recto_core-1.0.0/recto/sign_helper.py +428 -0
- recto_core-1.0.0/recto/solana.py +350 -0
- recto_core-1.0.0/recto/stellar.py +378 -0
- recto_core-1.0.0/recto/telemetry.py +276 -0
- recto_core-1.0.0/recto/tron.py +358 -0
- recto_core-1.0.0/recto_core.egg-info/PKG-INFO +134 -0
- recto_core-1.0.0/recto_core.egg-info/SOURCES.txt +97 -0
- recto_core-1.0.0/recto_core.egg-info/dependency_links.txt +1 -0
- recto_core-1.0.0/recto_core.egg-info/entry_points.txt +2 -0
- recto_core-1.0.0/recto_core.egg-info/requires.txt +36 -0
- recto_core-1.0.0/recto_core.egg-info/top_level.txt +1 -0
- recto_core-1.0.0/setup.cfg +4 -0
- recto_core-1.0.0/tests/test_adminui.py +453 -0
- recto_core-1.0.0/tests/test_bitcoin.py +538 -0
- recto_core-1.0.0/tests/test_bootloader_app_context.py +464 -0
- recto_core-1.0.0/tests/test_bootloader_btc.py +498 -0
- recto_core-1.0.0/tests/test_bootloader_capability.py +906 -0
- recto_core-1.0.0/tests/test_bootloader_capability_gate.py +682 -0
- recto_core-1.0.0/tests/test_bootloader_capability_revocation.py +615 -0
- recto_core-1.0.0/tests/test_bootloader_ed.py +661 -0
- recto_core-1.0.0/tests/test_bootloader_eth.py +585 -0
- recto_core-1.0.0/tests/test_bootloader_manage_phones.py +219 -0
- recto_core-1.0.0/tests/test_bootloader_pairing_code.py +255 -0
- recto_core-1.0.0/tests/test_bootloader_profile_add_device.py +716 -0
- recto_core-1.0.0/tests/test_bootloader_profile_create.py +1543 -0
- recto_core-1.0.0/tests/test_bootloader_profile_create_state.py +348 -0
- recto_core-1.0.0/tests/test_bootloader_profile_revoke_device.py +739 -0
- recto_core-1.0.0/tests/test_bootloader_revoke_phone.py +390 -0
- recto_core-1.0.0/tests/test_bootloader_sessions.py +266 -0
- recto_core-1.0.0/tests/test_bootloader_state.py +267 -0
- recto_core-1.0.0/tests/test_bootloader_tron.py +499 -0
- recto_core-1.0.0/tests/test_bootloader_vault_bootstrap.py +164 -0
- recto_core-1.0.0/tests/test_capability.py +1022 -0
- recto_core-1.0.0/tests/test_cli.py +2060 -0
- recto_core-1.0.0/tests/test_cli_profile.py +1127 -0
- recto_core-1.0.0/tests/test_cli_vault.py +187 -0
- recto_core-1.0.0/tests/test_comms.py +762 -0
- recto_core-1.0.0/tests/test_config.py +514 -0
- recto_core-1.0.0/tests/test_ethereum.py +367 -0
- recto_core-1.0.0/tests/test_healthz.py +483 -0
- recto_core-1.0.0/tests/test_joblimit.py +243 -0
- recto_core-1.0.0/tests/test_launcher.py +1535 -0
- recto_core-1.0.0/tests/test_launcher_comms.py +398 -0
- recto_core-1.0.0/tests/test_nssm.py +429 -0
- recto_core-1.0.0/tests/test_profile_foundation.py +997 -0
- recto_core-1.0.0/tests/test_reconcile.py +502 -0
- recto_core-1.0.0/tests/test_restart.py +177 -0
- recto_core-1.0.0/tests/test_ripple.py +240 -0
- recto_core-1.0.0/tests/test_secrets_base.py +138 -0
- recto_core-1.0.0/tests/test_secrets_credman.py +468 -0
- recto_core-1.0.0/tests/test_secrets_dpapi_machine.py +372 -0
- recto_core-1.0.0/tests/test_secrets_enclave_stub.py +152 -0
- recto_core-1.0.0/tests/test_secrets_env.py +69 -0
- recto_core-1.0.0/tests/test_sign_helper.py +276 -0
- recto_core-1.0.0/tests/test_solana.py +234 -0
- recto_core-1.0.0/tests/test_stellar.py +187 -0
- recto_core-1.0.0/tests/test_telemetry.py +298 -0
- recto_core-1.0.0/tests/test_tron.py +345 -0
recto_core-1.0.0/LICENSE
ADDED
|
@@ -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,134 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: recto-core
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Phone-enclave-rooted capability authorization substrate for autonomous agents. Cross-platform service supervision, vault-backed secrets, capability JWS verification.
|
|
5
|
+
Author: Erik Cheatham
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/erikcheatham/Recto
|
|
8
|
+
Project-URL: Repository, https://github.com/erikcheatham/Recto
|
|
9
|
+
Project-URL: Issues, https://github.com/erikcheatham/Recto/issues
|
|
10
|
+
Project-URL: Documentation, https://github.com/erikcheatham/Recto/blob/main/README.md
|
|
11
|
+
Project-URL: Changelog, https://github.com/erikcheatham/Recto/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: capability-authorization,service-manager,credentials,devops,ai-agents,biometric-signing
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: System Administrators
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Operating System :: MacOS
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: System :: Systems Administration
|
|
23
|
+
Classifier: Topic :: Security :: Cryptography
|
|
24
|
+
Requires-Python: >=3.12
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: PyYAML>=6.0
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
30
|
+
Requires-Dist: pytest-cov>=4.1; extra == "dev"
|
|
31
|
+
Requires-Dist: mypy>=1.8; extra == "dev"
|
|
32
|
+
Requires-Dist: ruff>=0.3; extra == "dev"
|
|
33
|
+
Requires-Dist: types-PyYAML>=6.0; extra == "dev"
|
|
34
|
+
Provides-Extra: aws
|
|
35
|
+
Requires-Dist: boto3>=1.34; extra == "aws"
|
|
36
|
+
Provides-Extra: vault
|
|
37
|
+
Requires-Dist: hvac>=2.0; extra == "vault"
|
|
38
|
+
Provides-Extra: keychain
|
|
39
|
+
Provides-Extra: secret-service
|
|
40
|
+
Requires-Dist: secretstorage>=3.3; extra == "secret-service"
|
|
41
|
+
Provides-Extra: otel
|
|
42
|
+
Requires-Dist: opentelemetry-api>=1.20; extra == "otel"
|
|
43
|
+
Requires-Dist: opentelemetry-sdk>=1.20; extra == "otel"
|
|
44
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.20; extra == "otel"
|
|
45
|
+
Provides-Extra: v0-4
|
|
46
|
+
Requires-Dist: cryptography>=42; extra == "v0-4"
|
|
47
|
+
Requires-Dist: pyjwt[crypto]>=2.8; extra == "v0-4"
|
|
48
|
+
Provides-Extra: ethereum
|
|
49
|
+
Provides-Extra: bitcoin
|
|
50
|
+
Provides-Extra: ed25519
|
|
51
|
+
Provides-Extra: tron
|
|
52
|
+
Dynamic: license-file
|
|
53
|
+
|
|
54
|
+
# Recto
|
|
55
|
+
|
|
56
|
+
Modern Windows-service wrapper. Spiritual successor to NSSM with a 2026 feature set.
|
|
57
|
+
|
|
58
|
+
## Why Recto
|
|
59
|
+
|
|
60
|
+
NSSM has been the canonical "wrap an executable as a Windows service" tool since 2003 and remains rock-solid at that primitive. But the world it was built for didn't have OpenTelemetry, didn't have GitOps, didn't have hardware-enclave secret stores, and didn't have the threat model where production secrets sitting in plaintext registry keys is a real attack surface. Recto picks up where NSSM stops:
|
|
61
|
+
|
|
62
|
+
- **Vault-backed secrets.** Service env vars never sit in plaintext on disk. Pulled from Windows Credential Manager (DPAPI-encrypted) at process start, or from any pluggable backend.
|
|
63
|
+
- **HTTP liveness probes** with configurable thresholds and exponential-backoff restart.
|
|
64
|
+
- **Restart-event webhooks** post structured JSON to any URL when the supervised process crashes, restarts, or fails health checks.
|
|
65
|
+
- **Declarative YAML config** that lives in the consuming repo, reviewable in PRs. Replaces imperative `nssm set ...` PowerShell.
|
|
66
|
+
- **Win32 Job Object resource limits** for memory, CPU, process count.
|
|
67
|
+
- **OpenTelemetry traces** for every lifecycle event.
|
|
68
|
+
- **Pluggable secret-source backends** — Credential Manager (Windows), Keychain (macOS), Secret Service (Linux), AWS Secrets Manager, HashiCorp Vault — and the architectural seam for hardware-enclave backends with biometric release.
|
|
69
|
+
|
|
70
|
+
Recto wraps NSSM today; v0.2+ may absorb the service-registration responsibility natively.
|
|
71
|
+
|
|
72
|
+
## Status
|
|
73
|
+
|
|
74
|
+
**v1.0 released.** First public OSS release; not yet on PyPI. See [CHANGELOG.md](CHANGELOG.md) for the per-feature history and [ROADMAP.md](ROADMAP.md) for what's next.
|
|
75
|
+
|
|
76
|
+
## Quick start
|
|
77
|
+
|
|
78
|
+
Recto runs on Python 3.10+. The canonical first-time setup uses a project-local virtual environment so the editable install doesn't touch your system Python:
|
|
79
|
+
|
|
80
|
+
```powershell
|
|
81
|
+
# Windows (PowerShell):
|
|
82
|
+
git clone https://github.com/erikcheatham/Recto.git
|
|
83
|
+
cd Recto
|
|
84
|
+
python -m venv .venv
|
|
85
|
+
.\.venv\Scripts\Activate.ps1
|
|
86
|
+
pip install -e ".[v0_4]"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# macOS / Linux:
|
|
91
|
+
git clone https://github.com/erikcheatham/Recto.git
|
|
92
|
+
cd Recto
|
|
93
|
+
python3 -m venv .venv
|
|
94
|
+
source .venv/bin/activate
|
|
95
|
+
pip install -e ".[v0_4]"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The `[v0_4]` extra pulls in the `cryptography` + `pyjwt` dependencies the v0.4 protocol needs. Without it, the bootloader's verifier paths raise on import.
|
|
99
|
+
|
|
100
|
+
After install, smoke-check:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
python -c "import recto; print(recto.__version__)"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
For the bootloader-side launcher (the bridge between your application and a paired phone), see [INTEGRATION.md](INTEGRATION.md) and the example launcher at `examples/run_bootloader_consumer.py` (env-var-parameterized; ships unmodified to every consumer).
|
|
107
|
+
|
|
108
|
+
> **Re-cloning?** A fresh `git clone` does NOT include any prior `.venv`. After every clone, repeat the `python -m venv .venv` + `pip install -e ".[v0_4]"` step. The editable install only stores a path pointer; rebuilding the venv is fast (~30s).
|
|
109
|
+
|
|
110
|
+
## Distribution model
|
|
111
|
+
|
|
112
|
+
Recto distributes as **three packages targeting three audiences via three channels**:
|
|
113
|
+
|
|
114
|
+
- **`recto-core`** (PyPI) — the Substrate. Bootloader server + launcher (NSSM-replacement) + dpapi-machine vault + vault CLI + NSSM-migration tooling + server-side verifier libraries. Install on the host you administer.
|
|
115
|
+
- **`recto-client-{py,ts,cs}`** (PyPI / npm / NuGet) — the Agent SDKs. Wire-protocol clients for programs that consume capability authority. Add as a library dependency to your app.
|
|
116
|
+
- **Recto Phone** (App Store / Play Store) — the Consumer. One canonical multi-tenant MAUI app supporting pairing with N orchestrators simultaneously (Authy model, not bank-app-per-bank model). Install from the OS store.
|
|
117
|
+
|
|
118
|
+
Three audiences (DevOps + application developers + humans) get different distribution channels matching how they actually consume the substrate. See [PACKAGING.md](PACKAGING.md) for the full architectural decision, pre-v1.0 → post-v1.0 migration plan, dependency graph, and versioning policy.
|
|
119
|
+
|
|
120
|
+
## License
|
|
121
|
+
|
|
122
|
+
Apache 2.0. See [LICENSE](LICENSE).
|
|
123
|
+
|
|
124
|
+
## Architecture
|
|
125
|
+
|
|
126
|
+
See [ARCHITECTURE.md](ARCHITECTURE.md) for the design doc — pluggable backends, YAML schema, NSSM relationship, threat model.
|
|
127
|
+
|
|
128
|
+
## Integrating with Recto
|
|
129
|
+
|
|
130
|
+
See [INTEGRATION.md](INTEGRATION.md) for the practical "how do I plug my app into Recto" guide — agent registration, capability-request wire shapes, claim schema, reference implementations in Python + C#, and production hardening checklist.
|
|
131
|
+
|
|
132
|
+
## Lineage
|
|
133
|
+
|
|
134
|
+
NSSM (the Non-Sucking Service Manager) by Iain Patterson, 2003-2017, public domain. Recto stands on its shoulders for the service-registration primitive and aims to keep the give-it-away spirit alive under a license that adds explicit patent grants for the modern era.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Recto
|
|
2
|
+
|
|
3
|
+
Modern Windows-service wrapper. Spiritual successor to NSSM with a 2026 feature set.
|
|
4
|
+
|
|
5
|
+
## Why Recto
|
|
6
|
+
|
|
7
|
+
NSSM has been the canonical "wrap an executable as a Windows service" tool since 2003 and remains rock-solid at that primitive. But the world it was built for didn't have OpenTelemetry, didn't have GitOps, didn't have hardware-enclave secret stores, and didn't have the threat model where production secrets sitting in plaintext registry keys is a real attack surface. Recto picks up where NSSM stops:
|
|
8
|
+
|
|
9
|
+
- **Vault-backed secrets.** Service env vars never sit in plaintext on disk. Pulled from Windows Credential Manager (DPAPI-encrypted) at process start, or from any pluggable backend.
|
|
10
|
+
- **HTTP liveness probes** with configurable thresholds and exponential-backoff restart.
|
|
11
|
+
- **Restart-event webhooks** post structured JSON to any URL when the supervised process crashes, restarts, or fails health checks.
|
|
12
|
+
- **Declarative YAML config** that lives in the consuming repo, reviewable in PRs. Replaces imperative `nssm set ...` PowerShell.
|
|
13
|
+
- **Win32 Job Object resource limits** for memory, CPU, process count.
|
|
14
|
+
- **OpenTelemetry traces** for every lifecycle event.
|
|
15
|
+
- **Pluggable secret-source backends** — Credential Manager (Windows), Keychain (macOS), Secret Service (Linux), AWS Secrets Manager, HashiCorp Vault — and the architectural seam for hardware-enclave backends with biometric release.
|
|
16
|
+
|
|
17
|
+
Recto wraps NSSM today; v0.2+ may absorb the service-registration responsibility natively.
|
|
18
|
+
|
|
19
|
+
## Status
|
|
20
|
+
|
|
21
|
+
**v1.0 released.** First public OSS release; not yet on PyPI. See [CHANGELOG.md](CHANGELOG.md) for the per-feature history and [ROADMAP.md](ROADMAP.md) for what's next.
|
|
22
|
+
|
|
23
|
+
## Quick start
|
|
24
|
+
|
|
25
|
+
Recto runs on Python 3.10+. The canonical first-time setup uses a project-local virtual environment so the editable install doesn't touch your system Python:
|
|
26
|
+
|
|
27
|
+
```powershell
|
|
28
|
+
# Windows (PowerShell):
|
|
29
|
+
git clone https://github.com/erikcheatham/Recto.git
|
|
30
|
+
cd Recto
|
|
31
|
+
python -m venv .venv
|
|
32
|
+
.\.venv\Scripts\Activate.ps1
|
|
33
|
+
pip install -e ".[v0_4]"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# macOS / Linux:
|
|
38
|
+
git clone https://github.com/erikcheatham/Recto.git
|
|
39
|
+
cd Recto
|
|
40
|
+
python3 -m venv .venv
|
|
41
|
+
source .venv/bin/activate
|
|
42
|
+
pip install -e ".[v0_4]"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The `[v0_4]` extra pulls in the `cryptography` + `pyjwt` dependencies the v0.4 protocol needs. Without it, the bootloader's verifier paths raise on import.
|
|
46
|
+
|
|
47
|
+
After install, smoke-check:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
python -c "import recto; print(recto.__version__)"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
For the bootloader-side launcher (the bridge between your application and a paired phone), see [INTEGRATION.md](INTEGRATION.md) and the example launcher at `examples/run_bootloader_consumer.py` (env-var-parameterized; ships unmodified to every consumer).
|
|
54
|
+
|
|
55
|
+
> **Re-cloning?** A fresh `git clone` does NOT include any prior `.venv`. After every clone, repeat the `python -m venv .venv` + `pip install -e ".[v0_4]"` step. The editable install only stores a path pointer; rebuilding the venv is fast (~30s).
|
|
56
|
+
|
|
57
|
+
## Distribution model
|
|
58
|
+
|
|
59
|
+
Recto distributes as **three packages targeting three audiences via three channels**:
|
|
60
|
+
|
|
61
|
+
- **`recto-core`** (PyPI) — the Substrate. Bootloader server + launcher (NSSM-replacement) + dpapi-machine vault + vault CLI + NSSM-migration tooling + server-side verifier libraries. Install on the host you administer.
|
|
62
|
+
- **`recto-client-{py,ts,cs}`** (PyPI / npm / NuGet) — the Agent SDKs. Wire-protocol clients for programs that consume capability authority. Add as a library dependency to your app.
|
|
63
|
+
- **Recto Phone** (App Store / Play Store) — the Consumer. One canonical multi-tenant MAUI app supporting pairing with N orchestrators simultaneously (Authy model, not bank-app-per-bank model). Install from the OS store.
|
|
64
|
+
|
|
65
|
+
Three audiences (DevOps + application developers + humans) get different distribution channels matching how they actually consume the substrate. See [PACKAGING.md](PACKAGING.md) for the full architectural decision, pre-v1.0 → post-v1.0 migration plan, dependency graph, and versioning policy.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
Apache 2.0. See [LICENSE](LICENSE).
|
|
70
|
+
|
|
71
|
+
## Architecture
|
|
72
|
+
|
|
73
|
+
See [ARCHITECTURE.md](ARCHITECTURE.md) for the design doc — pluggable backends, YAML schema, NSSM relationship, threat model.
|
|
74
|
+
|
|
75
|
+
## Integrating with Recto
|
|
76
|
+
|
|
77
|
+
See [INTEGRATION.md](INTEGRATION.md) for the practical "how do I plug my app into Recto" guide — agent registration, capability-request wire shapes, claim schema, reference implementations in Python + C#, and production hardening checklist.
|
|
78
|
+
|
|
79
|
+
## Lineage
|
|
80
|
+
|
|
81
|
+
NSSM (the Non-Sucking Service Manager) by Iain Patterson, 2003-2017, public domain. Recto stands on its shoulders for the service-registration primitive and aims to keep the give-it-away spirit alive under a license that adds explicit patent grants for the modern era.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "recto-core"
|
|
7
|
+
# PACKAGING.md → "PyPI package name: recto-core". The historical name
|
|
8
|
+
# "recto" in this file's prior versions was a placeholder; canonical
|
|
9
|
+
# distribution name at v1.0 is recto-core (the Substrate tier).
|
|
10
|
+
# The Python import name remains `recto` (per repo layout); PyPI users
|
|
11
|
+
# install via `pip install recto-core` and import as `import recto`.
|
|
12
|
+
version = "1.0.0"
|
|
13
|
+
description = "Phone-enclave-rooted capability authorization substrate for autonomous agents. Cross-platform service supervision, vault-backed secrets, capability JWS verification."
|
|
14
|
+
readme = "README.md"
|
|
15
|
+
requires-python = ">=3.12"
|
|
16
|
+
license = "Apache-2.0"
|
|
17
|
+
authors = [{name = "Erik Cheatham"}]
|
|
18
|
+
keywords = ["capability-authorization", "service-manager", "credentials", "devops", "ai-agents", "biometric-signing"]
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Development Status :: 4 - Beta",
|
|
21
|
+
"Intended Audience :: System Administrators",
|
|
22
|
+
"Intended Audience :: Developers",
|
|
23
|
+
"Operating System :: Microsoft :: Windows",
|
|
24
|
+
"Operating System :: POSIX :: Linux",
|
|
25
|
+
"Operating System :: MacOS",
|
|
26
|
+
"Programming Language :: Python :: 3",
|
|
27
|
+
"Programming Language :: Python :: 3.12",
|
|
28
|
+
"Programming Language :: Python :: 3.13",
|
|
29
|
+
"Topic :: System :: Systems Administration",
|
|
30
|
+
"Topic :: Security :: Cryptography",
|
|
31
|
+
]
|
|
32
|
+
dependencies = [
|
|
33
|
+
"PyYAML>=6.0",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[project.optional-dependencies]
|
|
37
|
+
dev = [
|
|
38
|
+
"pytest>=8.0",
|
|
39
|
+
"pytest-cov>=4.1",
|
|
40
|
+
"mypy>=1.8",
|
|
41
|
+
"ruff>=0.3",
|
|
42
|
+
"types-PyYAML>=6.0",
|
|
43
|
+
]
|
|
44
|
+
aws = ["boto3>=1.34"]
|
|
45
|
+
vault = ["hvac>=2.0"]
|
|
46
|
+
keychain = [] # macOS uses /usr/bin/security CLI (stdlib only)
|
|
47
|
+
secret-service = ["secretstorage>=3.3"]
|
|
48
|
+
otel = [
|
|
49
|
+
"opentelemetry-api>=1.20",
|
|
50
|
+
"opentelemetry-sdk>=1.20",
|
|
51
|
+
"opentelemetry-exporter-otlp-proto-http>=1.20",
|
|
52
|
+
] # `pip install recto[otel]` to enable spec.telemetry tracing
|
|
53
|
+
v0_4 = [
|
|
54
|
+
"cryptography>=42", # Ed25519 sign/verify via the cryptography backend
|
|
55
|
+
"pyjwt[crypto]>=2.8", # JWT EdDSA encode/verify (pulls cryptography too)
|
|
56
|
+
] # `pip install recto[v0_4]` to enable phone-resident vault (enclave_stub
|
|
57
|
+
# backend, recto.bootloader, recto v0.4 register/revoke CLI). The phone
|
|
58
|
+
# app itself is a separate MAUI Blazor project under /phone; this extra
|
|
59
|
+
# only covers the Recto-side dependencies for the bootloader and the
|
|
60
|
+
# in-process stub used for testing without phone hardware.
|
|
61
|
+
ethereum = []
|
|
62
|
+
# `pip install recto[ethereum]` enables the eth_sign credential kind
|
|
63
|
+
# (recto.ethereum module: Keccak-256, EIP-191 / EIP-712 hashing,
|
|
64
|
+
# secp256k1 ECDSA verify + public-key recovery, EIP-55 checksum
|
|
65
|
+
# addresses). The implementation is pure Python stdlib — int /
|
|
66
|
+
# hashlib / no native dependencies — so this extra adds NO new
|
|
67
|
+
# packages to the dep tree. The empty list is intentional: the
|
|
68
|
+
# extra exists purely to gate the import path so consumers without
|
|
69
|
+
# ETH-credential needs can ignore the module. Sign-side primitives
|
|
70
|
+
# (BIP39 mnemonic, BIP32/BIP44 derivation, secp256k1 sign with
|
|
71
|
+
# v-recovery) live phone-side in the MAUI Blazor project, NOT in
|
|
72
|
+
# this Python module — private keys never touch the launcher tier.
|
|
73
|
+
bitcoin = []
|
|
74
|
+
# `pip install recto[bitcoin]` enables the btc_sign credential kind
|
|
75
|
+
# (recto.bitcoin module: RIPEMD-160 + HASH160, double-SHA-256,
|
|
76
|
+
# bech32 / bech32m encoding per BIP-173 / BIP-350, BIP-137 signed-
|
|
77
|
+
# message hashing, P2WPKH / P2PKH / P2SH-P2WPKH address derivation,
|
|
78
|
+
# BIP-137 compact signature parse + recover). Same posture as the
|
|
79
|
+
# ethereum extra: pure Python stdlib + a delegation to recto.ethereum
|
|
80
|
+
# for the secp256k1 verify primitive (same curve). No new packages.
|
|
81
|
+
# Empty list is intentional. Sign-side primitives live phone-side in
|
|
82
|
+
# MAUI Blazor under the SAME BIP-39 mnemonic the eth_sign service
|
|
83
|
+
# uses — one mnemonic, two BIP-44 trees (m/44'/60' for ETH,
|
|
84
|
+
# m/84'/0' for BTC native SegWit).
|
|
85
|
+
ed25519 = []
|
|
86
|
+
# `pip install recto[ed25519]` enables the ed_sign credential kind
|
|
87
|
+
# (recto.solana / recto.stellar / recto.ripple modules: base58 + base32
|
|
88
|
+
# StrKey + Ripple-flavored base58 address encodings, CRC16-XMODEM,
|
|
89
|
+
# XRP HASH160 with 0xED ed25519 prefix, per-chain message hashing).
|
|
90
|
+
# Address encoding and message hashing are pure Python stdlib (the
|
|
91
|
+
# XRP module borrows recto.bitcoin.ripemd160 for HASH160, also
|
|
92
|
+
# pure-stdlib). Empty list is intentional — no new packages added.
|
|
93
|
+
# Signature verification (the optional verify_signature path on each
|
|
94
|
+
# chain module) requires `cryptography>=42` to be installed; this is
|
|
95
|
+
# pulled in transitively via `recto[v0_4]` when the bootloader is
|
|
96
|
+
# active. Stand-alone verifier callers should `pip install recto[v0_4]`
|
|
97
|
+
# to get cryptography. Sign-side primitives (BIP-39 → SLIP-0010
|
|
98
|
+
# ed25519 derivation, ed25519 sign with the chain-specific message
|
|
99
|
+
# hash) live phone-side in the MAUI Blazor project — same BIP-39
|
|
100
|
+
# mnemonic as eth_sign and btc_sign, three new SLIP-10 trees:
|
|
101
|
+
# m/44'/501'/N'/0' (SOL), m/44'/148'/N' (XLM), m/44'/144'/0'/0'/N'
|
|
102
|
+
# (XRP-ed25519, all hardened). One mnemonic, five chain-coin trees.
|
|
103
|
+
tron = []
|
|
104
|
+
# `pip install recto[tron]` enables the tron_sign credential kind
|
|
105
|
+
# (recto.tron module: TIP-191 message hashing, base58check address
|
|
106
|
+
# encoding with version byte 0x41, secp256k1 ECDSA recovery).
|
|
107
|
+
# Empty list is intentional -- no new packages added beyond the
|
|
108
|
+
# ethereum extra: pure Python stdlib + delegation to
|
|
109
|
+
# recto.ethereum for keccak256 + secp256k1 recovery. The phone-side
|
|
110
|
+
# service reuses the same BIP-39 mnemonic as eth_sign / btc_sign at
|
|
111
|
+
# SLIP-0044 coin-type 195: m/44'/195'/0'/0/N (standard secp256k1
|
|
112
|
+
# BIP-32 path; SLIP-0010 ed25519 doesn't apply here -- TRON is
|
|
113
|
+
# secp256k1, not ed25519). One mnemonic, six chain-coin trees.
|
|
114
|
+
|
|
115
|
+
[project.urls]
|
|
116
|
+
Homepage = "https://github.com/erikcheatham/Recto"
|
|
117
|
+
Repository = "https://github.com/erikcheatham/Recto"
|
|
118
|
+
Issues = "https://github.com/erikcheatham/Recto/issues"
|
|
119
|
+
Documentation = "https://github.com/erikcheatham/Recto/blob/main/README.md"
|
|
120
|
+
Changelog = "https://github.com/erikcheatham/Recto/blob/main/CHANGELOG.md"
|
|
121
|
+
|
|
122
|
+
[project.scripts]
|
|
123
|
+
recto = "recto.cli:main"
|
|
124
|
+
|
|
125
|
+
[tool.setuptools.packages.find]
|
|
126
|
+
include = ["recto*"]
|
|
127
|
+
exclude = ["tests*", "examples*", "scripts*", "phone*"]
|
|
128
|
+
|
|
129
|
+
[tool.setuptools.package-data]
|
|
130
|
+
# Non-Python files that ship as part of the wheel. The capability
|
|
131
|
+
# action manifest is loaded at runtime by the bootloader's verifier
|
|
132
|
+
# (recto.capability.manifest) and MUST be present in the installed
|
|
133
|
+
# package — otherwise `recto-core[v0_4]` consumers get a FileNotFoundError
|
|
134
|
+
# at first capability verification.
|
|
135
|
+
"recto.capability" = ["manifest_v1.json"]
|
|
136
|
+
|
|
137
|
+
[tool.ruff]
|
|
138
|
+
line-length = 100
|
|
139
|
+
target-version = "py312"
|
|
140
|
+
|
|
141
|
+
[tool.ruff.lint]
|
|
142
|
+
select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM", "RET"]
|
|
143
|
+
|
|
144
|
+
[tool.mypy]
|
|
145
|
+
python_version = "3.12"
|
|
146
|
+
strict = true
|
|
147
|
+
warn_return_any = true
|
|
148
|
+
warn_unused_ignores = true
|
|
149
|
+
|
|
150
|
+
[tool.pytest.ini_options]
|
|
151
|
+
testpaths = ["tests"]
|
|
152
|
+
python_files = ["test_*.py"]
|
|
153
|
+
addopts = "-ra --strict-markers"
|
|
154
|
+
|
|
155
|
+
[tool.coverage.run]
|
|
156
|
+
source = ["recto"]
|
|
157
|
+
# `_launcher_part2.py` was a transitional stub from v0.1; exclude in
|
|
158
|
+
# case it ever resurfaces in a stale checkout.
|
|
159
|
+
omit = ["recto/_launcher_part2.py"]
|
|
160
|
+
|
|
161
|
+
[tool.coverage.report]
|
|
162
|
+
# The Win32 ctypes blocks in joblimit.py + secrets/credman.py and the
|
|
163
|
+
# OTel-SDK-installed path in telemetry.py are marked `# pragma: no
|
|
164
|
+
# cover` inline -- they only execute on Windows (or with the [otel]
|
|
165
|
+
# extra installed). The cross-platform Linux suite covers everything
|
|
166
|
+
# else; Darwin's smoke run exercises the platform-specific paths.
|
|
167
|
+
exclude_lines = [
|
|
168
|
+
"pragma: no cover",
|
|
169
|
+
"raise NotImplementedError",
|
|
170
|
+
"if __name__ == .__main__.:",
|
|
171
|
+
"if TYPE_CHECKING:",
|
|
172
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Recto — modern Windows-service wrapper.
|
|
2
|
+
|
|
3
|
+
Public API surface:
|
|
4
|
+
recto.config.load_config — parse + validate a service.yaml
|
|
5
|
+
recto.config.ServiceConfig — top-level dataclass
|
|
6
|
+
recto.secrets.SecretSource — ABC for pluggable secret backends
|
|
7
|
+
recto.secrets.SecretMaterial — sealed type returned by SecretSource.fetch
|
|
8
|
+
recto.secrets.DirectSecret — variant: secret materialized as a string
|
|
9
|
+
recto.secrets.SigningCapability — variant: secret never leaves enclave
|
|
10
|
+
recto.secrets.EnvSource — passthrough backend reading os.environ
|
|
11
|
+
recto.secrets.CredManSource — Windows Credential Manager backend
|
|
12
|
+
recto.secrets.register_source — third-party backend registration
|
|
13
|
+
recto.launcher.launch — read config, fetch secrets, spawn child
|
|
14
|
+
|
|
15
|
+
Higher-level entry points (CLI, healthz probe loop, restart policy, comms
|
|
16
|
+
webhook dispatch) are wired in alongside the launcher in v0.1.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
__version__ = "0.1.0.dev0"
|
|
20
|
+
__all__ = ["__version__"]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""`python -m recto` entry point.
|
|
2
|
+
|
|
3
|
+
Forwards to recto.cli:main(). The console-script entry registered
|
|
4
|
+
in pyproject.toml (`recto = "recto.cli:main"`) hits the same target,
|
|
5
|
+
so `recto launch ...` and `python -m recto launch ...` are identical.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
from recto.cli import main
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
if __name__ == "__main__": # pragma: no cover
|
|
16
|
+
sys.exit(main())
|