opendevops 0.1.1__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.
- opendevops-0.1.1/.env.example +22 -0
- opendevops-0.1.1/.gitignore +15 -0
- opendevops-0.1.1/LICENSE +202 -0
- opendevops-0.1.1/PKG-INFO +385 -0
- opendevops-0.1.1/README.md +328 -0
- opendevops-0.1.1/config/budgets.yaml +14 -0
- opendevops-0.1.1/config/config.yaml +98 -0
- opendevops-0.1.1/config/models.yaml +10 -0
- opendevops-0.1.1/config/policy/base.yaml +238 -0
- opendevops-0.1.1/config/policy/envs/prod.yaml +12 -0
- opendevops-0.1.1/config/policy/envs/staging.yaml +12 -0
- opendevops-0.1.1/config/policy/packs/aws-read.yaml +195 -0
- opendevops-0.1.1/config/policy/packs/az-read.yaml +421 -0
- opendevops-0.1.1/config/policy/packs/gcloud-read.yaml +446 -0
- opendevops-0.1.1/config/policy/packs/gh-read.yaml +88 -0
- opendevops-0.1.1/config/policy/packs/gh-write.yaml +209 -0
- opendevops-0.1.1/config/policy/packs/helm-read.yaml +50 -0
- opendevops-0.1.1/config/policy/packs/kubectl-mutate.yaml +132 -0
- opendevops-0.1.1/config/policy/packs/kubectl-read.yaml +56 -0
- opendevops-0.1.1/config/policy/packs/ssh.yaml +116 -0
- opendevops-0.1.1/frontend/dashboard.ts +1180 -0
- opendevops-0.1.1/frontend/login.ts +14 -0
- opendevops-0.1.1/hatch_build.py +69 -0
- opendevops-0.1.1/ops/k8s/agent-helm-release-read-rbac.yaml +51 -0
- opendevops-0.1.1/ops/k8s/agent-mutate-rbac.yaml +88 -0
- opendevops-0.1.1/ops/k8s/agent-view-rbac.yaml +63 -0
- opendevops-0.1.1/ops/k8s/gen-kubeconfig.sh +164 -0
- opendevops-0.1.1/ops/k8s/verify-secrets-denied.sh +114 -0
- opendevops-0.1.1/package-lock.json +29 -0
- opendevops-0.1.1/package.json +13 -0
- opendevops-0.1.1/pyproject.toml +107 -0
- opendevops-0.1.1/src/opendevops/__init__.py +3 -0
- opendevops-0.1.1/src/opendevops/agent.py +879 -0
- opendevops-0.1.1/src/opendevops/audit/__init__.py +64 -0
- opendevops-0.1.1/src/opendevops/audit/logger.py +326 -0
- opendevops-0.1.1/src/opendevops/audit/schema.py +227 -0
- opendevops-0.1.1/src/opendevops/audit/verify.py +366 -0
- opendevops-0.1.1/src/opendevops/budget/__init__.py +36 -0
- opendevops-0.1.1/src/opendevops/budget/daily.py +289 -0
- opendevops-0.1.1/src/opendevops/budget/middleware.py +388 -0
- opendevops-0.1.1/src/opendevops/cli.py +562 -0
- opendevops-0.1.1/src/opendevops/config.py +761 -0
- opendevops-0.1.1/src/opendevops/context.py +43 -0
- opendevops-0.1.1/src/opendevops/control_plane/__init__.py +19 -0
- opendevops-0.1.1/src/opendevops/control_plane/service.py +660 -0
- opendevops-0.1.1/src/opendevops/executor_service/__init__.py +20 -0
- opendevops-0.1.1/src/opendevops/executor_service/service.py +255 -0
- opendevops-0.1.1/src/opendevops/gateway/__init__.py +39 -0
- opendevops-0.1.1/src/opendevops/gateway/base.py +240 -0
- opendevops-0.1.1/src/opendevops/gateway/local.py +934 -0
- opendevops-0.1.1/src/opendevops/gateway/server.py +630 -0
- opendevops-0.1.1/src/opendevops/gateway/translate.py +161 -0
- opendevops-0.1.1/src/opendevops/interfaces/__init__.py +8 -0
- opendevops-0.1.1/src/opendevops/interfaces/dashboard.py +1401 -0
- opendevops-0.1.1/src/opendevops/interfaces/dashboard_assets/dashboard.css +2512 -0
- opendevops-0.1.1/src/opendevops/interfaces/dashboard_assets/index.html +414 -0
- opendevops-0.1.1/src/opendevops/interfaces/dashboard_assets/login.html +96 -0
- opendevops-0.1.1/src/opendevops/interfaces/dashboard_assets/logo.png +0 -0
- opendevops-0.1.1/src/opendevops/interfaces/dashboard_auth.py +438 -0
- opendevops-0.1.1/src/opendevops/interfaces/dashboard_chat.py +427 -0
- opendevops-0.1.1/src/opendevops/interfaces/scheduler/__init__.py +53 -0
- opendevops-0.1.1/src/opendevops/interfaces/scheduler/jobs.py +205 -0
- opendevops-0.1.1/src/opendevops/interfaces/scheduler/service.py +253 -0
- opendevops-0.1.1/src/opendevops/interfaces/slack_app.py +733 -0
- opendevops-0.1.1/src/opendevops/interfaces/webapp.py +673 -0
- opendevops-0.1.1/src/opendevops/models/__init__.py +19 -0
- opendevops-0.1.1/src/opendevops/models/pricing.py +108 -0
- opendevops-0.1.1/src/opendevops/models/registry.py +143 -0
- opendevops-0.1.1/src/opendevops/observability/__init__.py +1 -0
- opendevops-0.1.1/src/opendevops/observability/live.py +114 -0
- opendevops-0.1.1/src/opendevops/observability/model_audit.py +157 -0
- opendevops-0.1.1/src/opendevops/observability/otel.py +94 -0
- opendevops-0.1.1/src/opendevops/observability/tracing.py +47 -0
- opendevops-0.1.1/src/opendevops/policy/__init__.py +109 -0
- opendevops-0.1.1/src/opendevops/policy/builtin_hooks.py +149 -0
- opendevops-0.1.1/src/opendevops/policy/engine.py +696 -0
- opendevops-0.1.1/src/opendevops/policy/guard.py +106 -0
- opendevops-0.1.1/src/opendevops/policy/hooks.py +48 -0
- opendevops-0.1.1/src/opendevops/policy/loader.py +235 -0
- opendevops-0.1.1/src/opendevops/policy/middleware.py +902 -0
- opendevops-0.1.1/src/opendevops/policy/parsing.py +428 -0
- opendevops-0.1.1/src/opendevops/policy/schema.py +512 -0
- opendevops-0.1.1/src/opendevops/prompts.py +81 -0
- opendevops-0.1.1/src/opendevops/state.py +76 -0
- opendevops-0.1.1/src/opendevops/tools/__init__.py +1 -0
- opendevops-0.1.1/src/opendevops/tools/executor.py +703 -0
- opendevops-0.1.1/src/opendevops/tools/run_command.py +440 -0
- opendevops-0.1.1/src/opendevops/tools/scrub.py +205 -0
- opendevops-0.1.1/src/opendevops/tools/secrets.py +123 -0
- opendevops-0.1.1/src/opendevops/tools/signing.py +413 -0
- opendevops-0.1.1/src/opendevops/tools/ssh_run.py +250 -0
- opendevops-0.1.1/src/opendevops/tools/staging.py +269 -0
- opendevops-0.1.1/tests/conftest.py +136 -0
- opendevops-0.1.1/tests/graph/__init__.py +0 -0
- opendevops-0.1.1/tests/graph/conftest.py +166 -0
- opendevops-0.1.1/tests/graph/helpers.py +179 -0
- opendevops-0.1.1/tests/graph/test_concurrent_chains.py +220 -0
- opendevops-0.1.1/tests/graph/test_graph_boot.py +114 -0
- opendevops-0.1.1/tests/graph/test_graph_budget.py +179 -0
- opendevops-0.1.1/tests/graph/test_graph_dry_run.py +230 -0
- opendevops-0.1.1/tests/graph/test_graph_escalation.py +596 -0
- opendevops-0.1.1/tests/graph/test_graph_flow.py +138 -0
- opendevops-0.1.1/tests/graph/test_graph_inventory.py +140 -0
- opendevops-0.1.1/tests/graph/test_graph_recursion.py +67 -0
- opendevops-0.1.1/tests/graph/test_graph_ssh_run.py +135 -0
- opendevops-0.1.1/tests/graph/test_remote_executor_run_id.py +100 -0
- opendevops-0.1.1/tests/graph/test_run_lifecycle.py +282 -0
- opendevops-0.1.1/tests/graph/test_sweeper_escalation.py +159 -0
- opendevops-0.1.1/tests/replay/__init__.py +0 -0
- opendevops-0.1.1/tests/replay/audit_gates.py +191 -0
- opendevops-0.1.1/tests/replay/conftest.py +149 -0
- opendevops-0.1.1/tests/replay/fixtures/ci_failure_diagnosis.json +40 -0
- opendevops-0.1.1/tests/replay/fixtures/crashloop_rca.json +53 -0
- opendevops-0.1.1/tests/replay/fixtures/deploy_verify_rollback.json +74 -0
- opendevops-0.1.1/tests/replay/fixtures/escalated_delete.json +28 -0
- opendevops-0.1.1/tests/replay/replay_middleware.py +317 -0
- opendevops-0.1.1/tests/replay/test_golden_trajectories.py +244 -0
- opendevops-0.1.1/tests/replay/test_replay_harness.py +205 -0
- opendevops-0.1.1/tests/unit/__init__.py +0 -0
- opendevops-0.1.1/tests/unit/policy/__init__.py +0 -0
- opendevops-0.1.1/tests/unit/policy/test_builtin_hooks.py +166 -0
- opendevops-0.1.1/tests/unit/policy/test_corpus.py +243 -0
- opendevops-0.1.1/tests/unit/policy/test_corpus_cloud.py +573 -0
- opendevops-0.1.1/tests/unit/policy/test_corpus_gh_write.py +303 -0
- opendevops-0.1.1/tests/unit/policy/test_corpus_mutate.py +195 -0
- opendevops-0.1.1/tests/unit/policy/test_corpus_ssh.py +258 -0
- opendevops-0.1.1/tests/unit/policy/test_dry_run_enforcement.py +136 -0
- opendevops-0.1.1/tests/unit/policy/test_engine.py +428 -0
- opendevops-0.1.1/tests/unit/policy/test_guard.py +105 -0
- opendevops-0.1.1/tests/unit/policy/test_loader.py +459 -0
- opendevops-0.1.1/tests/unit/policy/test_middleware.py +1022 -0
- opendevops-0.1.1/tests/unit/policy/test_parsing.py +248 -0
- opendevops-0.1.1/tests/unit/policy/test_schema.py +327 -0
- opendevops-0.1.1/tests/unit/test_audit.py +759 -0
- opendevops-0.1.1/tests/unit/test_budget.py +569 -0
- opendevops-0.1.1/tests/unit/test_change_control.py +110 -0
- opendevops-0.1.1/tests/unit/test_cli.py +407 -0
- opendevops-0.1.1/tests/unit/test_config.py +340 -0
- opendevops-0.1.1/tests/unit/test_dashboard.py +437 -0
- opendevops-0.1.1/tests/unit/test_dashboard_auth.py +103 -0
- opendevops-0.1.1/tests/unit/test_dashboard_chat.py +86 -0
- opendevops-0.1.1/tests/unit/test_executor_config.py +54 -0
- opendevops-0.1.1/tests/unit/test_executor_firewall.py +41 -0
- opendevops-0.1.1/tests/unit/test_executor_manifests.py +137 -0
- opendevops-0.1.1/tests/unit/test_executor_service.py +451 -0
- opendevops-0.1.1/tests/unit/test_gateway.py +1112 -0
- opendevops-0.1.1/tests/unit/test_langgraph_manifest.py +157 -0
- opendevops-0.1.1/tests/unit/test_model_audit.py +72 -0
- opendevops-0.1.1/tests/unit/test_ops_maintenance.py +262 -0
- opendevops-0.1.1/tests/unit/test_ops_quota_probe.py +206 -0
- opendevops-0.1.1/tests/unit/test_ops_stack.py +237 -0
- opendevops-0.1.1/tests/unit/test_packaging.py +9 -0
- opendevops-0.1.1/tests/unit/test_pricing.py +86 -0
- opendevops-0.1.1/tests/unit/test_redis_counter.py +259 -0
- opendevops-0.1.1/tests/unit/test_registry.py +121 -0
- opendevops-0.1.1/tests/unit/test_remote_executor.py +281 -0
- opendevops-0.1.1/tests/unit/test_run_command.py +1676 -0
- opendevops-0.1.1/tests/unit/test_scheduler_jobs.py +155 -0
- opendevops-0.1.1/tests/unit/test_scheduler_service.py +195 -0
- opendevops-0.1.1/tests/unit/test_scrub_full.py +53 -0
- opendevops-0.1.1/tests/unit/test_secrets.py +89 -0
- opendevops-0.1.1/tests/unit/test_server_gateway.py +609 -0
- opendevops-0.1.1/tests/unit/test_signing.py +293 -0
- opendevops-0.1.1/tests/unit/test_slack_app.py +641 -0
- opendevops-0.1.1/tests/unit/test_ssh_run.py +609 -0
- opendevops-0.1.1/tests/unit/test_staging.py +443 -0
- opendevops-0.1.1/tests/unit/test_webapp.py +737 -0
- opendevops-0.1.1/tsconfig.json +21 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Image used by docker-compose. Release bundles pin this to their exact version.
|
|
2
|
+
LANGGRAPH_IMAGE=ghcr.io/skundu42/opendevops:latest
|
|
3
|
+
|
|
4
|
+
# Required for service mode. Empty values deliberately make Compose refuse to start.
|
|
5
|
+
POSTGRES_PASSWORD=
|
|
6
|
+
GATEWAY_TOKEN=
|
|
7
|
+
GRAFANA_ADMIN_PASSWORD=
|
|
8
|
+
ANTHROPIC_API_KEY=
|
|
9
|
+
LANGSMITH_API_KEY=
|
|
10
|
+
|
|
11
|
+
# Local-development dashboard authentication. Use OIDC in production.
|
|
12
|
+
DASHBOARD_TOKEN=
|
|
13
|
+
|
|
14
|
+
# Production dashboard OIDC settings.
|
|
15
|
+
OIDC_CLIENT_ID=
|
|
16
|
+
OIDC_CLIENT_SECRET=
|
|
17
|
+
|
|
18
|
+
# Optional OTLP/HTTP endpoint.
|
|
19
|
+
OTEL_EXPORTER_OTLP_ENDPOINT=
|
|
20
|
+
|
|
21
|
+
# Optional LangSmith tracing. Leave false to disable application traces.
|
|
22
|
+
LANGSMITH_TRACING=false
|
opendevops-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: opendevops
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Autonomous DevOps agent: policy-gated, budget-capped, audit-chained operations on Kubernetes, GitHub, cloud CLIs, and SSH
|
|
5
|
+
Project-URL: Homepage, https://github.com/skundu42/opendevops
|
|
6
|
+
Project-URL: Repository, https://github.com/skundu42/opendevops
|
|
7
|
+
Project-URL: Issues, https://github.com/skundu42/opendevops/issues
|
|
8
|
+
Author: Sandipan Kundu
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: agent,automation,devops,kubernetes,langchain,langgraph,llm,sre
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: System Administrators
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: System :: Systems Administration
|
|
19
|
+
Requires-Python: <4.0,>=3.11
|
|
20
|
+
Requires-Dist: deepagents==0.6.12
|
|
21
|
+
Requires-Dist: langchain-anthropic<2,>=1.4.7
|
|
22
|
+
Requires-Dist: langchain==1.3.14
|
|
23
|
+
Requires-Dist: langgraph==1.2.9
|
|
24
|
+
Requires-Dist: pydantic-settings>=2.6
|
|
25
|
+
Requires-Dist: pyyaml>=6
|
|
26
|
+
Requires-Dist: rich>=13
|
|
27
|
+
Requires-Dist: typer>=0.15
|
|
28
|
+
Provides-Extra: checkpoint
|
|
29
|
+
Requires-Dist: aiosqlite; extra == 'checkpoint'
|
|
30
|
+
Requires-Dist: langgraph-checkpoint-sqlite; extra == 'checkpoint'
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: agentevals==0.0.9; extra == 'dev'
|
|
33
|
+
Requires-Dist: fakeredis<3,>=2.31; extra == 'dev'
|
|
34
|
+
Requires-Dist: langgraph-cli[inmem]==0.4.31; extra == 'dev'
|
|
35
|
+
Requires-Dist: mypy; extra == 'dev'
|
|
36
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
37
|
+
Requires-Dist: pytest-asyncio; extra == 'dev'
|
|
38
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
39
|
+
Provides-Extra: server
|
|
40
|
+
Requires-Dist: authlib<2,>=1.6; extra == 'server'
|
|
41
|
+
Requires-Dist: fastapi; extra == 'server'
|
|
42
|
+
Requires-Dist: httpx<1,>=0.27; extra == 'server'
|
|
43
|
+
Requires-Dist: langgraph-sdk<0.5,>=0.4; extra == 'server'
|
|
44
|
+
Requires-Dist: opentelemetry-api<2,>=1.30; extra == 'server'
|
|
45
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2,>=1.30; extra == 'server'
|
|
46
|
+
Requires-Dist: opentelemetry-sdk<2,>=1.30; extra == 'server'
|
|
47
|
+
Requires-Dist: prometheus-client; extra == 'server'
|
|
48
|
+
Requires-Dist: redis>=5; extra == 'server'
|
|
49
|
+
Requires-Dist: sse-starlette; extra == 'server'
|
|
50
|
+
Provides-Extra: slack
|
|
51
|
+
Requires-Dist: aiohttp; extra == 'slack'
|
|
52
|
+
Requires-Dist: apscheduler<4,>=3.10; extra == 'slack'
|
|
53
|
+
Requires-Dist: slack-bolt==1.30.0; extra == 'slack'
|
|
54
|
+
Provides-Extra: ssh
|
|
55
|
+
Requires-Dist: asyncssh==2.24.0; extra == 'ssh'
|
|
56
|
+
Description-Content-Type: text/markdown
|
|
57
|
+
|
|
58
|
+
<p align="center">
|
|
59
|
+
<img src="docs/assets/opendevops-mark.png" width="148" alt="opendevops logo">
|
|
60
|
+
</p>
|
|
61
|
+
|
|
62
|
+
<h1 align="center">opendevops</h1>
|
|
63
|
+
|
|
64
|
+
<p align="center">
|
|
65
|
+
<strong>An autonomous DevOps agent with a smaller blast radius than its prompt.</strong>
|
|
66
|
+
</p>
|
|
67
|
+
|
|
68
|
+
<p align="center">
|
|
69
|
+
Investigate infrastructure, diagnose incidents, and perform tightly scoped operations through
|
|
70
|
+
argv-only execution, least-privilege credentials, fail-closed policy, budget stop-losses, and
|
|
71
|
+
structurally verifiable audit chains.
|
|
72
|
+
</p>
|
|
73
|
+
|
|
74
|
+
<p align="center">
|
|
75
|
+
<a href="https://github.com/skundu42/opendevops/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/skundu42/opendevops/actions/workflows/ci.yml/badge.svg"></a>
|
|
76
|
+
<a href="https://github.com/skundu42/opendevops/releases/latest"><img alt="Latest release" src="https://img.shields.io/github/v/release/skundu42/opendevops?display_name=tag&sort=semver"></a>
|
|
77
|
+
<a href="LICENSE"><img alt="Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-28516b.svg"></a>
|
|
78
|
+
<img alt="Python 3.11 and 3.12" src="https://img.shields.io/badge/python-3.11%20%7C%203.12-28a6a1.svg">
|
|
79
|
+
<img alt="Project status: beta" src="https://img.shields.io/badge/status-beta-f0643b.svg">
|
|
80
|
+
</p>
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## What is opendevops?
|
|
85
|
+
|
|
86
|
+
opendevops is an open-source operations agent built on LangGraph and LangChain deepagents. It can
|
|
87
|
+
trace a CrashLoop, analyze CI failures, inspect cloud resources, verify drift, summarize noisy
|
|
88
|
+
logs, and execute a deliberately narrow set of staging remediations.
|
|
89
|
+
|
|
90
|
+
The model never receives a shell. Every command is an `argv: list[str]` request that passes through
|
|
91
|
+
budget controls, a default-deny policy engine, a credential-selection boundary, output scrubbing,
|
|
92
|
+
and a per-run audit chain.
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
you › why is pod api-0 in namespace web crash-looping?
|
|
96
|
+
→ run_command kubectl -n web describe pod api-0
|
|
97
|
+
→ run_command kubectl -n web logs api-0 --previous --tail 200
|
|
98
|
+
|
|
99
|
+
The container was OOMKilled (exit 137). Its JVM heap is configured above the
|
|
100
|
+
container memory limit. Reduce the heap or raise the workload limit.
|
|
101
|
+
|
|
102
|
+
spent $0.0841 (run) / $0.34 (today)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Capabilities
|
|
106
|
+
|
|
107
|
+
| Area | Supported today | Boundary |
|
|
108
|
+
|---|---|---|
|
|
109
|
+
| Kubernetes | diagnostics, logs, events, Helm inspection, controlled apply/rollout/scale | production rw requires an active expiring grant, server dry-run, independent approval and rw kubeconfig |
|
|
110
|
+
| GitHub | CI diagnosis, run inspection, PR-based remediation | repository and API method/path allowlists |
|
|
111
|
+
| AWS | curated EC2, ECS, RDS, CloudFormation, S3, Lambda, CloudWatch and related reads | no cloud-resource deployment or IAM access |
|
|
112
|
+
| Google Cloud | curated Compute, GKE, Cloud SQL, Pub/Sub, Logging, Storage, Run and Functions reads | mutations and secret access denied |
|
|
113
|
+
| Azure | curated VM, AKS, ACR, networking, SQL, Cosmos DB, Monitor and resource reads | mutations and secret material denied |
|
|
114
|
+
| Remote hosts | structured, read-only SSH checks | pinned user, key, hosts and `known_hosts` |
|
|
115
|
+
| Interfaces | CLI, HTTP, Slack, scheduler, Alertmanager and GitHub webhooks | one shared gateway and safety core |
|
|
116
|
+
| Operations UI | identity-scoped agent chat, live runs, approvals, policy/cost/audit detail and capability grants | OIDC RBAC + CSRF; chat never exposes raw tool arguments, output, or credential values |
|
|
117
|
+
|
|
118
|
+
> [!IMPORTANT]
|
|
119
|
+
> This is not a general AWS, Google Cloud, or Azure deployment engine. Terraform, Pulumi,
|
|
120
|
+
> CloudFormation updates, Google Cloud Deploy, ARM/Bicep deployment, and unrestricted provider CLI
|
|
121
|
+
> mutations are not enabled.
|
|
122
|
+
|
|
123
|
+
## Operations dashboard
|
|
124
|
+
|
|
125
|
+
The service-mode dashboard includes an authenticated command channel for asking the agent directly
|
|
126
|
+
about connected infrastructure. Conversations are private to the exact OIDC issuer and subject;
|
|
127
|
+
operator/admin turns stream over SSE, retain a bounded transcript, and use the same gateway,
|
|
128
|
+
budgets, policy, capability grants, and approval path as every other interface. The chat shows
|
|
129
|
+
assistant responses and sanitized lifecycle activity, never raw command arguments or tool output.
|
|
130
|
+
|
|
131
|
+
The rest of the dashboard merges verified audit chains with live gateway telemetry. It shows active
|
|
132
|
+
runs, queues, workers, pending approvals, per-model timing and cost progression, policy decisions,
|
|
133
|
+
tool timing, correlation IDs, spend, SLIs, and audit integrity. Operators can cancel runs;
|
|
134
|
+
approvers can resolve interruptions; admins can activate or revoke typed capability grants.
|
|
135
|
+
|
|
136
|
+
<p align="center">
|
|
137
|
+
<img src="docs/assets/dashboard.png" alt="Authenticated opendevops operations dashboard showing run activity, policy events, costs, audit integrity, and recent runs">
|
|
138
|
+
</p>
|
|
139
|
+
|
|
140
|
+
Production authentication is generic OpenID Connect (Entra ID, Google Workspace, Okta, Keycloak,
|
|
141
|
+
or another standards-compliant issuer). Groups/roles map to `viewer`, `operator`, `approver`, and
|
|
142
|
+
`admin`. Browser cookies contain only an opaque random session handle; session state and OIDC
|
|
143
|
+
transactions are stored server-side, support immediate revocation, and expire within eight hours.
|
|
144
|
+
Every control action records the OIDC issuer and subject. Static-token login remains available only
|
|
145
|
+
as the explicit local-development mode.
|
|
146
|
+
|
|
147
|
+
```yaml
|
|
148
|
+
server:
|
|
149
|
+
dashboard_auth_mode: oidc
|
|
150
|
+
dashboard_session_backend: redis
|
|
151
|
+
dashboard_session_redis_url: redis://redis:6379/2
|
|
152
|
+
dashboard_cookie_secure: true
|
|
153
|
+
dashboard_chat_enabled: true
|
|
154
|
+
dashboard_chat_retention_days: 30
|
|
155
|
+
dashboard_chat_max_message_chars: 8000
|
|
156
|
+
oidc:
|
|
157
|
+
issuer: https://id.example.com/realms/operations
|
|
158
|
+
client_id_env: OIDC_CLIENT_ID
|
|
159
|
+
client_secret_env: OIDC_CLIENT_SECRET
|
|
160
|
+
redirect_uri: https://ops.example.com/dashboard/oidc/callback
|
|
161
|
+
roles_claim: groups
|
|
162
|
+
role_mappings:
|
|
163
|
+
viewer: [devops-readers]
|
|
164
|
+
operator: [devops-operators]
|
|
165
|
+
approver: [change-approvers]
|
|
166
|
+
admin: [devops-admins]
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
```sh
|
|
170
|
+
docker compose up -d
|
|
171
|
+
open http://localhost:8123/dashboard
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
For production, register the callback exactly, terminate TLS before Caddy, use Redis sessions, and
|
|
175
|
+
keep requester and approver group membership operationally separate. See
|
|
176
|
+
[deployment](guides/deployment.md#operator-dashboard).
|
|
177
|
+
|
|
178
|
+
## Guarded dangerous actions
|
|
179
|
+
|
|
180
|
+
Dangerous capabilities are versioned state, not free-form dashboard YAML. An operator proposes a
|
|
181
|
+
specific environment, capability, explicit target set, reason, lifetime, execution count,
|
|
182
|
+
per-run/repeat limit, failure threshold, cooldown, and mandatory dry-run. An approver approves it;
|
|
183
|
+
an admin activates it. Production rejects requester self-approval, and the executor atomically
|
|
184
|
+
consumes the grant before each rw action.
|
|
185
|
+
|
|
186
|
+
```sh
|
|
187
|
+
opendevops config propose-grant \
|
|
188
|
+
--environment prod \
|
|
189
|
+
--capability kubernetes_deploy \
|
|
190
|
+
--target kind-prod/web \
|
|
191
|
+
--reason "Deploy reviewed release 2026.07.26"
|
|
192
|
+
|
|
193
|
+
opendevops config approve-grant <proposal-id> --actor change-approver
|
|
194
|
+
opendevops config activate-grant <proposal-id> --actor platform-admin
|
|
195
|
+
opendevops config grants
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
The control plane is an additional gate: a grant never overrides a policy deny, credential scope,
|
|
199
|
+
target allowlist, or dry-run requirement. AWS, GCP, and Azure policy packs remain read-only until
|
|
200
|
+
reviewed deployment commands and distinct rw credentials are added. Production Kubernetes
|
|
201
|
+
execution also requires `targets.kubernetes.kubeconfig_rw_by_environment.prod`; the legacy
|
|
202
|
+
`kubeconfig_rw` field is accepted only as a staging fallback.
|
|
203
|
+
|
|
204
|
+
## Why the execution model is different
|
|
205
|
+
|
|
206
|
+
```mermaid
|
|
207
|
+
flowchart LR
|
|
208
|
+
I["CLI · API · Slack · Scheduler · Webhooks · OIDC dashboard chat"] --> G["AgentGateway"]
|
|
209
|
+
O["OIDC session + RBAC"] --> I
|
|
210
|
+
G --> B["Budgets and call limits"]
|
|
211
|
+
B --> P["Fail-closed policy"]
|
|
212
|
+
P -->|allow / rewrite| E["argv-only executor"]
|
|
213
|
+
P -->|escalate| H["Human decision"]
|
|
214
|
+
P -->|deny| D["Refusal"]
|
|
215
|
+
E --> C["One scoped credential"]
|
|
216
|
+
X["Expiring capability grant + loop limits"] --> P
|
|
217
|
+
H --> X
|
|
218
|
+
C --> T["Kubernetes · GitHub · Cloud CLIs · SSH"]
|
|
219
|
+
P --> A["Audit chain"]
|
|
220
|
+
E --> A
|
|
221
|
+
B --> A
|
|
222
|
+
A --> U["Authenticated dashboard"]
|
|
223
|
+
A --> W["WORM / SIEM sink"]
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
- **No shell surface.** Commands execute with `shell=False`; interpreters and command-building
|
|
227
|
+
utilities are denied.
|
|
228
|
+
- **Credentials are the hard boundary.** The executor constructs a fresh environment and injects
|
|
229
|
+
exactly one credential family for the winning rule and channel.
|
|
230
|
+
- **Policy fails closed.** Unknown tools, commands, flags, contexts, identities, and policy errors
|
|
231
|
+
deny execution.
|
|
232
|
+
- **Secrets stay out of argv.** Standalone `{{secret:NAME}}` declarations inject environment
|
|
233
|
+
variables for env-aware programs and are removed before execution; embedded expansion is denied.
|
|
234
|
+
- **Outputs are scrubbed first.** Known token forms and high-entropy strings are redacted before
|
|
235
|
+
model context, virtual files, or audit excerpts.
|
|
236
|
+
- **USD limits are stop-losses.** Call, tool, recursion, and wall-clock limits are hard controls;
|
|
237
|
+
cost is known after model calls and can overshoot by in-flight work.
|
|
238
|
+
- **Audit claims are precise.** Local SHA-256 chains prove structural consistency. Authenticity
|
|
239
|
+
requires the independently protected WORM or INSERT-only sink used in production.
|
|
240
|
+
|
|
241
|
+
Read the full [security model](guides/security-model.md) before connecting real infrastructure.
|
|
242
|
+
|
|
243
|
+
## Quick start
|
|
244
|
+
|
|
245
|
+
### Prerequisites
|
|
246
|
+
|
|
247
|
+
- Python 3.11 or 3.12
|
|
248
|
+
- [`uv`](https://docs.astral.sh/uv/)
|
|
249
|
+
- `kubectl` and access to a cluster where you can create the agent ServiceAccount
|
|
250
|
+
- an Anthropic API key
|
|
251
|
+
- optional provider CLIs only for integrations you enable
|
|
252
|
+
|
|
253
|
+
### Install and configure
|
|
254
|
+
|
|
255
|
+
```sh
|
|
256
|
+
# Install the prebuilt universal wheel; no repository clone or frontend build is needed.
|
|
257
|
+
uv tool install \
|
|
258
|
+
'opendevops[checkpoint,ssh] @ https://github.com/skundu42/opendevops/releases/download/v0.1.1/opendevops-0.1.1-py3-none-any.whl'
|
|
259
|
+
|
|
260
|
+
mkdir opendevops-workspace
|
|
261
|
+
opendevops init opendevops-workspace
|
|
262
|
+
cd opendevops-workspace
|
|
263
|
+
cp .env.example .env
|
|
264
|
+
# Set ANTHROPIC_API_KEY in .env.
|
|
265
|
+
|
|
266
|
+
# Provision a read-only, secrets-denied Kubernetes identity.
|
|
267
|
+
kubectl apply -f ops/k8s/agent-view-rbac.yaml
|
|
268
|
+
ops/k8s/gen-kubeconfig.sh <your-context>
|
|
269
|
+
|
|
270
|
+
# Add <your-context> to targets.kubernetes.allowed_contexts in config/config.yaml.
|
|
271
|
+
opendevops config check
|
|
272
|
+
opendevops chat
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
The generated workspace deliberately has an empty Kubernetes context allowlist. `config check`
|
|
276
|
+
and every runtime entry point refuse to proceed until you make that deployment choice explicitly.
|
|
277
|
+
`opendevops init` also refuses to replace an existing workspace unless `--force` is explicit.
|
|
278
|
+
|
|
279
|
+
Continue with the [step-by-step getting-started guide](guides/getting-started.md).
|
|
280
|
+
|
|
281
|
+
## Configuration
|
|
282
|
+
|
|
283
|
+
Configuration is strict Pydantic over three files:
|
|
284
|
+
|
|
285
|
+
| File | Purpose |
|
|
286
|
+
|---|---|
|
|
287
|
+
| [`config/config.yaml`](config/config.yaml) | targets, credential variable names, execution, interfaces and service settings |
|
|
288
|
+
| [`config/models.yaml`](config/models.yaml) | agent model aliases and cache-aware pricing |
|
|
289
|
+
| [`config/budgets.yaml`](config/budgets.yaml) | per-run profiles, daily stop-losses and counter backend |
|
|
290
|
+
| [`config/policy/`](config/policy) | base denies, environment overlays and capability packs |
|
|
291
|
+
|
|
292
|
+
Unknown keys fail validation. Missing credentials for an enabled policy family fail agent
|
|
293
|
+
construction. Secret values belong in the process environment, never YAML.
|
|
294
|
+
|
|
295
|
+
See the complete [configuration reference](guides/configuration.md).
|
|
296
|
+
|
|
297
|
+
## Service mode
|
|
298
|
+
|
|
299
|
+
The included Compose stack runs the LangGraph Server, Postgres, Redis, Caddy, Vector, Prometheus,
|
|
300
|
+
Grafana, and the authenticated dashboard:
|
|
301
|
+
|
|
302
|
+
```sh
|
|
303
|
+
curl -fLO \
|
|
304
|
+
https://github.com/skundu42/opendevops/releases/download/v0.1.1/opendevops-deploy-0.1.1.tar.gz
|
|
305
|
+
tar -xzf opendevops-deploy-0.1.1.tar.gz
|
|
306
|
+
cd opendevops-0.1.1
|
|
307
|
+
cp .env.example .env
|
|
308
|
+
# Fill every required blank in .env.
|
|
309
|
+
|
|
310
|
+
docker compose config -q
|
|
311
|
+
docker compose pull
|
|
312
|
+
docker compose up -d
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
The release bundle is pinned to `ghcr.io/skundu42/opendevops:0.1.1`; published images support
|
|
316
|
+
`linux/amd64` and `linux/arm64`. Neither Node.js nor an application source build is required. The
|
|
317
|
+
image intentionally contains the application runtime rather than every cloud vendor CLI; install
|
|
318
|
+
only the `kubectl`, `helm`, `gh`, `aws`, `gcloud`, or `az` binaries for policy families you enable
|
|
319
|
+
in a derived runtime image or credential-isolated executor. A missing binary fails closed.
|
|
320
|
+
|
|
321
|
+
Security-sensitive Compose credentials have no default values. Caddy is the only ingress; server
|
|
322
|
+
APIs and metrics require `GATEWAY_TOKEN`, native webhook routes retain their HMAC/bearer
|
|
323
|
+
authentication, and `/dashboard/*` uses the application session described above.
|
|
324
|
+
|
|
325
|
+
> [!WARNING]
|
|
326
|
+
> Never run the service stack on a Kubernetes cluster the agent itself manages. Use a dedicated
|
|
327
|
+
> operations VM or a separate operations cluster.
|
|
328
|
+
|
|
329
|
+
See [deployment](guides/deployment.md) for TLS, shared counters, audit shipping, alerts, backups,
|
|
330
|
+
quota planning, and go-live gates.
|
|
331
|
+
|
|
332
|
+
## CLI
|
|
333
|
+
|
|
334
|
+
| Command | Purpose |
|
|
335
|
+
|---|---|
|
|
336
|
+
| `opendevops init [directory]` | scaffold config and Kubernetes bootstrap files from the wheel |
|
|
337
|
+
| `opendevops chat` | streaming REPL with environment, profile and principal selection |
|
|
338
|
+
| `opendevops config check` | validate runtime-critical configuration |
|
|
339
|
+
| `opendevops config grants` | list the control-plane revision and capability proposals |
|
|
340
|
+
| `opendevops config propose-grant` | propose a typed, expiring dangerous capability |
|
|
341
|
+
| `opendevops config approve-grant` | approve a proposal (requester separation in prod) |
|
|
342
|
+
| `opendevops config activate-grant` / `revoke-grant` | activate or immediately revoke a grant |
|
|
343
|
+
| `opendevops audit verify --dir <dir>` | strictly verify audit structure and completion |
|
|
344
|
+
| `opendevops audit verify --allow-incomplete` | diagnose structurally valid crashed/in-progress runs |
|
|
345
|
+
| `opendevops version` | print the installed version |
|
|
346
|
+
|
|
347
|
+
## Documentation
|
|
348
|
+
|
|
349
|
+
| Guide | Contents |
|
|
350
|
+
|---|---|
|
|
351
|
+
| [Getting started](guides/getting-started.md) | first installation and live session |
|
|
352
|
+
| [Architecture](guides/architecture.md) | graph, middleware, gateways, execution and data flow |
|
|
353
|
+
| [Configuration](guides/configuration.md) | every supported setting |
|
|
354
|
+
| [Policy](guides/policy.md) | rule schema, packs, precedence and extension |
|
|
355
|
+
| [Security model](guides/security-model.md) | trust boundaries, failure modes and residual risk |
|
|
356
|
+
| [Budgets](guides/budgets.md) | call limits, timeouts, pricing and USD stop-losses |
|
|
357
|
+
| [Audit](guides/audit.md) | event schema, verification, shipping and authenticity |
|
|
358
|
+
| [Interfaces](guides/interfaces.md) | CLI, dashboard, HTTP, webhooks, Slack and scheduler |
|
|
359
|
+
| [Deployment](guides/deployment.md) | service stack, monitoring and production gates |
|
|
360
|
+
| [Development](guides/development.md) | tests, conventions and extension points |
|
|
361
|
+
| [Upgrade notes](docs/UPGRADE.md) | dependency and migration guidance |
|
|
362
|
+
| [Release process](RELEASING.md) | versioning, artifacts, signing and PyPI trusted publishing |
|
|
363
|
+
|
|
364
|
+
## Development
|
|
365
|
+
|
|
366
|
+
```sh
|
|
367
|
+
npm ci
|
|
368
|
+
npm run frontend:check
|
|
369
|
+
npm run frontend:build
|
|
370
|
+
|
|
371
|
+
uv sync --extra checkpoint --extra server --extra slack --extra ssh --extra dev
|
|
372
|
+
|
|
373
|
+
uv run pytest -q
|
|
374
|
+
uv run ruff check .
|
|
375
|
+
uv run mypy src ops
|
|
376
|
+
uv lock --check
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
Contributions are welcome. Start with [CONTRIBUTING.md](CONTRIBUTING.md) and the
|
|
380
|
+
[development guide](guides/development.md). Please report vulnerabilities privately according to
|
|
381
|
+
[SECURITY.md](SECURITY.md).
|
|
382
|
+
|
|
383
|
+
## License
|
|
384
|
+
|
|
385
|
+
Licensed under the [Apache License 2.0](LICENSE).
|